How to set a user to let him having the read-right as the root?
Assumed I have user called myUser. How to set this user to have the read-right as the root?
|
What about sudo ?
With the help of /etc/sudoers file you can give root privileges to non-root users. Regards, |
Quote:
Regards |
You can use teh sudoers file to set sudo previlidges for only ONE command (or any number of them). Read the man page for sudoers
Code:
man sudoers to expand on this as the man page is slightly confusing and has just taken me 10min to figure out: Code:
user ALL=/path/to/command Code:
user ALL=NOPASSWD:/path/to/command (P.S. I'd still advise you to read the man page, what if the user rewrites the program to spawn more programs, and their own root shell?) |
Quote:
In sudoers file add entry like Code:
username ALL=/command/full/path |
All times are GMT -5. The time now is 07:19 PM. |