OESF Portables Forum
General Forums => General Discussion => Topic started by: Windrose on June 23, 2004, 04:17:15 pm
-
Sigh. Okay, I know this verges on an FAQ, but I've yet to find an answer that helps me. I use an SL5600 with the as-delivered Sharp ROM. 3.1 somthing. I want to change the profile of root to use the bash shell in lieu of the crufty sh shell that is the default. Fine.
Thing of it is, I can't figure out where this setting is. Using Sharp's terminal ap the default user, zaurus, comes up in the bash shell. Root does not. Neither home director (zaurus or root) seems to have a .profile file. In passwd _both_ accounts show sh as their default shell, which _do_ pose the question of why user zaurus gets bash instead.
Is there a terminal config file somewhere that sets the shell for the user when it's called?
Or something?
And why _aren't_ there .profile files of some sort in the home directories???
I'm sure there's a Simple Answer {Tm}, but it's eluding me.
Windrose
-
vi /etc/passwd
Edit the first line. This is just basic *nix stuff.
-
Change /bin/sh at then end of the root entry in /etc/passwd to /bin/bash.
You should probably do this for the zaurus entry too (if 5600 has a zaurus entry)
Stu
-
And how about tab completation?
-
Well, yes, it _is_ just basic *nix stuff, and you're correct, editing passwd gets root to use the bash shell, but it doesn't answer the underlying question which I'll repeat:
If the shell for both user zaurus and user root is specified as "sh" in /etc/passwd, how is it that when I invoke the terminal application "zaurus" gets the bash shell and "root" gets sh?
More curiosity than anything at this stage.
Windrose
-
The terminal app explicitely launches bash, but 'su' or any other login (telnet/ssh) uses the setting in /etc/passwd.
Tab completion comes with bash.