Find the answer to your Linux question:
Results 1 to 3 of 3
What is the user account number when you create a root user account for the system during the installation of any linux distribution? I'm not sure if its 0, 1, ...
  1. #1
    Just Joined!
    Join Date
    Feb 2010
    Posts
    3

    Root User Account Number...?

    What is the user account number when you create a root user account for the system during the installation of any linux distribution? I'm not sure if its 0, 1, 10, or 100..

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    It's always 0.

    Code:
    > id root
    uid=0(root) gid=0(root) groups=0(root)
    Debian GNU/Linux -- You know you want it.

  3. #3
    Just Joined! spaceminer143's Avatar
    Join Date
    Nov 2008
    Posts
    20

    more info

    In the way of further information, you can always run
    Code:
    cat /etc/passwd
    This will display a line of information for each user in the form:

    Code:
    root:x:0:0::/root:/bin/bash
    which represents the following information:

    Code:
    username:x:UID:GID::default shell
    username -> The username (duh!)
    x -> a placeholder for the password hash, which is stored in /etc/shadow
    UID -> User ID number
    GID -> Group ID number
    default shell -> the default shell for that user

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...