LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Run program from root login as non-priveledged user? (https://www.linuxquestions.org/questions/linux-security-4/run-program-from-root-login-as-non-priveledged-user-218853/)

pr0wl3r 08-17-2004 01:30 PM

Run program from root login as non-priveledged user?
 
Hi. I've got an issue. I want to run programs as standard, non-priveledged, non-superuser users but I do not want their accounts to have shell access. I don't want my users to be able to SSH in and do stuff on their own. I do however want to run programs under their user. What I have been doing is just logging in as root and su'ing to their user, running the programs and logging out, but this requires their account to have a shell. I want to replace the shell with /bin/false instead and just make it so that I can run programs as the user from root. I found one application that could do it, but it was made in 95 for linux .99 and up and um... doesnt exactly want to compile for me. I am wondering if any of you might now how I can do this. I know in winblowz i can use a runas command, but im stuck in linux.

Obie 08-17-2004 02:59 PM

I suppose you could use sudo

gunter 08-17-2004 03:14 PM

I can't resist: WHY??? You CAN disable logins and you CAN diable SSH for specific users. Why this specific need? (Just curious)

pr0wl3r 08-17-2004 09:52 PM

Because if I set the shell to /bin/false, I cant run any programs because I wont have a shell to su to. the sudo command was what I needed.


All times are GMT -5. The time now is 04:19 AM.