mengaktifkan sudo di centos

ini dia cara install visudo di atau pengen aktifin sudo di centos anda


root@vps ~]# yum install sudo
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirror.facebook.net
* extras: linux.mirrors.es.net
* updates: mirror.5ninesolutions.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package sudo.i386 0:1.7.2p1-14.el5_8.4 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================================================================================
Installing:
sudo i386 1.7.2p1-14.el5_8.4 updates 353 k

Transaction Summary
======================================================================================================================================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)

Total download size: 353 k
Is this ok [y/N]: y
Downloading Packages:
sudo-1.7.2p1-14.el5_8.4.i386.rpm | 353 kB 00:01
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : sudo 1/1

Installed:
sudo.i386 0:1.7.2p1-14.el5_8.4

Complete!
[root@vps ~]# visudo
[root@vps ~]# gpasswd -a wheel google
gpasswd: unknown user wheel
[root@vps ~]# gpasswd -a google wheel
Adding user google to group wheel
[root@vps ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:56:33:FD:6F
inet addr:173.194.33.48 Bcast:74.82.174.255 Mask:255.255.255.240
inet6 addr: fe80::250:56ff:fe33:fd6f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4152045 errors:0 dropped:0 overruns:0 frame:0
TX packets:1086062 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:400538729 (381.9 MiB) TX bytes:405234326 (386.4 MiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:22 errors:0 dropped:0 overruns:0 frame:0
TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1518 (1.4 KiB) TX bytes:1518 (1.4 KiB)

[root@vps ~]#

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s