changing the shell and editor
Gordon Ewasiuk
gewasiuk at gatecrasher.dyndns.org
Wed Aug 25 23:21:48 PDT 2004
On Wed, 25 Aug 2004, Marcel.lautenbach wrote:
> well, i've tried a bit playin with the /etc/master.passwd, adduser,
> vipw an so on.
>
> now i use the bash shell. but, i am not able to change my enviroment
> variables anymore. trying "set EDITOR emacs" did not work. when ich
> echo my editor variable, it is empty. though i have changed my shell
> back to csh in the /etc/master.password file, when i log on i still
> use the bash.
>
> rebooting the system or kill -1 1 didn't do any good. i am getting
> confused now a bit. acually changes in the master.passwd file should
> take effect in any case, shouldn't they?
greetings marcel,
try using 'pw' to change your shell:
pw user mod $username -s /bin/$shell
also, when i set variables in bash:
[myserver]$ echo $SHELL
/bin/bash
[myserver]$ name=marcel
[myserver]$ echo $name
marcel
regards,
-gordon
More information about the freebsd-newbies
mailing list