sudo
hi all
how can i give another user permission to execute a file that only should be run as root? What chmod options do i have to enter? chmod ???? /bin/.... |
chmod ugo+x /bin/...............,right??
ugo is user.group.other x is for execute.(r and w for read and write) |
I think it works like this
Quote:
|
That aint gonna work for me.
I want a user called test, run for example a script like kill as user root. Other users should't have root permissions on this file. |
chmod 777
gives read wite execute to all users |
yes, ofcourse it does.
But i only want one user(called test) to execute a file as uid root. The other users may not have permissions to execute. So i make the file: chown root:test file But what to do after that? |
|
You have to install the sudo package. If unsure whether it's installed, type sudo at the prompt and see if you get a "command not found" response. Once it's installed you have to edit the /etc/sudoers file and add the appropriate user to the file. There should be a root entry already and man sudo or man sudoers will have more info.
|
All times are GMT -5. The time now is 02:01 AM. |