On Wed, Mar 16, 2016 at 08:21:35AM +0100, Max Power wrote:
| Find! Thank You Paul.
| 
| in /etc/passwd [about user]
| 
| testx:*:1001:1000::/home/testx:/usr/bin/false

That doesn't match what you said earlier.  This has user testx with
UID 1001 and GID 1000.  In your previous mail you said user testx has
UID 1001 and GID 1001:

| > | # id testx: uid=1001(testx) gid=1001 groups=1001, 1000(laboratory)

So something is weird here.

| So I have no choice but to replace '1001' with '1000' ?
| 
| testx:*:1000:1000::/home/testx:/usr/bin/false Ok?

You have lots of choices when it comes to the login group of the user,
about 65 thousand of them.  What makes sense depends on what you want
this user to do / have access to / etc.  Making the login group of the
testx user 1000 would put him in the laboratory group (again, as per
your data).  Does that make sense?  Probably, since the user is
already in that group according to /etc/group.

But we cannot tell you what group this user belongs in.  That's up to
you to decide.  It seems that you are missing some basic unix
knowledge in this area, you may want to read up on this or take a
basic unix course to expand your knowledge in this area.

Cheers,

Paul 'WEiRD' de Weerd

| > On Wed, Mar 16, 2016 at 07:10:09AM +0100, Max Power wrote:
| > | Hi Todd, guys.
| > |
| > | LogOut e reboot has been the first thing I have done,
| > | but nothing... gid is always there!
| > |
| > | The group not exist but gid: yes!
| > | # groups testx: group: can't find group 'testx'
| > | # id testx: uid=1001(testx) gid=1001 groups=1001, 1000(laboratory)
| >
| > The gid id reports here is the group that's configured in your passwd
| > file.  The line will look like this:
| >
| > testx:*:1001:1001:Test User:/home/testx:/bin/ksh
| > -------------^^^^
| >
| > That's the GID right there.  A user always has a login group that's
| > configed in /etc/passwd.  If you don't want this group to be used,
| > don't put users in it (either in /etc/group as additional groups or in
| > /etc/passwd as the login group).
| >
| > Cheers,
| >
| > Paul 'WEiRD' de Weerd
| >
| > | I just can not understand this!
| > | can someone please help me?
| > | Thanks.
| > |
| > | The same situation, with other deleted group, is on another server with
| > | OpenBSD 5.7 amd64.
| > |
| > | > A user's active groups are set at login time.  Removing a group
| > | > from the group file does not affect processes that are already
| > | > running.  If you logout and login again after removing the group
| > | > you should no longer be a member of the group.
| > | >
| > | >  - todd
| > |
| >
| > --
| >>++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
| > +++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
| >                  http://www.weirdnet.nl/
| 

-- 
>++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
                 http://www.weirdnet.nl/                 

Reply via email to