It is possible if root owns the executable image and the set UID bit is set on the file permissions. (Do a man on chmod to see how to do this. I believe it is chmod 1xxx, but am not sure.)
When this bit is set **anyone** running the program will execute it as if they were root. This is what the "passwd" command does to allow an ordinary user to modify the /etc/passwd file when they set their password.
The catch is, of course, that root must originally set this up with the chmod command.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.