LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Change /bin/bash to /bin/zsh (https://www.linuxquestions.org/questions/slackware-14/change-bin-bash-to-bin-zsh-204440/)

Smokey 07-13-2004 06:16 AM

Change /bin/bash to /bin/zsh
 
Hi, I tried to do this command but it doesnt change it to zsh

Code:

chsh -s /bin/zsh
BTW, I use xterm right now, is there a way to make it transparent? Do I have to use something else like rxvt? Thank you for any help. :study:

mrcheeks 07-13-2004 06:18 AM

transparency=eterm,aterm... not xterm

rgiggs 07-13-2004 11:53 AM

i think you can try to edit /etc/passwd and change your shell from there.

CartersAdvocate 07-13-2004 11:54 AM

Re: Change /bin/bash to /bin/zsh
 
Quote:

Originally posted by Smokey
Hi, I tried to do this command but it doesnt change it to zsh

Code:

chsh -s /bin/zsh

What does it do when you run that? Does it give an error or what? That only changes the login shell, so you are logging out and back in after running that right? To change the *current* shell, all you have to do is run /bin/zsh

Also, for chsh to work, the shell must be listed in /etc/shells but that shouldn't be a problem, because /bin/zsh was in mine by default.

CartersAdvocate 07-13-2004 11:56 AM

Quote:

Originally posted by rgiggs
i think you can try to edit /etc/shadow and change your shell from there.
The shell is in /etc/passwd not /etc/shadow but yes that is an option also, assuming they have root access (which they don't need for chsh)

rgiggs 07-13-2004 12:08 PM

Quote:

Originally posted by j3ff3r
The shell is in /etc/passwd not /etc/shadow but yes that is an option also, assuming they have root access (which they don't need for chsh)
thanks, passwd was what i meant.

Smokey 07-13-2004 05:04 PM

Re: Re: Change /bin/bash to /bin/zsh
 
Quote:

Originally posted by j3ff3r
What does it do when you run that? Does it give an error or what? That only changes the login shell, so you are logging out and back in after running that right? To change the *current* shell, all you have to do is run /bin/zsh

Also, for chsh to work, the shell must be listed in /etc/shells but that shouldn't be a problem, because /bin/zsh was in mine by default.


Yeah, but everytime I open my shell, it has /bin/bash, I want to change it to /bin/zsh for my "normal" user account, root account was changed though thank you. :study:

rgiggs 07-13-2004 07:53 PM

did you change the entry for the user account you're using? the line you should change is the line that begins with your username. it might look like this: Smokey:x:1001:1001::/home/Smokey:/bin/bash.

CartersAdvocate 07-13-2004 11:21 PM

Re: Re: Re: Change /bin/bash to /bin/zsh
 
Quote:

Originally posted by Smokey
Yeah, but everytime I open my shell, it has /bin/bash, I want to change it to /bin/zsh for my "normal" user account, root account was changed though thank you. :study:
Are you running chsh from your user account or from root? If you are running it from root, you would type:

Code:

chsh -s /bin/zsh username

Smokey 07-14-2004 12:37 AM

Quote:

Originally posted by rgiggs
did you change the entry for the user account you're using? the line you should change is the line that begins with your username. it might look like this: Smokey:x:1001:1001::/home/Smokey:/bin/bash.
yeah I did that but it doesnt go into effect, do I need to reboot? :scratch:

rgiggs 07-14-2004 12:51 AM

no, you don't need to reboot. you only need to log out and log back in.

Smokey 07-14-2004 12:56 AM

Quote:

Originally posted by rgiggs
no, you don't need to reboot. you only need to log out and log back in.
thank you, that worked perfectly.

rgiggs 07-14-2004 01:06 AM

you're welcome. anyway, if you want a less intrusive (and perhaps harder-to-mess-up) way to achieve the same thing, and if you're using kde, then you can use the KUser program to change the login shell of users. good luck.


All times are GMT -5. The time now is 12:04 AM.