You are not logged in.

#1 2013-07-08 16:33:08

Suami777
Member
Registered: 2013-07-07
Posts: 46

[SOLVED] Cant change shell for user (zsh)

Hello i'm trying to change my bash to zsh, but i cant change it as default shell on other user than root.

chsh -s $(which zsh)
Changing shell for user.
Password:
chsh: Shell not changed.

i dont know what to do, on gentoo it works fine

Last edited by Suami777 (2013-07-08 20:05:37)

Offline

#2 2013-07-08 16:38:03

oliver
Member
Registered: 2007-12-12
Posts: 448

Re: [SOLVED] Cant change shell for user (zsh)

what does 'chsh -l' (that is an ell) give?

Offline

#3 2013-07-08 16:44:04

Suami777
Member
Registered: 2013-07-07
Posts: 46

Re: [SOLVED] Cant change shell for user (zsh)

chsh -l

/bin/sh
/bin/bash

/usr/bin/zsh

Offline

#4 2013-07-08 16:44:18

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Cant change shell for user (zsh)

Offline

#5 2013-07-08 16:51:30

Suami777
Member
Registered: 2013-07-07
Posts: 46

Re: [SOLVED] Cant change shell for user (zsh)

ok so if i good understand

 chsh -s $(/usr/bin/zsh)

its logging me on zsh shell but after run new terminal its again bash

Last edited by Suami777 (2013-07-08 16:51:41)

Offline

#6 2013-07-08 16:57:55

HalosGhost
Forum Fellow
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,097
Website

Re: [SOLVED] Cant change shell for user (zsh)

Suami777 wrote:

ok so if i good understand

 chsh -s $(/usr/bin/zsh)

its logging me on zsh shell but after run new terminal its again bash

No need for the "$()".

$ chsh -s /usr/bin/zsh

The above should do just fine.

All the best,

-HG

Offline

#7 2013-07-08 16:59:26

Suami777
Member
Registered: 2013-07-07
Posts: 46

Re: [SOLVED] Cant change shell for user (zsh)

damn

chsh -s /usr/bin/zsh
Changing shell for user.
Password:
chsh: Shell not changed.

Offline

#8 2013-07-08 17:47:30

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Cant change shell for user (zsh)

I've just checked and it should have worked with 'chsh -s $(which zsh)' - it did work for me.
Log out and log back in. What's the output of

echo $SHELL

?

Maybe you've already succesfully changed shells

$ chsh -s $(which zsh)
Changing shell for karol.
Password: 
Shell changed.
$ chsh -s $(which zsh)
Changing shell for karol.
Password: 
chsh: Shell not changed.

I did type the correct password, but I already changed my shell to zsh so I got this rather unhelpful error message.

Last edited by karol (2013-07-08 17:50:20)

Offline

#9 2013-07-08 17:58:16

Suami777
Member
Registered: 2013-07-07
Posts: 46

Re: [SOLVED] Cant change shell for user (zsh)

well actualy i didnt

echo $SHELL
/bin/bash
chsh -s $(which zsh)
Zmiana powłoki dla user.
Hasło: 
chsh: Powłoka nie została zmieniona. 

sorry for polish laguange but i see karol is polish user

Last edited by Suami777 (2013-07-08 17:59:22)

Offline

#10 2013-07-08 18:06:58

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Cant change shell for user (zsh)

I understand English, so please post in English :-)

Did you log out before 'echo $SHELL'?

$ echo $SHELL
/bin/bash
$ chsh -s $(which zsh)
Changing shell for karol.
Password: 
Shell changed.
$ echo $SHELL
/bin/bash

Are you sure you're not mistyping your password?

Offline

#11 2013-07-08 18:08:12

Suami777
Member
Registered: 2013-07-07
Posts: 46

Re: [SOLVED] Cant change shell for user (zsh)

yes i'm 100% sure

P.S. I knwo youre know english but i didnt want to change laguange for one code post smile

Last edited by Suami777 (2013-07-08 18:08:51)

Offline

#12 2013-07-08 18:10:48

HalosGhost
Forum Fellow
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,097
Website

Re: [SOLVED] Cant change shell for user (zsh)

Suami777 wrote:

yes i'm 100% sure

P.S. I knwo youre know english but i didnt want to change laguange for one code post smile

See Pasting Pictures and Code. You don't need to change  your language to easily make the output of a command appear in English smile

All the best,

-HG

Offline

#13 2013-07-08 18:12:14

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Cant change shell for user (zsh)

Not sure what do you mean by changing language, it's really easy to have your output in English: https://wiki.archlinux.org/index.php/Fo … s_and_Code

Please prepend LC_ALL=C to posted commands so that the output will be in English.

Edit: HalosGhost's posts wasn't here when I checked before posting, but I had to wait an eternity to have my post submitted :-(



You still haven't answered whether you did log out before issuing 'echo $SHELL'.

Last edited by karol (2013-07-08 18:15:45)

Offline

#14 2013-07-08 18:18:20

HalosGhost
Forum Fellow
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,097
Website

Re: [SOLVED] Cant change shell for user (zsh)

karol wrote:

Edit: HalosGhost's posts wasn't here when I checked before posting, but I had to wait an eternity to have my post submitted :-(

Karol, that feeling right there; that's what we all feel like most of the time with your posts smile

All the best,

-HG

Offline

#15 2013-07-08 18:28:04

Suami777
Member
Registered: 2013-07-07
Posts: 46

Re: [SOLVED] Cant change shell for user (zsh)

ok its great option i will use it next time smile

anyway any idea what to do with zsh ?

Offline

#16 2013-07-08 18:29:01

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Cant change shell for user (zsh)

You still haven't answered whether you did log out before issuing 'echo $SHELL'.

Offline

#17 2013-07-08 18:29:58

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Cant change shell for user (zsh)

karol wrote:

You still haven't answered whether you did log out before issuing 'echo $SHELL'.


Silence is an answer... tongue


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#18 2013-07-08 18:31:59

Suami777
Member
Registered: 2013-07-07
Posts: 46

Re: [SOLVED] Cant change shell for user (zsh)

changed

go in terminal > type chsh -s $(which zsh) + password > close window (no exit) > run new terminal = got bash

go in terminal > type chsh -s $(which zsh) + password > exit > exit > run new terminal = got bash

Last edited by Suami777 (2013-07-08 18:37:01)

Offline

#19 2013-07-08 18:43:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Cant change shell for user (zsh)

Were you running is from X or from tty? You need to log out of that session or at least log in in another session (e.g. tty2)



jasonwryan wrote:
karol wrote:

You still haven't answered whether you did log out before issuing 'echo $SHELL'.


Silence is an answer... tongue

Father: Speech is silver, silence is ...?
6yo kid: Of the lambs!

Offline

#20 2013-07-08 18:43:30

Suami777
Member
Registered: 2013-07-07
Posts: 46

Re: [SOLVED] Cant change shell for user (zsh)

karol wrote:

Were you running is from X or from tty? You need to log out of that session or at least log in in another session (e.g. tty2)



jasonwryan wrote:
karol wrote:

You still haven't answered whether you did log out before issuing 'echo $SHELL'.


Silence is an answer... tongue

Father: Speech is silver, silence is ...?
6yo kid: Of the lambs!

quote from harry potter ? smile ?

Offline

#21 2013-07-08 18:46:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Cant change shell for user (zsh)

Suami777 wrote:

quote from harry potter ? smile ?

No idea. I have neither read nor watched it so I must have gotten it from somewhere else.

You can just reboot the computer if you're unsure about that logging out stuff.

Offline

#22 2013-07-08 18:49:12

Suami777
Member
Registered: 2013-07-07
Posts: 46

Re: [SOLVED] Cant change shell for user (zsh)

i have no i idea what is not working i was making reboot and nothing help, dontk now why its not working hmm the worst think is i'm again thinking about going back to gentoo hmm

Offline

#23 2013-07-08 18:57:02

Suami777
Member
Registered: 2013-07-07
Posts: 46

Re: [SOLVED] Cant change shell for user (zsh)

the only one think i can say "lol"

sudo chsh -s $(which zsh)

wordked ;w, dont ask me how i dont know but it worked

Offline

#24 2013-07-08 18:58:47

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Cant change shell for user (zsh)

Great news :-)
That was the last thing I wanted to try out - I noticed 'usermod -s' needed sudo to work properly :-)

Offline

#25 2013-07-08 19:01:36

Suami777
Member
Registered: 2013-07-07
Posts: 46

Re: [SOLVED] Cant change shell for user (zsh)

but still in man i dont see information about needed sudo to execute -s

strange smile

Thank you very much for help smile

Offline

Board footer

Powered by FluxBB