SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
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)
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.
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.
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.
Are you running chsh from your user account or from root? If you are running it from root, you would type:
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.