Re: changing login/default shell

2010-01-22 Thread Jan van Eldik
Hi, Could you please verify that your *current* shell in listed in /etc/shells? If not, could you please add it and try chsh once more? For historical reasons AFS users at CERN often have shells prepended with /usr/local, ie /usr/local/bin/bash. This is changed on SLC5... hth,

Re: changing login/default shell

2010-01-22 Thread Dr Andrew C Aitchison
On Wed, 20 Jan 2010, suvayu ali wrote: Hi everyone, I want to change my login shell on a SL 4.8 machine I don't have root access to (atcanpc, its only accessible from lxplus). I have tried `chsh -s `which bash`'. But that returns me the following error: chsh: Your shell is not in /etc/shells,

Re: changing login/default shell

2010-01-22 Thread suvayu ali
Hi Jan, 2010/1/22 Jan van Eldik jan.van.el...@cern.ch: Could you please verify that your *current* shell in listed in /etc/shells? If not, could you please add it and try chsh once more? My current shell is zsh, and I want to change to bash. As you can see both are listed there. $ cat

Re: changing login/default shell

2010-01-21 Thread Fernando Campos
That sounds strange... As the chsh man page says, *chsh -l* lists the content of /etc/shells, so your machine should have /bin/bash. Have you tried to execute *chsh* , then insert your password and finally type /bin/bash??? Have you checked what *which bash* returns?? Have you tried to execute

Re: changing login/default shell

2010-01-21 Thread Steven Leikeim
On Wed, Jan 20, 2010 at 11:11:00PM -0800, suvayu ali wrote: Hi everyone, I want to change my login shell on a SL 4.8 machine I don't have root access to (atcanpc, its only accessible from lxplus). I have tried `chsh -s `which bash`'. But that returns me the following error: chsh: Your shell

Re: changing login/default shell

2010-01-21 Thread suvayu ali
Hi Fernando and Steven, 2010/1/21 Steven Leikeim sleik...@ucalgary.ca: On Wed, Jan 20, 2010 at 11:11:00PM -0800, suvayu ali wrote: Hi everyone, I want to change my login shell on a SL 4.8 machine I don't have root access to (atcanpc, its only accessible from lxplus). I have tried `chsh -s

Re: changing login/default shell

2010-01-21 Thread Brett Viren
suvayu ali fatkasuv...@gmail.com writes: I have tried all those possibilities, everyone of them give me the same error! I get the same error even if I provide no arguments. As far as I understand this, if no arguments are provided chsh is supposed to prompt me for a shell. Maybe you are

Re: changing login/default shell

2010-01-21 Thread suvayu ali
2010/1/21 Brett Viren bvi...@minos.phy.bnl.gov: suvayu ali fatkasuv...@gmail.com writes: I have tried all those possibilities, everyone of them give me the same error! I get the same error even if I provide no arguments. As far as I understand this, if no arguments are provided chsh is

Re: changing login/default shell

2010-01-21 Thread Chris Tooley
$ lchsh username Password: Changing shell for username. Error initializing libuser: not executing with superuser privileges. Have you tried running this command as root? -Chris

Re: changing login/default shell

2010-01-21 Thread suvayu ali
2010/1/21 Chris Tooley ctoo...@uvic.ca: $ lchsh username Password: Changing shell for username. Error initializing libuser: not executing with superuser privileges. Have you tried running this command as root? If I could be root life would be so much easier. ;) As I mentioned in the OP,

changing login/default shell

2010-01-20 Thread suvayu ali
Hi everyone, I want to change my login shell on a SL 4.8 machine I don't have root access to (atcanpc, its only accessible from lxplus). I have tried `chsh -s `which bash`'. But that returns me the following error: chsh: Your shell is not in /etc/shells, shell change denied. However when I do