LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Script with root privileges running by an ordinary user (https://www.linuxquestions.org/questions/linux-newbie-8/script-with-root-privileges-running-by-an-ordinary-user-527085/)

MOCKBA 02-09-2007 01:46 PM

Script with root privileges running by an ordinary user
 
I need a script starting app server listening on port 80. This server can be started by certain users not having root privileges. How can I achieve that? I guess I can allow only execution of the script for other users, so they can’t open it and look inside. What should be inside?
I plan to put
sudo /b>appserver<

How can I specify root password in script?
Is there some other more appropriate to Linux solution?

wpn146 02-09-2007 01:58 PM

You can configure this in your sudoers file.

Hitboxx 02-09-2007 02:39 PM

Maybe you can try creating a new group, add these certain users to it and privilege this group with just execution rights, no read and write access.

unSpawn 02-09-2007 03:33 PM

Like wpn146 said: sudo.


All times are GMT -5. The time now is 09:57 AM.