Ubuntu CIFS mount confusion with file and directory rights

Hi@all,

I have created a samba clearance at USC as follows:

grafik
grafik
grafik
grafik

The goal is that all files and directories created by the client have the following rights:

Owner: Administrato
Group: Domain Users
Files: 660
Directories: 770

On the Ubuntu client I have included the share:

//srv01.gehr.local/ISOs /data01/ISOs cifs _netdev,users,sec=krb5,noperm,noauto,file_mode=0660,dir_mode=0770     0       0

If I create a file and a directory from the client, the rights (on the client) are like this:

s.gehr@lt002:~$ ls -l /data01/ISOs/
insgesamt 1024
-rw-rw---- 1 s.gehr domain users 0 Mai 12 08:09 test7.txt
drwxrwx--- 2 s.gehr domain users 0 Mai 12 08:18 Test8

and on the server:

root@srv01:/data01# ls -l ISOs/
insgesamt 8
-rwxrwxr--+ 1 Administrator Domain Users 0 Mai 12 08:09 test7.txt
drwxrwxr--+ 2 Administrator Domain Users 6 Mai 12 08:18 Test8

It is ok that the files/directories are displayed on the client with the “normal” user as owner. The main thing on the server is the owner “Administrator” and the group “Domain Users”.

Why does he not write the files/directories with 660/770?

with best
sven

Mastodon