On 11/25/05, Ralph Shumaker <[EMAIL PROTECTED]> wrote:
> Carl Lowenstein wrote:
>
> >On 11/18/05, Ralph Shumaker <[EMAIL PROTECTED]> wrote:
> >
> >
> >>DJA wrote:
> >>
> >>
> >>
> >>>Ralph Shumaker wrote:
> >>>
> >>>
> >>>
> >>>>DJA wrote:
> >>>>
> >>>>
> >>>>>But have you looked at what the corresponding GID actually is for a
> >>>>>given user created with the GUI tool? I prefer the UID and GID
> >>>>>(numerical values) to match.
> >>>>>
> >>>>>what does
> >>>>>
> >>>>>$ ls -lan /home/
> >>>>>
> >>>>>show?
> >>>>>
> >>>>>
> >>>>I'm not around that PC. But I did confirm that both the files owner
> >>>>and group displayed correctly in each user's home directory. Just
> >>>>looking on my own PC here, where I used the GUI tool to set up the
> >>>>users, the first user "rafael" has matching UID and GID (500). The
> >>>>second user has matching also (501). After that, I set up a special
> >>>>group (502). In hindsight, I probably should have set it up with an
> >>>>unusually high GID. But I didn't. Much, much later (very recently),
> >>>>I added a third user. He got UID 502 and GID 503, but only because
> >>>>they each were the next in line respectively.
> >>>>
> >>>>04:47:55 $ ls -lan /home/
> >>>>total 20
> >>>>drwxr-xr-x 5 0 0 4096 Oct 27 09:58 .
> >>>>drwxr-xr-x 24 1000 0 4096 Nov 12 20:42 ..
> >>>>drwx------ 19 501 501 4096 Jan 13 2005 dick
> >>>>drwx------ 21 502 503 4096 Nov 12 02:19 gvl
> >>>>drwx------ 52 500 500 4096 Nov 15 04:35 rafael
> >>>>
> >>>>04:48:05 $
> >>>>
> >>>>
> >>>Yes. gvl has a UID matching SpecialGroup's GID. Why wouldn't gvl have
> >>>a UID of 502 and a GID of 502? Because SpecialGroup already has a GID
> >>>of 502. I would have set gvl's UID/GID to 504/504.
> >>>
> >>>
> >>I would have also. I just was not thinking about that when I added it.
> >>But the only time I ever see it is when I go to the Users and Groups
> >>GUI. In normal use, why would you ever use -n (in ls -lan)?
> >>
> >>
> >
> >Only when troubleshooting, which I think was the situation here.
> >
> >
>
> Well, not here. I didn't have a problem. It started with DJA replying
> to my request for what to keep, how to keep it, and how to transition it
> to a fresh install of an upgraded version. He warned against using the
> GUI "User and Group" program because it has misbehaved for him. I
> replied that I have not experienced its shenanigans. My mismatched
> numbers resulted from my own misstep.
>
>
> >>>Which is why I don't like the GUI tool's automatic numbering scheme.
> >>>BTW, I don't ever remember having this problem with RH9 and earlier.
> >>>
> >>>
> >>RH9 is where I did it (on my PC, the special group with no user that is).
> >>
> >>I suppose I could have set up a UID along with the special GID, but I
> >>did not want to create a user's home directory for it, although come to
> >>think of it, that may have helped in other ways. Oh well. If I ever
> >>care to deal with it, I will correct it all then.
> >>
> >>
> >
> >You can have a UID without a corresponding user's home directory. Look at
> > nobody:nobody:x:99:99:Nobody:/:/sbin/nologin
> >
> >
>
> I have no idea how to "look at" that. I've seen "nobody" somewhere.
> And I know where to find "/" and "/sbin/nologin". But as to what the
> rest of that means, I haven't a clue. I also don't know if the ":"
> links each item in some way or another. Eight items.
Clue: that is a line quoted from /etc/passwd.
Maybe it is too much of an in thing to expect people to recognize an
/etc/passwd line.
But it wasn't on the newbie list.
carl
--
carl lowenstein marine physical lab u.c. san diego
[EMAIL PROTECTED]
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list