Find the answer to your Linux question:
Results 1 to 3 of 3
New Linux user I edited the passwd file to modify the default shell for root from bash to tcsh now when I try to login to root it gives me ...
  1. #1
    Just Joined!
    Join Date
    Jan 2010
    Posts
    2

    Messed up the root line passwd file now unable to login as root

    New Linux user
    I edited the passwd file to modify the default shell for root from bash to tcsh
    now when I try to login to root it gives me the following error:

    "su: /bin/tcsh : No such file or directory"

    Thanks

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Is /bin/tcsh the correct path? Is tcsh installed?

    What is the output of
    Code:
    which tcsh
    I recommend using the chsh command to change the default shell.
    Code:
    su -c 'chsh -s /bin/bash root'

  3. #3
    Just Joined!
    Join Date
    Jan 2010
    Posts
    2
    Quote Originally Posted by reed9 View Post
    Is /bin/tcsh the correct path? Is tcsh installed?

    What is the output of
    Code:
    which tcsh
    I recommend using the chsh command to change the default shell.
    Code:
    su -c 'chsh -s /bin/bash root'
    which tcsh returns:
    /bin/tcsh

    I tried the
    su -c 'chsh -s /bin/bash root'
    command and the response was:
    su: /bin/tcsh : No such file or directory
    Thanks for your help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...