alfaridi.info Menemukan makna kehidupan

28Jan/100

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

  • Share/Bookmark

About Dichi Al Faridi

Hi, I am Dichi Al Faridi. You could just call me Dichi. I am very enthusiast with open source technology. I'm just newbie that want to learn and share more. :) Have a nice day. :)
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


Trackbacks are disabled.