adduser-(related defs in /etc/passwd)

Issues related to software problems.
Post Reply
saman_artorious
Posts: 73
Joined: 2008/09/19 19:03:37

adduser-(related defs in /etc/passwd)

Post by saman_artorious » 2008/11/10 11:33:32

Hi,
Saman:x:501:100:Mr.Spammer:/home/Mister Spammer:/bin/bash

what are x and 501?
as i know 501 is the USER ID, how can i manually set it when i create users.
(as i do for goup id -g & also the file that keeps information /etc/group)

any helps would be thankful

NedSlider
Forum Moderator
Posts: 2897
Joined: 2005/10/28 13:11:50
Location: UK

Re: adduser-(related defs in /etc/passwd)

Post by NedSlider » 2008/11/10 11:51:53

X is your password, or rather not your password (as it's actually stored in /etc/shadow as an encrypted hash).

You can specify the UID with the -u (--uid) option. See man useradd.

saman_artorious
Posts: 73
Joined: 2008/09/19 19:03:37

Re: adduser-(related defs in /etc/passwd)

Post by saman_artorious » 2008/11/10 12:08:08

thanks

Post Reply