How to set up ( Fedora php ruby on rails )

Friday, August 7, 2009

setting a SUDO user in fedora ( configure SUDO)

First you need to become super user to add user to SUDO.


 
[ismail@localhost ~]$ su
Password:
[root@localhost ismail]#


Now issue the command visudo



[root@localhost ismail]# visudo




Look the image and add the following line in that file you have opened


ismail ALL=(ALL) ALL

And if you want that when you do sudo it don't asks for passwrod than uncomment and this part


## Same thing without a password
%wheel ALL=(ALL) NOPASSWD: ALL

Now we have to add user (ismail) to wheel grounp issue this command


[root@localhost ismail]# gpasswd -a ismail wheel

Now you have done to check are you root user or not login as normal user and issue this command



[ismail@localhost ~]$ whoami
ismail
[ismail@localhost ~]$ sudo whoami
root