how to change my login shell - Fedora Support Forums and Community
Results 1 to 8 of 8
  1. #1
    ndha Guest

    how to change my login shell

    hi all,

    I've just upgrade from RH9 to Fedora 1. Everything seems fine but now I can't change my shell to tcsh.
    I use the command `chsh' to change the shell to /bin/tcsh. It was ok. However, when i run tcsh command, it turns out that my shell is still bash. I check the $SHELL variable and find that it is still bash. I tried `chsh', it says that my shell is already tcsh (no change) :-( Please let me know how I can change this.

    Another problem is that when I type `su' at the command line, I am in root (and have root priviledge) but the prompt doesn't change to root@. Do you know why it is that ?

    thank you.

  2. #2
    foolish Guest
    Use su -, not su, to become root, su only changes to root permissions, su - (with the -) changes the enviroment to root. (Or something like that, I really have no idea :P)

    Start memorizing: su -, su -. su -,

    Default shell can be set for each user using redhat-config-users which is also found at the hat > System Settings > Users

    If you're in text mode or lazy use:
    usermod -s /bin/tcsh username
    Last edited by foolish; 13th March 2004 at 03:30 PM.

  3. #3
    ndha Guest
    Yes, I did check the user setting. My account (the only one in my computer) is set to use tcsh but the shell still remains bash whenever I open a terminal.

  4. #4
    Join Date
    Feb 2004
    Queensland, AU
    Try adding
    export SHELL=/bin/tcsh
    to your ~/.bash_profile or ~/.bashrc
    Registered Linux User # 348963
    GnuPG KeyID: 0xCE9F8922

  5. #5
    Join Date
    Mar 2004
    You could also run /usr/bin/redhat-config-users to edit your user account or you could edit /etc/passwd and change the shell there.


  6. #6
    Join Date
    Mar 2010

    Re: how to change my login shell

    I have the same issue; cannot change shell from /bash to /tcsh.

    I have tried all commands listed here and the message I recieve is still "Shell not changed".

    Anyone know how to resolve this minor issue?

    /etc/shells has the following:




  7. #7
    stevea Guest

    Re: how to change my login shell

    Congrats on bumping an ancient thread - may be a new record.

    [stevea@nidula ~]$ chsh -l
    [stevea@nidula ~]$ chsh -s /bin/tcsh
    Changing shell for stevea.
    Password: ######
    Shell changed.
    [stevea@nidula ~]$
    [stevea@nidula ~]$ grep stevea /etc/passwd
    "######' is where I entered my passwd.

    AFTER you do the above then logout and log back in.
    [stevea@nidula ~]$ echo $SHELL
    So I don't understand your problem. Post the EXACT results if this fails.

  8. #8
    Join Date
    Mar 2010

    Smile Re: how to change my login shell

    That did it , Thanks Steve.

Similar Threads

  1. login window "can i change my login screen in fedora 10
    By oshan1991 in forum Using Fedora
    Replies: 15
    Last Post: 31st October 2009, 12:11 PM
  2. Replies: 1
    Last Post: 29th May 2008, 04:34 AM
  3. How do I change my default shell?
    By youhaodeyi in forum Using Fedora
    Replies: 3
    Last Post: 8th October 2007, 03:55 AM
  4. To have a shell (instead of KDE) first login?
    By grautu in forum Using Fedora
    Replies: 1
    Last Post: 4th September 2005, 10:22 PM
  5. change icon from shell
    By Igoraus in forum Using Fedora
    Replies: 7
    Last Post: 20th October 2004, 09:55 AM

Tags for this Thread

Posting Permissions

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