The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How do i change to super user then revert back to ordinary user ,using shell script? wrapster Shell Programming and Scripting 3 06-04-2008 04:11 AM
login from a shell script????? skyineyes Shell Programming and Scripting 2 07-16-2007 02:59 AM
Start and stop of an application thru shell scripts. sadha Shell Programming and Scripting 1 05-08-2006 06:36 AM
cannot login after changing login shell hardesh HP-UX 4 09-13-2005 09:21 PM
Unable to get a login shell pradeepks UNIX for Dummies Questions & Answers 2 01-07-2001 07:40 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-30-2008
Sivaswami's Avatar
Registered User
 

Join Date: Mar 2007
Location: India
Posts: 57
Stumble this Post!
Thumbs up How to Start a Shell as Login shell instead of ordinary shell

Hi

I tried with bash --login option. but the output is

siva:~$ bash --login
siva:~$

is there any way to make the shell ask for user id and password ( and login as different user instead of using sudo / su )

Thx in advance
Siva
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-30-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,808
Stumble this Post!
/etc/passwd has an entry for your login shell. You should not edit /etc/passwd, rather start by reading the man page for passwd for your system. Some systems support something with syntax like
Code:
passwd -e /bin/someshell
Reply With Quote
  #3 (permalink)  
Old 06-30-2008
Sivaswami's Avatar
Registered User
 

Join Date: Mar 2007
Location: India
Posts: 57
Stumble this Post!
sorry it did not worked out.

Also,

passwd -e <account>

makes the password expiry of that account.

Thx,
Siva
Reply With Quote
  #4 (permalink)  
Old 07-01-2008
Registered User
 

Join Date: Jun 2008
Posts: 19
Stumble this Post!
chsh might work on some systems
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:43 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0