alfaridi.info

kelu dalam berbicara, gagap dalam tulisan

Execute Command as Super User in Fedora 12

Perhaps in ubuntu, it is defaults to use sudo to execute command as super user. But in fedora usually use “su -c” to execute command as super user. But if you want to use ubuntu style, don’t worry. Just do some simple step to make it happen.

1. Add user to a group, in this example “wheel”

$ su -c "useradd -g wheel user"

2. Edit visudo

$ su -c "visudo"

and uncomment this line

%wheel  ALL=(ALL)       ALL

or if you want to make user use sudo without password, uncomment this line (warning)

%wheel         ALL=(ALL)       NOPASSWD: ALL

3. Finish, you can use sudo to execute command as super user instead

$ sudo yum update
$ sudo gedit /etc/yum.conf

Switch to our mobile site