LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 06-28-2007, 10:06 PM   #1
edcrozer
LQ Newbie
 
Registered: Jun 2007
Posts: 3

Rep: Reputation: 0
Creating a login shell using sudoshell


Hi,

I've just finished installing sudoshell for some of the more important server. We're using the combination of sudo with sudoshell, so we can audit everything a user is doing when opening a shell as root or oracle.

My question is....


Is there a way to use sudoshell as the default login shell. I would like to force all users loging into the server with there username to automatically start the shell using susoshell.

I've thought about putting the "/bin/sudo /usr/bin/sudoshell -u $USER -" in to the local ~/.profile of each user, but would love to just change the the default login shell.
 
Old 06-28-2007, 10:56 PM   #2
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
I guess you could edit the /etc/passwd for each respective user? If you want the login shell to be for the entire system, maybe look at the /etc/profile? I'm just totally guessing and I am probably wrong, but it's better than nothing!
 
Old 06-28-2007, 11:20 PM   #3
edcrozer
LQ Newbie
 
Registered: Jun 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Yes I want to change the default login shell in the passwd file. How do I pass the user name to the sudoshell.

example:

1. I login in as edward
2. the login calls what ever shell is specified in the /etc/passwd (usually /bin/bsh) for this example /usr/bin/sudoshell
3. the login starts sudoshell and goes directly to a root shell

I would like to use sudoshell for each user (sudoshell -u edward -) how do you pass the parameters for each user.
 
  


Reply



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
How to check in a script whether the shell is login or non login? frankie_DJ Programming 7 10-21-2015 10:09 AM
Difference between normal shell and login shell Manish Linux - General 7 11-14-2012 08:30 AM
creating a user with no shell fredanthony Linux - Newbie 8 07-18-2006 09:28 AM
wrong login shell prevent root login cefs99 Linux - Security 4 05-31-2006 08:28 AM
creating a new user using shell only ? ( RH 9 ) CooLMaN Linux - General 4 04-04-2004 11:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:19 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration