Author Topic: How Can I Edit /root/.profile  (Read 2756 times)

redwdc

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • http://
How Can I Edit /root/.profile
« on: January 20, 2008, 09:48:47 am »
I'm using a SL-C3200 with the Sharp ROM and I want to change the su prompt from '# ' to '\w #'. (I like to know where I am, I get forgetful sometimes.  ) It would also be nice to be able to some aliases.

If I go to the su prompt and type joe /root /.profile joe says that it's read only.

Yet, from su I type ls -l /root.profile and get:
    -rw-rw-r--    1 root     root         272 Jan 14 2006 .profile[/li]
which as far as I remember means it's read/write for the root user.

If I try to rename or delete .profile I get : Read-only file system.

And lastly changing /etc/.profile or any other .profile has no effect


Robin

Drake01

  • Full Member
  • ***
  • Posts: 226
    • View Profile
How Can I Edit /root/.profile
« Reply #1 on: January 20, 2008, 12:12:49 pm »
Quote from: redwdc
If I try to rename or delete .profile I get : Read-only file system.

I think the Sharp ROM is configured with a /home/root/ directory, which should contain the file that you need to edit.  I don't have my wife's Zaurus handy to check, but I'm going to guess that /root is part of a filesystem that may be used for initial booting but is kept read-only.  /home/root/ probably replaces the /root directory at some later stage in the booting process.
Device: SL-C3200 running pdaXii13v2 build 5.5.0
Networking: Symbol Spectrum24 WLAN card; Kingston CIO10T CF NIC
Storage: 4GB Transcend 150x SD; 16GB Transcend 133x CF; 4GB Seagate CF HDD; 4GB Patriot SD
HID: Logitech V450 Laser Mouse; generic silicone USB keyboard; 2 generic optical mice; stock plastic stylus
GPS: generic "UT-41" USB GPS Receiver
Case: neoprene case from my old Palm foldable keyboard

redwdc

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • http://
How Can I Edit /root/.profile
« Reply #2 on: January 20, 2008, 12:50:28 pm »
Quote from: Drake01
Quote from: redwdc
If I try to rename or delete .profile I get : Read-only file system.
but I'm going to guess that /root is part of a filesystem that may be used for initial booting but is kept read-only.

Drake01,
Thanks for the reply. I'm sorry, but what I meant by 'And lastly changing /etc/.profile or any other .profile has no effect' included /home/root/.profile and any other .profile that I could find by going to su and typing find / -name .profile*:
    /home/etc/.profile
    /home/root/.profile
    /root/.profile[/li]
In at least Ubuntu you can sudo  edit /root/.profile

Robin

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
How Can I Edit /root/.profile
« Reply #3 on: January 20, 2008, 02:21:38 pm »
I think Meanie explains it here:
http://www.users.on.net/~hluc/myZaurus/custom.html#custom
Scroll down to, or search for "Configuring bash"
« Last Edit: January 20, 2008, 02:24:16 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

redwdc

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • http://
How Can I Edit /root/.profile
« Reply #4 on: January 20, 2008, 05:54:58 pm »
Thank You Jon_J,

That did the trick.  One of these days I'm going to give Meanie his own folder in my bookmarks directory.

Robin
« Last Edit: January 20, 2008, 06:06:26 pm by redwdc »