changing shell

James Bailie jimmy at jamesbailie.com
Sun Dec 11 06:56:47 PST 2005


FreeBsdBeni wrote:

 > root at PCBSD:/home/beni> chsh -s /usr/local/bin/bash beni
 > chsh: user information updated
 > root at PCBSD:/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.

 > beni at PCBSD:~> echo $path
 >
 > beni at PCBSD:~>
 >
 > Any hints on the why of this ?

When not invoked as a login shell, bash does not read /etc/profile or 
~/.profile.

-- 
James Bailie <jimmy at jamesbailie.com>
http://www.jamesbailie.com


More information about the freebsd-questions mailing list