[Samba] valid users issue with a few groups

Rowland Penny rpenny at samba.org
Sat Oct 10 06:35:35 UTC 2026


On Fri, 9 Oct 2026 23:53:10 +0000
Shannon Price via samba <samba at lists.samba.org> wrote:

> 
> We've recently converted our ID mapping away from NIS completely. We
> have implemented Redhat Identity Management.

You might get better help from either redhat or freeipa.


> We have this working
> well with our three Samba servers. It is a very nice solution because
> it works with our NFS servers and the campus Isilon as well.

Samba AD does as well.

> 
> With Samba we have noticed that certain groups do not work in the
> valid users field for their share.  If we remove the valid users
> field, Samba still recognizes group memberships on the file systems
> correctly.  In the attached config,

Sorry, but this list strips attachments.

> my user is in four groups: deans,
> ecegrad, ea, rams.  I have four shares defined each with a
> corresponding @groupname (we have also played with +groupname and
> various fully qualified formats).  Two shares work (ea - GID 30, rams
> GID 324).  Two shares don't work (deans - GID 35, ecegrad - GID 2009).
> 
> create_connection_session_info: user 'jondoe' (from session setup)
> not permitted to access this share (deans)
> 
> If I remove the valid users, all four shares work.  Also within the
> folder I have four subfolders owned by root, with permissions 770 (ea
> folder is group ea, rams folder is group rams, etc).  Group
> membership is respected, including other folders where the user is
> not in the group.

You really shouldn't be using 'valid users' on a 'domain' member, it
would be better to use vfs_acl_xattr and set permissions on the share.

> 
> Getent and groups command show the correct memberships for the users.
> 
> This behavior is the same for the problematic groups on all four of
> my samba servers. Only "valid users" is affected. All four are Ubuntu
> 22.04, Samba 4.15.13-Ubuntu.

I do not think you are hitting a bug, but if you are, it is doubtful
that you would get it fixed on your version of Samba, it went EOL from
the Samba point of view over 3 years ago.

Rowland






More information about the samba mailing list