3 ms·
You can change the shell for a user in /etc/passwd, or with the command chsh. It's funny how little things like this affect where you go with systems. On the u
by cturner 12y ago
You can change the shell for a user in /etc/passwd, or with the command chsh.
It's funny how little things like this affect where you go with systems. On the uni systems, emacs was set up to reformat your code by default (as you typed it in). This drove me bananas, and I didn't realise it was configurable. So I went off and found another editor, and I'm still using it.
- kchoudhu 12y agoJust don't change root's shell to something like bash. BAD THINGS WILL HAPPEN.
- wtracy 12y agoCare to elaborate? Does FreeBSD make assumptions about the root user's shell that Linux doesn't?
- chrismsnz 12y agoYes, root's shell should be one provided by the distribution's base install. I think the biggest worry is that if you need to do something like boot into single user mode for an emergency recovery, and /usr or /usr/local (with root's shell in it) is on a different or unmountable partition then you will not be able to do anything.
- kchoudhu 12y agoSay there's a failure that forces you to bail into an emergency session where you can't mount /usr/local (which is where bash is typically installed on FreeBSD). All of a sudden, you don't have a shell. This is a really bad place to be.