LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 08-17-2004, 01:30 PM   #1
pr0wl3r
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, 02:59 PM   #2
Obie
Member
 
Registered: Apr 2004
Distribution: Red Hat
Posts: 290

Rep: Reputation: 30
I suppose you could use sudo
 
Old 08-17-2004, 03:14 PM   #3
gunter
Member
 
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, 09:52 PM   #4
pr0wl3r
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.
 
  


Reply


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 05:36 AM
How to run a Script as root, after Login as User, in GDM MHOOO Red Hat 14 03-08-2005 08: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 07:54 AM
I have re-installed MK 9.2 but cannot login as user, login as root works. bobinglis Mandriva 2 02-22-2004 11:39 AM
can only login as root? user login doesnt work..? anyone? hacking_4_b33r Linux - General 1 02-05-2004 11:40 PM


All times are GMT -5. The time now is 01:52 PM.

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