LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 07: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, 07:30 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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 03:11 PM
My first question-New User ahmedelhamahmy Linux - General 3 07-16-2006 03:02 AM
New User Question... Nith Mandriva 6 09-13-2005 01:08 AM
Postfix email user & linux user question. hct224 Linux - Newbie 0 11-29-2003 11:24 PM
user question sqn Slackware 3 09-05-2003 04:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:25 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
Open Source Consulting | Domain Registration