Allowing users to run root programs

Posted by linuxuser On 8:49 AM

When a user starts a command, it runs with the permissions of that user. What if you want to allow them to run some commands with root permissions? You can, and that's called suid.
You can set a command to be suid root with the chmod command. This will make it run as root even if a user starts it. Here is how to set mybin suid root:
chmod +s mybin
Note that you must be very careful with this option. If the command has any security hole, or allows the user to access other files or programs, the user could take over the root account and the whole system.


Other users access programs, security hole in linux

0 Response to "Allowing users to run root programs"

Post a Comment