[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Unable to change shell and add groups



On 06/12/13 21:16, shawn wilson wrote:
> $ chsh -s /bin/zsh ag4ve
> Password:

> $ grep ag4ve /etc/passwd
> ag4ve:x:1008:1008::/home/ag4ve:/bin/zsh

That's as it should be so chsh is working....
So something associated with your login is setting /bin/bash as your
default shell(?).



> $ echo $SHELL
> /bin/bash
> $ readlink /proc/$$/exe
> /bin/bash
> $ cat /etc/debian_version
> 6.0.8
> $ grep zsh /etc/shells
> /bin/zsh
> /usr/bin/zsh
> 
> Oh, there is some interresting stuff about /etc/shells - probably
> unrelated, but just weirdness:
> $ grep tcsh /etc/shells
> /usr/bin/tcsh
> /bin/tcsh
> $ whereis tcsh
> tcsh:


Weird?  for some reason I thought you were interested in *zsh* not *tcsh* :/

$ cat /etc/shells
# /etc/shells: valid login shells
/bin/csh
/bin/sh
/usr/bin/es
/usr/bin/ksh
/bin/ksh
/usr/bin/rc
/usr/bin/tcsh
/bin/tcsh
/usr/bin/esh
/bin/dash
/bin/bash
/bin/rbash
/usr/bin/screen
/bin/mksh
/bin/mksh-static
/bin/zsh
/usr/bin/zsh


> 
> And, linking around the whole system:
> $ readlink /bin/zsh
> /etc/alternatives/zsh
> $ readlink /etc/alternatives/zsh
> /bin/zsh4
> $ readlink /usr/bin/zsh
> /etc/alternatives/zsh-usrbin
> $ readlink /etc/alternatives/zsh-usrbin
> /bin/zsh4
> 
> (again, not probably not the issue and just annoys me since I noticed it)
> 
> On Fri, Dec 6, 2013 at 3:10 AM, Scott Ferguson
> <scott.ferguson.debian.user@gmail.com> wrote:
>> On 06/12/13 18:31, shawn wilson wrote:
>>> For some reason, when I chsh to say /bin/zsh, log out and back in, I'm
>>> still in bash - confirmed with readlink /proc/$$/exe
>>
>> Which release are you running?
>>
>> For me this works:-
>> # chsh -s /bin/zsh $me (where $me is your username).
>>
>>
>> Check with:-
>> $ echo $SHELL
>> or:-
>> $ grep $me /etc/passwd (where $me is your username).
>>
>>
>>
<snipped>
Kind regards


Reply to: