This is in RHEL-8.10 for what it's worth...
in /etc/passwd I have
ron:x:20000:100:me:/home/ron:/bin/bash so my uid is 20000, and my gid is 100 which as defined by convention in /etc/group is the users group. And after a clean install of Linux from iso the users group in /etc/group is empty.
The scenario is this:
mkdir /data chown jack.users /data chmod 770 /data ls -l /datashowsdrwxrwx---. 4 jack users <date> data- account
ronis not inusers:x:100:in/etc/group. - as
/roncannotcd /datawith it asdrwxrwx---.- ron can only
cd /dataifchmod 777 /dataorputronin/etc/groupunderusers:x:100:ron`
- ron can only
Can someone let me know what I may be missing or doing wrong which would contribute to such a scenario?
The baffling part is I have a RHEL-8.10 server with some hundred users defined in /etc/passwd all having their primary group id as 100 and none are defined in users:x:100: in /etc/group and this problem does not happen.
Does your account primary group in /etc/passwd mean that you are inherently in that group or do you also need to also list those accounts in /etc/group after users:x:100: ?
ronand runid?/etc/passwd. That gid doesn't even have to exist in/etc/group(or any other sources of groups, such as LDAP)