master.passwd adding users

Discussion in 'iPod touch' started by ipodfan256, May 11, 2009.

  1. ipodfan256

    ipodfan256 New Member

    Joined:
    Apr 7, 2009
    Messages:
    218
    Likes Received:
    0
    Device:
    iPod touch
    Hey,

    Well.. does anyone know how to add user to the file
    When i do it and try to login using Terminal i get errors can't find file when the permission are read and write for the file.

    ##
    # User Database
    #
    # This file is the authoritative user database.
    ##
    nobody:*:-2:-2::0:0:Unprivileged User:/var/empty:/usr/bin/false
    root:/smx7MYTQIi2M:0:0::0:0:System Administrator:/var/root:/bin/sh
    backup:/smx7MYTQIi2M:0:0::0:0:System Administrator:/var/root:/bin/sh
    mobile:/smx7MYTQIi2M:501:501::0:0:Mobile User:/var/mobile:/bin/sh
    daemon:*:1:1::0:0:System Services:/var/root:/usr/bin/false
    _securityd:*:64:64::0:0:securityd:/var/empty:/usr/bin/false
    _mdnsresponder:*:65:65::0:0:mDNSResponder:/var/empty:/usr/bin/false
    _sshd:*:75:75::0:0:sshd Privilege separation:/var/empty:/usr/bin/false
    _unknown:*:99:99::0:0:Unknown User:/var/empty:/usr/bin/false

    Does anyone know what im doing wrong? Thanks
    ------------------double post merged------------------
    Could someone please help me
  2. Ezekeel

    Ezekeel New Member

    Joined:
    Mar 15, 2009
    Messages:
    771
    Likes Received:
    0
    Device:
    iPhone 3GS (Black)
    On Linux systems there is a command 'useradd' to do this which sadly is not available on the iPod.

    Try this:

    1. Add to /etc/master.passwd:

    backup:/smx7MYTQIi2M:666:666::0:0:System Administrator:/var/backup:/bin/sh

    2. Open file /etc/group and add 'backup' to every group which also contains 'root'. For example:

    wheel:*:0:root,backup

    3. Create home dir for backup:

    mkdir /var/backup
    chown backup /var/backup

Share This Page