[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Redhat-install-list Digest, Vol 32, Issue 9



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
              /etc/login.defs  and whose password does not expire. Note that useradd will not create a home directory for such an
              user, regardless of the default setting in /etc/login.defs.  You have to specify -m  option  if  you  want  a  home
              directory for a system account to be created.  This is an option added by Red Hat.)
you should use -u if your looking to assign DI.

On 10/18/06, redhat-install-list-request redhat com <redhat-install-list-request redhat com> wrote:
Send Redhat-install-list mailing list submissions to
         redhat-install-list redhat com

To subscribe or unsubscribe via the World Wide Web, visit
        https://www.redhat.com/mailman/listinfo/redhat-install-list
or, via email, send a message with subject or body 'help' to
        redhat-install-list-request redhat com

You can reach the person managing the list at
        redhat-install-list-owner redhat com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Redhat-install-list digest..."


Today's Topics:

   1. Adding Users Command line (Bret Stern)
   2. Re: Adding Users Command line (Bob McClure Jr)
   3. Re: Adding Users Command line (Rick Stevens)
   4. RE: Adding Users Command line (Bret Stern)
   5. Problem installing RHEL 4.0  Hitachi SATA 80GB desksta (Naveed)


----------------------------------------------------------------------

Message: 1
Date: Tue, 17 Oct 2006 13:16:14 -0700
From: "Bret Stern" < bret_stern machinemanagement com>
Subject: Adding Users Command line
To: <redhat-install-list redhat com >
Message-ID: <000001c6f229$18e01f40$6701a8c0 mmbret>
Content-Type: text/plain;       charset="us-ascii"



When adding users from the (command line)

useradd

has an option -r which assigns a specific user id.

Is it common to explicitly assign a user id?

What happens if I don't specifically assign a user id?

I'm assuming two users cannot have the same user id,
so..how would you know the user id's of all your users?

Thanks






------------------------------

Message: 2
Date: Tue, 17 Oct 2006 15:27:37 -0500
From: Bob McClure Jr <bob bobcatos com>
Subject: Re: Adding Users Command line
To: redhat-install-list redhat com
Message-ID: <20061017202737 GA12080 bobcat bobcatos com >
Content-Type: text/plain; charset=us-ascii

On Tue, Oct 17, 2006 at 01:16:14PM -0700, Bret Stern wrote:
>
>
> When adding users from the (command line)
>
> useradd
>
> has an option -r which assigns a specific user id.

Nope, that tells it to assign a "system-level" user id number, usually
less than 500 or 1000.  These are designed for pseudo users assigned
to subsystems and processes like mysql, procmail, backup, bin, et al.

> Is it common to explicitly assign a user id?

Only if you want to make it the same as on another system or to force
a duplicated UID.

> What happens if I don't specifically assign a user id?

It takes the next available UID in the desired range.  That's usually
figured by taking the highest occupied UID in the range and adding
one.

> I'm assuming two users cannot have the same user id,
> so..how would you know the user id's of all your users?

You don't need to, but if you must, look at the third field (delimited
by ':') in /etc/passwd.  Unless you have some good reason to specify a
UID, just let the system assign one.

> Thanks

Cheers,
--
Bob McClure, Jr.             Bobcat Open Systems, Inc.
bob bobcatos com             http://www.bobcatos.com
"Where you go in the hereafter depends on what you were after here."
  - Thanks to Graffiti, 2 March 2004



------------------------------

Message: 3
Date: Tue, 17 Oct 2006 15:52:47 -0700
From: Rick Stevens <rstevens vitalstream com>
Subject: Re: Adding Users Command line
To: Getting started with Red Hat Linux
        < redhat-install-list redhat com>
Message-ID: <1161125567 22395 88 camel prophead corp publichost com>
Content-Type: text/plain

On Tue, 2006-10-17 at 15:27 -0500, Bob McClure Jr wrote:
> On Tue, Oct 17, 2006 at 01:16:14PM -0700, Bret Stern wrote:
> >
> >
> > When adding users from the (command line)
> >
> > useradd
> >
> > has an option -r which assigns a specific user id.
>
> Nope, that tells it to assign a "system-level" user id number, usually
> less than 500 or 1000.  These are designed for pseudo users assigned
> to subsystems and processes like mysql, procmail, backup, bin, et al.
>
> > Is it common to explicitly assign a user id?
>
> Only if you want to make it the same as on another system or to force
> a duplicated UID.

Or if you relegate ranges of UIDs to specific types of users.


> > What happens if I don't specifically assign a user id?
>
> It takes the next available UID in the desired range.  That's usually
> figured by taking the highest occupied UID in the range and adding
> one.

The values used are given in /etc/login.defs.  By default, RH/FC use
user and group IDs beginning at 500 and ending at 60,000.

> > I'm assuming two users cannot have the same user id,
> > so..how would you know the user id's of all your users?

Well, all files use the UID and GID _numbers_, not names.  You could
have two users, "barney" and "fred" that both have UID 500.  They both
own the file.  When you do an "ls -l", the FIRST name in the /etc/passwd
file with that UID will be shown as the owner.

Remember that the the usernames are only important for login.  File
ownership, permissions, ACLs and the lot are determined by UID and GID
numbers, not the names associated with them.

> You don't need to, but if you must, look at the third field (delimited
> by ':') in /etc/passwd.  Unless you have some good reason to specify a
> UID, just let the system assign one.

If you want to see the user names and their UIDs, as root:

        # cut -d":" -f1,3 /etc/passwd

But as Bobcat says, you really don't need to do this.  Let the system
sort it out.  It's much less likely to make a boo-boo.

----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens vitalstream com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-     Veni, Vidi, VISA:  I came, I saw, I did a little shopping.     -
----------------------------------------------------------------------



------------------------------

Message: 4
Date: Tue, 17 Oct 2006 17:59:27 -0700
From: "Bret Stern" < bret_stern machinemanagement com>
Subject: RE: Adding Users Command line
To: "'Getting started with Red Hat Linux'"
        <redhat-install-list redhat com >
Message-ID: <001401c6f250$a92f6980$6701a8c0 mmbret>
Content-Type: text/plain;       charset="us-ascii"



> -----Original Message-----
> From: redhat-install-list-bounces redhat com
> [mailto:redhat-install-list-bounces redhat com] On Behalf Of
> Bob McClure Jr
> Sent: Tuesday, October 17, 2006 1:28 PM
> To: redhat-install-list redhat com
> Subject: Re: Adding Users Command line
>
> On Tue, Oct 17, 2006 at 01:16:14PM -0700, Bret Stern wrote:
> >
> >
> > When adding users from the (command line)
> >
> > useradd
> >
> > has an option -r which assigns a specific user id.
>
> Nope, that tells it to assign a "system-level" user id number, usually
> less than 500 or 1000.  These are designed for pseudo users assigned
> to subsystems and processes like mysql, procmail, backup, bin, et al.
>
> > Is it common to explicitly assign a user id?
>
> Only if you want to make it the same as on another system or to force
> a duplicated UID.
>
> > What happens if I don't specifically assign a user id?
>
> It takes the next available UID in the desired range.  That's usually
> figured by taking the highest occupied UID in the range and adding
> one.
>
> > I'm assuming two users cannot have the same user id,
> > so..how would you know the user id's of all your users?
>
> You don't need to, but if you must, look at the third field (delimited
> by ':') in /etc/passwd.  Unless you have some good reason to specify a
> UID, just let the system assign one.
>
> > Thanks
>
> Cheers,
> --
> Bob McClure, Jr.             Bobcat Open Systems, Inc.
> bob bobcatos com             http://www.bobcatos.com
> "Where you go in the hereafter depends on what you were after here."
>   - Thanks to Graffiti, 2 March 2004
>
> _______________________________________________
> Redhat-install-list mailing list
> Redhat-install-list redhat com
> https://www.redhat.com/mailman/listinfo/redhat-install-list
> To Unsubscribe Go To ABOVE URL or send a message to:
> redhat-install-list-request redhat com
> Subject: unsubscribe
>


Thanks for the explanations.

I'll look in my programming library for examples of
using a user id for processing needs. But for my typical
users needs, it's crystal clear now.

Again, cheers








------------------------------

Message: 5
Date: Wed, 18 Oct 2006 02:32:30 -0700 (PDT)
From: Naveed <humour_guy_in yahoo com>
Subject: Problem installing RHEL 4.0  Hitachi SATA 80GB desksta
To: redhat-install-list redhat com
Message-ID: <20061018093230 10903 qmail web52007 mail yahoo com >
Content-Type: text/plain; charset="iso-8859-1"

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.

Regards
humorguy

Reply Soon Or I Will Use Capital Letters
In My Next Mail....
**~~~~~~~~~^^^^^^^~~~~~~~~~~**

I'll Take My Time Anywhere
Free to Speak My Mind Anywhere
I'll Redefine Anywhere
Anywhere I ROAM.
**~~~~~~~~~^^^^^^^~~~~~~~~~~**
What would u do today, if u knew you would not fail.















---------------------------------
Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.redhat.com/archives/redhat-install-list/attachments/20061018/8e23333e/attachment.html

------------------------------

_______________________________________________
Redhat-install-list mailing list
Redhat-install-list redhat com
https://www.redhat.com/mailman/listinfo/redhat-install-list

End of Redhat-install-list Digest, Vol 32, Issue 9
**************************************************



--
Rahsaan D. Page
[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]