Author Topic: Changing root shell in Z5600  (Read 2264 times)

Windrose

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • http://
Changing root shell in Z5600
« 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
================================
Die Welt ist alles, was der Fall ist.
...
Wovon man nicht sprechen kann, darüber muß man schweigen.
================================

stmpynode

  • Newbie
  • *
  • Posts: 19
    • View Profile
    • http://cnaude.freeshell.org
Changing root shell in Z5600
« Reply #1 on: June 24, 2004, 05:41:56 am »
vi /etc/passwd

Edit the first line. This is just basic *nix stuff.

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Changing root shell in Z5600
« Reply #2 on: June 24, 2004, 09:02:20 am »
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
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

Yasen

  • Full Member
  • ***
  • Posts: 107
    • View Profile
    • http://
Changing root shell in Z5600
« Reply #3 on: June 24, 2004, 10:23:03 am »
And how about tab completation?
[span style=\'font-size:8pt;line-height:100%\']SL-5600 PXA-250
noname 256 MB MMC fat,
SanDisk 1GB  CF vfat
[/span]

Windrose

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • http://
Changing root shell in Z5600
« Reply #4 on: June 24, 2004, 10:56:32 am »
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
================================
Die Welt ist alles, was der Fall ist.
...
Wovon man nicht sprechen kann, darüber muß man schweigen.
================================

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
Changing root shell in Z5600
« Reply #5 on: June 24, 2004, 10:58:50 am »
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.
« Last Edit: June 24, 2004, 10:59:04 am by tumnus »
# Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
--------------------
UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
Qualendar for Calendar and Todo
Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender