LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-13-2004, 06:16 AM   #1
Smokey
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 311

Rep: Reputation: 30
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.
 
Old 07-13-2004, 06:18 AM   #2
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 50
transparency=eterm,aterm... not xterm
 
Old 07-13-2004, 11:53 AM   #3
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

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

Last edited by rgiggs; 07-13-2004 at 12:11 PM.
 
Old 07-13-2004, 11:54 AM   #4
CartersAdvocate
Member
 
Registered: Sep 2003
Location: Columbus, OH
Distribution: Slackware 12.2
Posts: 166

Rep: Reputation: 30
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.
 
Old 07-13-2004, 11:56 AM   #5
CartersAdvocate
Member
 
Registered: Sep 2003
Location: Columbus, OH
Distribution: Slackware 12.2
Posts: 166

Rep: Reputation: 30
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)
 
Old 07-13-2004, 12:08 PM   #6
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Rep: Reputation: 30
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.
 
Old 07-13-2004, 05:04 PM   #7
Smokey
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 311

Original Poster
Rep: Reputation: 30
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.
 
Old 07-13-2004, 07:53 PM   #8
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Rep: Reputation: 30
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.
 
Old 07-13-2004, 11:21 PM   #9
CartersAdvocate
Member
 
Registered: Sep 2003
Location: Columbus, OH
Distribution: Slackware 12.2
Posts: 166

Rep: Reputation: 30
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.
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
 
Old 07-14-2004, 12:37 AM   #10
Smokey
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 311

Original Poster
Rep: Reputation: 30
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?
 
Old 07-14-2004, 12:51 AM   #11
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Rep: Reputation: 30
no, you don't need to reboot. you only need to log out and log back in.
 
Old 07-14-2004, 12:56 AM   #12
Smokey
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 311

Original Poster
Rep: Reputation: 30
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.
 
Old 07-14-2004, 01:06 AM   #13
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error when starting up snort: bash:!/bin/sh/usr/local/bin/snort :Eent not found cynthia_thomas Linux - Software 1 11-11-2005 02:59 PM
What is the difference between #!/bin/bash and #!/bin/sh? mTorbin Linux - Newbie 5 11-09-2005 12:10 PM
/tools/bin/env: /tools/bin/bash: No such file or directory DaZjorz Linux From Scratch 21 07-27-2005 07:11 AM
why did bash 2.05b install delete /bin/bash & "/bin/sh -> bash"? johnpipe Linux - Software 2 06-06-2004 06:42 PM
bin/bash:usr/bin/lpr NO SUCH FILE OR DIRECTORY Adibe_Hamm Linux - Newbie 3 10-14-2003 02:30 AM


All times are GMT -5. The time now is 07:45 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration