Regarding sudoers file
Hi All,
How do I add a user in a sudoers file. There is this specific command that I want to run and the error is as below. Quote:
Regards! Ajit |
Code:
[sudo] password for ajit: If you don't have permission to modify the sudoers file, you can't modify it anyway. |
:newbie:
I want to know how to modify the file.I am running hte command using the root login.
|
hi you need to login as root
using Quote:
Quote:
Quote:
and as ajit user do this Quote:
|
Quote:
vi /etc/sudoers Code:
ajit ALL = (ALL) /full/path/of/command |
Quote:
Code:
visudo edits the sudoers file in a safe fashion, analogous to vipw(8). |
in future you can avoid this by giving the new user you create admin privileges or adding him to the "root" group.
|
All times are GMT -5. The time now is 08:14 AM. |