Find the answer to your Linux question:
Results 1 to 4 of 4
Can we add multiple user with same uid.... help pls...
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    25

    Question How to add multiple user with same uid

    Can we add multiple user with same uid....
    help pls

  2. #2
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    855
    Yes we can.

  3. #3
    Just Joined!
    Join Date
    Aug 2010
    Posts
    6
    Yes, we can add by the following command
    # useradd -ou <uid> <username>
    example # useradd -ou 1001 user1
    #useradd -ou 1001 user2
    (-o for non-unique and -u to give uid , as you know it)

  4. #4
    Just Joined!
    Join Date
    Sep 2010
    Location
    Dhaka, Bangladesh
    Posts
    29
    you could also manually edit /etc/passwd, /etc/shadow, /etc/group and if necessary /etc/gshadow..but kinda risky since permission is set based on UID instead of user names..

Posting Permissions

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