Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 08-17-2004, 02:30 PM   #1
LQ Newbie
Registered: Aug 2004
Posts: 2

Rep: Reputation: 0
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.
Old 08-17-2004, 03:59 PM   #2
Registered: Apr 2004
Distribution: Red Hat
Posts: 290

Rep: Reputation: 30
I suppose you could use sudo
Old 08-17-2004, 04:14 PM   #3
Registered: Jan 2003
Distribution: Gentoo
Posts: 65

Rep: Reputation: 15
I can't resist: WHY??? You CAN disable logins and you CAN diable SSH for specific users. Why this specific need? (Just curious)
Old 08-17-2004, 10:52 PM   #4
LQ Newbie
Registered: Aug 2004
Posts: 2

Original Poster
Rep: Reputation: 0
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Root login but no user login on samba Cybercool Linux - Newbie 3 07-13-2011 06:36 AM
How to run a Script as root, after Login as User, in GDM MHOOO Red Hat 14 03-08-2005 09:41 AM
how do I make sure that the user that is going to run the script is a root user??? nikold01 Linux - General 3 09-10-2004 08:54 AM
I have re-installed MK 9.2 but cannot login as user, login as root works. bobinglis Mandriva 2 02-22-2004 12:39 PM
can only login as root? user login doesnt work..? anyone? hacking_4_b33r Linux - General 1 02-06-2004 12:40 AM > Forums > Linux Forums > Linux - Security

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration