Nothing assigning a user ID wont do anything, the system will assign the User ID with what ever is avaiable, -r isnt for assigning user id (-r This flag is used to create a system account. That is, a user with a UID lower than the value of UID_MIN defined in
<br>              /etc/login.defs  and whose password does not expire. Note that useradd will not create a home directory for such an<br>              user, regardless of the default setting in /etc/login.defs.  You have to specify -m  option  if  you  want  a  home
<br>              directory for a system account to be created.  This is an option added by Red Hat.)<br>you should use -u if your looking to assign DI.<br><br><div><span class="gmail_quote">On 10/18/06, <b class="gmail_sendername">
<a href="mailto:redhat-install-list-request@redhat.com">redhat-install-list-request@redhat.com</a></b> <<a href="mailto:redhat-install-list-request@redhat.com">redhat-install-list-request@redhat.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Send Redhat-install-list mailing list submissions to<br>        <a href="mailto:redhat-install-list@redhat.com">
redhat-install-list@redhat.com</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>        <a href="https://www.redhat.com/mailman/listinfo/redhat-install-list">https://www.redhat.com/mailman/listinfo/redhat-install-list
</a><br>or, via email, send a message with subject or body 'help' to<br>        <a href="mailto:redhat-install-list-request@redhat.com">redhat-install-list-request@redhat.com</a><br><br>You can reach the person managing the list at
<br>        <a href="mailto:redhat-install-list-owner@redhat.com">redhat-install-list-owner@redhat.com</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Redhat-install-list digest..."
<br><br><br>Today's Topics:<br><br>   1. Adding Users Command line (Bret Stern)<br>   2. Re: Adding Users Command line (Bob McClure Jr)<br>   3. Re: Adding Users Command line (Rick Stevens)<br>   4. RE: Adding Users Command line (Bret Stern)
<br>   5. Problem installing RHEL 4.0  Hitachi SATA 80GB desksta (Naveed)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Tue, 17 Oct 2006 13:16:14 -0700<br>From: "Bret Stern" <
<a href="mailto:bret_stern@machinemanagement.com">bret_stern@machinemanagement.com</a>><br>Subject: Adding Users Command line<br>To: <<a href="mailto:redhat-install-list@redhat.com">redhat-install-list@redhat.com</a>
><br>Message-ID: <000001c6f229$18e01f40$6701a8c0@mmbret><br>Content-Type: text/plain;       charset="us-ascii"<br><br><br><br>When adding users from the (command line)<br><br>useradd<br><br>has an option -r which assigns a specific user id.
<br><br>Is it common to explicitly assign a user id?<br><br>What happens if I don't specifically assign a user id?<br><br>I'm assuming two users cannot have the same user id,<br>so..how would you know the user id's of all your users?
<br><br>Thanks<br><br><br><br><br><br><br>------------------------------<br><br>Message: 2<br>Date: Tue, 17 Oct 2006 15:27:37 -0500<br>From: Bob McClure Jr <<a href="mailto:bob@bobcatos.com">bob@bobcatos.com</a>><br>
Subject: Re: Adding Users Command line<br>To: <a href="mailto:redhat-install-list@redhat.com">redhat-install-list@redhat.com</a><br>Message-ID: <<a href="mailto:20061017202737.GA12080@bobcat.bobcatos.com">20061017202737.GA12080@bobcat.bobcatos.com
</a>><br>Content-Type: text/plain; charset=us-ascii<br><br>On Tue, Oct 17, 2006 at 01:16:14PM -0700, Bret Stern wrote:<br>><br>><br>> When adding users from the (command line)<br>><br>> useradd<br>><br>
> has an option -r which assigns a specific user id.<br><br>Nope, that tells it to assign a "system-level" user id number, usually<br>less than 500 or 1000.  These are designed for pseudo users assigned<br>to subsystems and processes like mysql, procmail, backup, bin, et al.
<br><br>> Is it common to explicitly assign a user id?<br><br>Only if you want to make it the same as on another system or to force<br>a duplicated UID.<br><br>> What happens if I don't specifically assign a user id?
<br><br>It takes the next available UID in the desired range.  That's usually<br>figured by taking the highest occupied UID in the range and adding<br>one.<br><br>> I'm assuming two users cannot have the same user id,<br>
> so..how would you know the user id's of all your users?<br><br>You don't need to, but if you must, look at the third field (delimited<br>by ':') in /etc/passwd.  Unless you have some good reason to specify a<br>UID, just let the system assign one.
<br><br>> Thanks<br><br>Cheers,<br>--<br>Bob McClure, Jr.             Bobcat Open Systems, Inc.<br><a href="mailto:bob@bobcatos.com">bob@bobcatos.com</a>             <a href="http://www.bobcatos.com">http://www.bobcatos.com
</a><br>"Where you go in the hereafter depends on what you were after here."<br>  - Thanks to Graffiti, 2 March 2004<br><br><br><br>------------------------------<br><br>Message: 3<br>Date: Tue, 17 Oct 2006 15:52:47 -0700
<br>From: Rick Stevens <<a href="mailto:rstevens@vitalstream.com">rstevens@vitalstream.com</a>><br>Subject: Re: Adding Users Command line<br>To: Getting started with Red Hat Linux<br>        <<a href="mailto:redhat-install-list@redhat.com">
redhat-install-list@redhat.com</a>><br>Message-ID: <<a href="mailto:1161125567.22395.88.camel@prophead.corp.publichost.com">1161125567.22395.88.camel@prophead.corp.publichost.com</a>><br>Content-Type: text/plain<br>
<br>On Tue, 2006-10-17 at 15:27 -0500, Bob McClure Jr wrote:<br>> On Tue, Oct 17, 2006 at 01:16:14PM -0700, Bret Stern wrote:<br>> ><br>> ><br>> > When adding users from the (command line)<br>> >
<br>> > useradd<br>> ><br>> > has an option -r which assigns a specific user id.<br>><br>> Nope, that tells it to assign a "system-level" user id number, usually<br>> less than 500 or 1000.  These are designed for pseudo users assigned
<br>> to subsystems and processes like mysql, procmail, backup, bin, et al.<br>><br>> > Is it common to explicitly assign a user id?<br>><br>> Only if you want to make it the same as on another system or to force
<br>> a duplicated UID.<br><br>Or if you relegate ranges of UIDs to specific types of users.<br><br><br>> > What happens if I don't specifically assign a user id?<br>><br>> It takes the next available UID in the desired range.  That's usually
<br>> figured by taking the highest occupied UID in the range and adding<br>> one.<br><br>The values used are given in /etc/login.defs.  By default, RH/FC use<br>user and group IDs beginning at 500 and ending at 60,000.
<br><br>> > I'm assuming two users cannot have the same user id,<br>> > so..how would you know the user id's of all your users?<br><br>Well, all files use the UID and GID _numbers_, not names.  You could<br>have two users, "barney" and "fred" that both have UID 500.  They both
<br>own the file.  When you do an "ls -l", the FIRST name in the /etc/passwd<br>file with that UID will be shown as the owner.<br><br>Remember that the the usernames are only important for login.  File<br>ownership, permissions, ACLs and the lot are determined by UID and GID
<br>numbers, not the names associated with them.<br><br>> You don't need to, but if you must, look at the third field (delimited<br>> by ':') in /etc/passwd.  Unless you have some good reason to specify a<br>> UID, just let the system assign one.
<br><br>If you want to see the user names and their UIDs, as root:<br><br>        # cut -d":" -f1,3 /etc/passwd<br><br>But as Bobcat says, you really don't need to do this.  Let the system<br>sort it out.  It's much less likely to make a boo-boo.
<br><br>----------------------------------------------------------------------<br>- Rick Stevens, Senior Systems Engineer     <a href="mailto:rstevens@vitalstream.com">rstevens@vitalstream.com</a> -<br>- VitalStream, Inc.                       
<a href="http://www.vitalstream.com">http://www.vitalstream.com</a> -<br>-                                                                    -<br>-     Veni, Vidi, VISA:  I came, I saw, I did a little shopping.     -<br>
----------------------------------------------------------------------<br><br><br><br>------------------------------<br><br>Message: 4<br>Date: Tue, 17 Oct 2006 17:59:27 -0700<br>From: "Bret Stern" <<a href="mailto:bret_stern@machinemanagement.com">
bret_stern@machinemanagement.com</a>><br>Subject: RE: Adding Users Command line<br>To: "'Getting started with Red Hat Linux'"<br>        <<a href="mailto:redhat-install-list@redhat.com">redhat-install-list@redhat.com
</a>><br>Message-ID: <001401c6f250$a92f6980$6701a8c0@mmbret><br>Content-Type: text/plain;       charset="us-ascii"<br><br><br><br>> -----Original Message-----<br>> From: <a href="mailto:redhat-install-list-bounces@redhat.com">
redhat-install-list-bounces@redhat.com</a><br>> [mailto:<a href="mailto:redhat-install-list-bounces@redhat.com">redhat-install-list-bounces@redhat.com</a>] On Behalf Of<br>> Bob McClure Jr<br>> Sent: Tuesday, October 17, 2006 1:28 PM
<br>> To: <a href="mailto:redhat-install-list@redhat.com">redhat-install-list@redhat.com</a><br>> Subject: Re: Adding Users Command line<br>><br>> On Tue, Oct 17, 2006 at 01:16:14PM -0700, Bret Stern wrote:<br>
> ><br>> ><br>> > When adding users from the (command line)<br>> ><br>> > useradd<br>> ><br>> > has an option -r which assigns a specific user id.<br>><br>> Nope, that tells it to assign a "system-level" user id number, usually
<br>> less than 500 or 1000.  These are designed for pseudo users assigned<br>> to subsystems and processes like mysql, procmail, backup, bin, et al.<br>><br>> > Is it common to explicitly assign a user id?
<br>><br>> Only if you want to make it the same as on another system or to force<br>> a duplicated UID.<br>><br>> > What happens if I don't specifically assign a user id?<br>><br>> It takes the next available UID in the desired range.  That's usually
<br>> figured by taking the highest occupied UID in the range and adding<br>> one.<br>><br>> > I'm assuming two users cannot have the same user id,<br>> > so..how would you know the user id's of all your users?
<br>><br>> You don't need to, but if you must, look at the third field (delimited<br>> by ':') in /etc/passwd.  Unless you have some good reason to specify a<br>> UID, just let the system assign one.<br>><br>
> > Thanks<br>><br>> Cheers,<br>> --<br>> Bob McClure, Jr.             Bobcat Open Systems, Inc.<br>> <a href="mailto:bob@bobcatos.com">bob@bobcatos.com</a>             <a href="http://www.bobcatos.com">
http://www.bobcatos.com</a><br>> "Where you go in the hereafter depends on what you were after here."<br>>   - Thanks to Graffiti, 2 March 2004<br>><br>> _______________________________________________
<br>> Redhat-install-list mailing list<br>> <a href="mailto:Redhat-install-list@redhat.com">Redhat-install-list@redhat.com</a><br>> <a href="https://www.redhat.com/mailman/listinfo/redhat-install-list">https://www.redhat.com/mailman/listinfo/redhat-install-list
</a><br>> To Unsubscribe Go To ABOVE URL or send a message to:<br>> <a href="mailto:redhat-install-list-request@redhat.com">redhat-install-list-request@redhat.com</a><br>> Subject: unsubscribe<br>><br><br><br>
Thanks for the explanations.<br><br>I'll look in my programming library for examples of<br>using a user id for processing needs. But for my typical<br>users needs, it's crystal clear now.<br><br>Again, cheers<br><br><br><br>
<br><br><br><br><br>------------------------------<br><br>Message: 5<br>Date: Wed, 18 Oct 2006 02:32:30 -0700 (PDT)<br>From: Naveed <<a href="mailto:humour_guy_in@yahoo.com">humour_guy_in@yahoo.com</a>><br>Subject: Problem installing RHEL 
4.0  Hitachi SATA 80GB desksta<br>To: <a href="mailto:redhat-install-list@redhat.com">redhat-install-list@redhat.com</a><br>Message-ID: <<a href="mailto:20061018093230.10903.qmail@web52007.mail.yahoo.com">20061018093230.10903.qmail@web52007.mail.yahoo.com
</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>I am trying to install RHEL 4 , but my SATA Disk driver is not detected. I am using ASUS P5WDG2 WS and Hitachi deskstar 80gb Sata disk. I tried  installing  with every possible change in bios.
<br><br>Regards<br>humorguy<br><br>Reply Soon Or I Will Use Capital Letters<br>In My Next Mail....<br>**~~~~~~~~~^^^^^^^~~~~~~~~~~**<br><br>I'll Take My Time Anywhere<br>Free to Speak My Mind Anywhere<br>I'll Redefine Anywhere
<br>Anywhere I ROAM.<br>**~~~~~~~~~^^^^^^^~~~~~~~~~~**<br>What would u do today, if u knew you would not fail.<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>---------------------------------<br>Do you Yahoo!?
<br> Get on board. You're invited to try the new Yahoo! Mail.<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="https://www.redhat.com/archives/redhat-install-list/attachments/20061018/8e23333e/attachment.html">
https://www.redhat.com/archives/redhat-install-list/attachments/20061018/8e23333e/attachment.html</a><br><br>------------------------------<br><br>_______________________________________________<br>Redhat-install-list mailing list
<br><a href="mailto:Redhat-install-list@redhat.com">Redhat-install-list@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/redhat-install-list">https://www.redhat.com/mailman/listinfo/redhat-install-list</a>
<br><br>End of Redhat-install-list Digest, Vol 32, Issue 9<br>**************************************************<br></blockquote></div><br><br clear="all"><br>-- <br>Rahsaan D. Page