LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-28-2012, 08:11 AM   #1
Coolmax
LQ Newbie
 
Registered: Jul 2009
Location: Poland
Distribution: openSUSE, Debian
Posts: 15

Rep: Reputation: 0
User ID question


Hello all,
I'm configuring postfix on my new VPS. I remember that in one step I have to make user 'vmail' with UID=5000 (for example). Is possible that after user is created with such UID, new users' IDs will begin with 1000, 1001, 1002 an so on? Thanks in advance and sorry for my english.
 
Old 06-28-2012, 08:30 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,674
Blog Entries: 14

Rep: Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021Reputation: 1021
By default useradd will make the user ID (UID) of a user at least 1 greater than the highest number in the passwd file.

However you can use the -u flag to specify UID when adding a user:

e.g.
useradd -u 1005 myuser

You can also use the -u with usermod to modify UID after adding a user in case you forget.
 
  


Reply

Tags
user id


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
user question ripper Linux - Newbie 1 11-20-2007 04:11 PM
My first question-New User ahmedelhamahmy Linux - General 3 07-16-2006 04:02 AM
New User Question... Nith Mandriva 6 09-13-2005 02:08 AM
Postfix email user & linux user question. hct224 Linux - Newbie 0 11-30-2003 12:24 AM
user question sqn Slackware 3 09-05-2003 05:00 AM


All times are GMT -5. The time now is 11:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration