suid and executing programs as root without need of typing the root password

First published May 21, 2007 • Last modified on July 18, 2026 • 1 min read • 44 words
If you have executables (programs, scripts), that need root privileges to run (e.g.
If you have executables (programs, scripts), that need root privileges to run (e.g. that mount something), you don’t need to type in the su password everytime.You can set the suid for that file and change its owner to root:chmod u+s filename chown root filename