On Tuesday 29 June 2004 13:52, John Coldrick wrote:
Not really. bash is the standard, default shell in most Linux distributions. I'm not sure which distro you're coming from to think this. What's "standard Linux"?
I was talking in the way SuSE choose the user's shell. It's not sufficient (or even necessary ??) to change the 7th field of /etc/passwd ! Only by using "chsh" (see the post from Jerry Feldman) or by the way you explained below.
I use csh all the time in my user account(it's my default). I rarely run as root, so I leave that alone. The idea is supposed to be that you run primarily in a user account - much safer.
Sure, I agree and I do that, always. I change to root only as need to issue administrative commands. I know, I am a CLI user, mostly. So, a powerfull shell (or at least, a shell I know very well) is mandatory.
How can I change the root's shell from bash to tcsh ? I edited the file /etc/passwd, but the subsequent login as root, still have bash as shell.
You should use the interface when doing this - it handles all the potential security layers you may or may not have implemented. Start up Yast - Security and Users/Edit and Create Users. Change the "Set Filter" on the lower right to "System users". Click on root, then "Edit", then "Details" In there you can set the shell for root.
Is this worked, just like "chsh" command.
If this seems like a lot of work, it should be. The idea is to make an interface that keeps you from screwing up your system. Rarely should someone be altering default shells, even moreso for root.
This is quite amazing ! Has SuSE tweaked the /bin/login ?
Again. most distros nowadays have their own tweaks. Nothing really odd about it. I'm unaware of any "standard" that SUSE is somehow breaking convention with.
editing, carefully, the /etc/passwd would worked too. but not. Thank you for the hints about using YaST to do that. I learned one more way.