Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Permissions to commands

Status
Not open for further replies.

achiu

Programmer
Oct 23, 2002
2
US
I am using perl to write a menu script. In this menu, there are options that you would need higher level access like root to access these commands. One option is the user can reboot the system. But there are some other commands, I need root permissions to execute. What is the best way to go around this?
 
You will probably have to have the script run as suid root or as a uid or gid with enough permission to execute the command you want. This can be a big security hole.

jaa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top