[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem with shell path in passwd



On Tue, 8 Jul 1997, Robert Steward wrote:

> Help!
> 
>     I have installed debian 1.3 Linux on my pentium PC however, upon
> changing the default root and user shells in the 
> /etc/passwd to /bin/tcsh I can no longer login as root. The computer logs
> in but /bin/tsch is not found and logs straight out 
> again! I have tried ftp to this computer but it still looks for this file.
> Is there anyway to change the boot up/login  process so it 
> does not look at this file but uses a default, or can one use the passwd
> file on the rescue disk or custom boot disk( which is 
> what I use to boot the computer anyway).Or is there any other way to fix
> this?

You are getting this problem because /bin/tcsh is not listed in
etc/shells.  To fix it, use the rescue disk to login as root, and either

Add a line for /bin/tcsh in /etc/shells or

Change the shell in /etc/passwd to /usr/bin/tcsh or whatever the real
location of tcsh is.  (The which command will tell you this.  i.e. 'which
tcsh') or

Change the shell in /etc/passwd back to bash or some other valid shell.

Btw, you should never unless strictly neccessary edit /etc/passwd by hand.
  Instead use usermod -s to change a users shell.  This will update
/etc/passwd safely and also check that you are specifying a valid shell.
man usermod(8) for details.

-- Jaldhar


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: