Join Today
+ Reply to Thread
Results 1 to 9 of 9

Thread: root password

  1. #1
    Join Date
    Sep 2005
    Location
    Amsterdam
    Posts
    67

    Default root password

    would setting a password for root be a bad idea?
    iow, would it break things?
    you can get anything you want at alices restaurant

  2. #2

    Default Re: root password

    Why would you want to? Are you afraid someone is going to hack your A780?

  3. #3
    Join Date
    Oct 2005
    Location
    Germany
    Posts
    14

    Default Re: root password

    Hi,
    I think we don't get write permission on the /etc ( I just tried to create /etc/defaultrouter - it didn't work) directory -> you can't set root PW. or maybe existing files can be edited. Try it out!

    Bye,
    Peter

  4. #4

    Default Re: root password

    Files in /etc reside on the root filesystem. This is formatted as a cramfs volume -- compressed RAM filesystem. Perhaps slightly misnamed, it is by nature read-only and the only way to alter files is to recreate the whole filesystem image.

    There are a few hacks that might improve the situation. Mack has a unionfs mod under development that supports an overlay concept. Another method is to re-create the root filesystem with files you want modifiable as symlinks to a writable filesystem (/tmp, /diska, /ezxlocal), but you'd also have to ensure that the targets exist.

    The password thing seems like a minor concern. A successful hack could only be done when telnetd was running, and would have to come from one of the addresses in /etc/hosts.allow -- limited to 169.254.* and 192.168.1.* in my firmware. This seems quite secure, except for the possibility of a malicious GPRS service provider, who could choose one of those address ranges for PPP and root your phone over the air.

  5. #5

    Default Re: root password

    Indeed, one of the first things I did once I got unionfs running, was to set a passwd for root, and also create another acct with an actual homedir and everything.

    As for /etc/hosts.allow, I think only telnetd consults it. The real problem is smbd. It doesn't consult the normal passwd file and just allows full access to everything. I messed with its config file as well, but decided to use iptables to block it from the GPRS interface and from any IP but my laptop anyway.

    If anyone familiar with samba could post a config file that consults a passwd file and doesn't allow guest access, it would be a good addition.

  6. #6
    Join Date
    Oct 2005
    Location
    Germany
    Posts
    14

    Default Re: root password

    Samba:

    there can be other authentication methods set in smb.conf:
    security = user
    smb passwd file = path_to_your_smbpasswd_file
    Anyway, I would suggest to create a non privileged user, set smb.conf "allow user" option to let only this user to connect, and "force user" to this user as well, just to protect the system files from overwite.
    You can use the "bind interfaces only" parameter (global) as well, to restrict access.

    Bye,
    Peter

  7. #7
    Join Date
    Sep 2005
    Location
    Amsterdam
    Posts
    67

    Default Re: root password

    why would i want to set a root password?
    i'm not so much worried about being hacked over some network,
    my concern rather is the fact that contrary to a server in a rack behind several locked doors, this phone is in my pocket.

    just want to make it harder for the person that might steal it i guess.
    you can get anything you want at alices restaurant

  8. #8

    Default Re: root password

    peter_1580, thanks for the tip. Feels much better now.

    deathkill: If your purpose is to make life harder on a thief who steals your phone, there are much better things you can do besides setting a root passwd. Lets just say that if someone steals my phone and is stupid enough to boot it with his own SIM and let it connect to the network, he'll be sorry he did. It'll cost him much more than the price of the phone...

  9. #9

    Default Re: root password

    Quote Originally Posted by mack
    Lets just say that if someone steals my phone and is stupid enough to boot it with his own SIM and let it connect to the network, he'll be sorry he did. It'll cost him much more than the price of the phone...
    Are you saying that you've got some kind of nifty anti-phone jacking feature(s) that activate upon insertion of an unrecognized SIM? That's awesome Please enlighten us!

    One neat feature that I miss from my Nokia 9500 was the remote locking via SMS. In the unfortunate event of a phone theft/loss, you could text your phone a preset password and upon receipt, it would lock the device permanently with your PIN and also text you back letting you know it was successful. At the very least, you could rest easy knowing whoever found/jacked your $700 Communicator couldn't even use it in WiFi-only mode


 
+ Reply to Thread

Similar Threads

  1. Q: .root map
    By sireylithy in forum A1200 General Chat
    Replies: 2
    Last Post: 05-02-2008, 03:47 PM
  2. Replies: 4
    Last Post: 01-03-2008, 07:52 AM
  3. Please help with root directory
    By johnnyshu in forum A1200 General Chat
    Replies: 4
    Last Post: 05-12-2007, 08:02 AM
  4. my a780 seems to have a root password?
    By ceckak in forum A780 General Chat
    Replies: 3
    Last Post: 07-22-2006, 12:33 AM
  5. E680/A780 and root with no password...
    By leopardus2 in forum E680 General Chat
    Replies: 6
    Last Post: 04-04-2005, 03:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1