Before I begin I should note that what I'm asking for was working perfectly with the "vers=1.0" flag added to mount.cifs. But after an OS upgrade on the server, which upgraded samba to
Version 4.13.17-Ubuntu, this is apparently no longer supported.
Also note that there is NO Windows involved in this - I am only dealing with linux user, group and permission information.
I have an Ubuntu 20.04 server running smbd and sharing a /data volume, and an Ubuntu 20.04 client mounting that share with mount.cifs. On the client,
ls -l shows everything owned by root/root:
# mount.cifs //server/data /data -o username=username,password=password # ls -l /data total 0 drwxr-xr-x 2 root root 0 Mar 29 14:07 directory-a drwxr-xr-x 2 root root 0 Feb 13 16:43 directory-b drwxr-xr-x 2 root root 0 May 17 2012 etc drwxr-xr-x 2 root root 0 Apr 21 2014 lost+found drwxr-xr-x 2 root root 0 Feb 13 16:43 shared
What I want is to get the client side to see the same users, groups and permissions that are on the server, for example:
server# ls -l /data total 0 drwxr-xr-x 2 fred fred 4096 Mar 29 14:07 directory-a drwxr-xr-x 2 barney barney 4096 Feb 13 16:43 directory-b drwxr-xr-x 2 wilma wilma 4096 May 17 2012 etc drwx------ 2 root root 16384 Apr 21 2014 lost+found drwxrwxr-x 2 fred users 4096 Feb 13 16:43 shared
All user and group accounts exist and have identical UIDs and GUIs on both systems (as I said above, this all worked fine before). Here is the old fstab entry that was used on the client before the server upgrade:
//server/data /data cifs _netdev,username=username,password=password,noexec,noacl,vers=1.0 0 0
This now gives an error:
# mount /data mount error(95): Operation not supported Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
and removing the "vers=1.0" flag fixes this error but has the result seen above (loss of all user/group/perm info).
smb.conf on the server contains:
[global] workgroup = WORKGROUP server string = Server log file = /var/log/samba/log.%m max log size = 1000 logging = file panic action = /usr/share/samba/panic-action %d server role = standalone server passdb backend = smbpasswd obey pam restrictions = no unix password sync = no pam password change = no map to guest = Never # defaults for shares guest ok = no create mask = 0775 directory mask = 0775 case sensitive = yes map archive = no [data] comment = Data path = /data writeable = no browseable = yes write list = fred
Is there any way to get the old vers=1.0 behavoir with the newer version of Samba? Thanks!