The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > 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 07:11 AM
login from a shell script????? skyineyes Shell Programming and Scripting 2 07-16-2007 05:59 AM
Start and stop of an application thru shell scripts. sadha Shell Programming and Scripting 1 05-08-2006 09:36 AM
cannot login after changing login shell hardesh HP-UX 4 09-14-2005 12:21 AM
Unable to get a login shell pradeepks UNIX for Dummies Questions & Answers 2 01-07-2001 11:40 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-30-2008
Sivaswami's Avatar
Sivaswami Sivaswami is offline
Registered User
  
 

Join Date: Mar 2007
Location: India
Posts: 62
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
  #2 (permalink)  
Old 06-30-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,710
/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
  #3 (permalink)  
Old 06-30-2008
Sivaswami's Avatar
Sivaswami Sivaswami is offline
Registered User
  
 

Join Date: Mar 2007
Location: India
Posts: 62
sorry it did not worked out.

Also,

passwd -e <account>

makes the password expiry of that account.

Thx,
Siva
  #4 (permalink)  
Old 07-01-2008
Roman Voznyuk Roman Voznyuk is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 19
chsh might work on some systems
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:56 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0