Permission owner

,

Neth server 8

Hi , I viewing in the structure shares of samba AD , exactly in _data folder , the permission are samba1:samba1 , but in the subfolder the numeric id group not exist !??!

this is a listing of shares folder permission :slight_smile:

[root@ns8 shares]# ls -l

total 0

drwxr-xr-x. 4 samba1 samba1 33 Feb 28 2024 _data

[root@ns8 shares]# cd _data/

[root@ns8 _data]# ls

pub transito

[root@ns8 _data]# ls -l

total 8

drwxrwxr-x. 5 samba1 296707 87 Mar 8 12:30 pub

drwxrwxr-x. 2 samba1 296707 95 Apr 16 09:16 transito

[root@ns8 _data]#

The users group does exist in the container but not on the host, therefore you just see the gid.

To run ls in the container:

[root@ns8rockytest ~]# runagent -m samba1 podman exec samba-dc ls -l /srv/shares
total 12
drwxrwxr-x. 4 root users 113 May 24 21:22 testfolder
drwxrwxr-x. 2 root users   6 Mar  6 09:30 testshare

hi Markus !
This is a response :
runagent -m samba1 podman exec samba-dc ls -l /srv/shares

total 12

total 8

drwxrwxr-x. 5 root users 87 Mar 8 11:30 pub

drwxrwxr-x. 2 root users 95 Apr 16 07:16 transito

1 Like

thank , the unknown id is present because I m run the command from rocky linux Os and not from container ?

1 Like

Yes, on the rocky host the group “users” isn’t known:

[root@ns8rockytest ~]# runagent -m samba1 podman exec samba-dc id users
uid=1029(NS8TEST\users) gid=1029(NS8TEST\users) groups=1029(NS8TEST\users)
[root@ns8rockytest ~]# id users
id: ‘users’: no such user
1 Like

In fact I imagine, I had proceeded with group number id … answer unknown .
Thank mark

1 Like