Results 1 to 4 of 4
Discuss Adding new non-root user problem at the General - Hackint0sh.org; I don't like being logged in as root all the time when messing around with ...
  1. #1
    Senior Professional Array cyberface's Avatar

    Join Date
    Jul 2007
    Posts
    139
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    13

    Default Adding new non-root user problem

    I don't like being logged in as root all the time when messing around with the phone, as accidental damage occurs... perhaps I'm just old and been using unix too long.

    Anyway I've changed the root password, and hacked the master.passwd file and group file to include a new user, with a new password.

    The trouble is getting a home directory set up for the new user. I'm trying to create a directory in /var like the root and mobile user directories, but chown doesn't work.

    Anyone know why? Any use of chown gives me 'memory exhausted' errors.



  2. #2
    Advanced Array renegaderon's Avatar

    Join Date
    Jul 2007
    Posts
    39
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    That would be great to be able to login other than root especially when using BitchX in terminal for irc . Hope you figure it out sorry I'm not any help.

  3. #3
    Senior Professional Array

    Join Date
    Jul 2007
    Posts
    187
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    16

    Default

    I have the same problem cyber. Will chmod 666 work?

  4. #4
    Senior Professional Array cyberface's Avatar

    Join Date
    Jul 2007
    Posts
    139
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    13

    Default

    OK closest I've got is to do the following things:

    1. Use chmod to allow everyone to write to /var
    2. Set up new non-root user in master.passwd with /var/root as home
    3. Use su to log in as new user
    4. Create directory in /var for new user
    5. Go back to root, change master.passwd to set home to new directory (owned by new user)
    6. Change /var to be only writable by root again.

    Unfortunately the group settings appear to be ignored - my new non-root user was group 'mobile' rather than 0 (wheel) yet the new directory in /var ended up owned by the user but group wheel. And chown doesn't work.

    But given that /var/root is world writable anyway (for iTunes no doubt) there's a limit to how secure you can make the iPhone. But at least I've got a non-root user to log in with that has its own home directory in /var.

 

 

Similar Threads

  1. Couldn't Find root user
    By nevermind1993 in forum Archiv (Leopard)
    Replies: 4
    Last Post: 09-08-2008, 10:42 PM
  2. BSD root: md0, major 2, minor 0 problem
    By djordano in forum iPhone "2G" (Rev. 1)
    Replies: 3
    Last Post: 04-12-2008, 07:00 PM
  3. Adding yahoo mail account problem
    By everlyluke in forum General
    Replies: 6
    Last Post: 02-06-2008, 05:55 PM
  4. Keyboard problem adding URL to contact
    By gormnass in forum iPhone "2G" (Rev. 1)
    Replies: 4
    Last Post: 01-10-2008, 04:58 PM
  5. Replies: 0
    Last Post: 10-28-2007, 09:21 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 12:30 AM.
twitter, follow us!