Re: changing shell
On Sunday 11 December 2005 22:07, FreeBsdBeni wrote: Hi, I'm trying to get my shell changed from the default csh to bash. I followed the instruction in the handbook, chsh -s /usr/local/bin/bash beni and got the reply that the user information was updated : [EMAIL PROTECTED]:/home/beni chsh -s /usr/local/bin/bash beni chsh: user information updated [EMAIL PROTECTED]:/home/beni Did the same for root. Looked with vipw and my shell was changed to bash. My /etc/shells was also modified : [EMAIL PROTECTED]:~ cat /etc/shells # $FreeBSD: src/etc/shells,v 1.5 2000/04/27 21:58:46 ache Exp $ # # List of acceptable shells for chpass(1). # Ftpd will not allow users to connect who are not using # one of these shells. /bin/sh /bin/csh /bin/tcsh /usr/local/bin/bash [EMAIL PROTECTED]:~ But when logging out and back in again, the shell didn't change to bash. It's still csh... I just get the %-sign and have to type bash to get the bash-shell in a console. And the weird thing is with path : %echo $path /sbin /bin /usr/sbin /usr/local/bin /usr/games /usr/local/sbin /usr/bin /usr/X11R6/bin /home/beni/bin % [EMAIL PROTECTED]:~ echo $path [EMAIL PROTECTED]:~ Any hints on the why of this ? Try: pw user mod beni -s /usr/local/bin/bash -- Regards , Vasile C If UNIX doesn't have the solution you have the wrong problem. UNIX is simple, but it takes a genius to understand it's simplicity. pgpuZUuRZMkIq.pgp Description: PGP signature
Re: changing shell
On Sunday 11 December 2005 03:17, Vasile C wrote: On Sunday 11 December 2005 22:07, FreeBsdBeni wrote: Hi, I'm trying to get my shell changed from the default csh to bash. I followed the instruction in the handbook, chsh -s /usr/local/bin/bash beni and got the reply that the user information was updated : [EMAIL PROTECTED]:/home/beni chsh -s /usr/local/bin/bash beni chsh: user information updated [EMAIL PROTECTED]:/home/beni Did the same for root. Looked with vipw and my shell was changed to bash. My /etc/shells was also modified : [EMAIL PROTECTED]:~ cat /etc/shells # $FreeBSD: src/etc/shells,v 1.5 2000/04/27 21:58:46 ache Exp $ # # List of acceptable shells for chpass(1). # Ftpd will not allow users to connect who are not using # one of these shells. /bin/sh /bin/csh /bin/tcsh /usr/local/bin/bash [EMAIL PROTECTED]:~ But when logging out and back in again, the shell didn't change to bash. It's still csh... I just get the %-sign and have to type bash to get the bash-shell in a console. And the weird thing is with path : %echo $path /sbin /bin /usr/sbin /usr/local/bin /usr/games /usr/local/sbin /usr/bin /usr/X11R6/bin /home/beni/bin % [EMAIL PROTECTED]:~ echo $path [EMAIL PROTECTED]:~ Any hints on the why of this ? Try: pw user mod beni -s /usr/local/bin/bash hey, that worked ! Thanks. -- Beni. pgpAJOHYEHRiK.pgp Description: PGP signature
Re: changing shell
FreeBsdBeni wrote: [EMAIL PROTECTED]:/home/beni chsh -s /usr/local/bin/bash beni chsh: user information updated [EMAIL PROTECTED]:/home/beni This should work if you are truly root, as the prompt suggests. If you are not, then you need to modify /etc/shells to include bash before invoking chsh. [EMAIL PROTECTED]:~ echo $path [EMAIL PROTECTED]:~ Any hints on the why of this ? When not invoked as a login shell, bash does not read /etc/profile or ~/.profile. -- James Bailie [EMAIL PROTECTED] http://www.jamesbailie.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]