Bug ID | 1191543 |
---|---|
Summary | autofs invoking mount.cifs ignores the user id |
Classification | openSUSE |
Product | openSUSE Tumbleweed |
Version | Current |
Hardware | Other |
OS | Other |
Status | NEW |
Severity | Normal |
Priority | P5 - None |
Component | Samba |
Assignee | samba-maintainers@SuSE.de |
Reporter | manfred.h@gmx.net |
QA Contact | samba-maintainers@SuSE.de |
Found By | --- |
Blocker | --- |
I'm using autofs for years for mounting my NFS and my SMB/CIFS shares. For the CIFS shares I use the following entry in /etc/auto.master: /.smb /etc/auto.smb The credentials to be used live in /etc/creds/<hostname> and contains the required entries for all users configured in /etc/samba/smb.conf When I run the /etc/auto.smb script manually, I see the following: # /etc/auto.smb melmac -fstype=cifs,uid=$UID,gid=$GID,credentials=/etc/creds/melmac \ "/tmp" "://melmac/tmp" \ "/D" "://melmac/D" \ "/Bilder" "://melmac/Bilder" \ "/eBooks" "://melmac/eBooks" \ "/BDs" "://melmac/BDs" \ "/DVDs" "://melmac/DVDs" \ "/Multimedia" "://melmac/Multimedia" \ "/Backup" "://melmac/Backup" \ "/manfred" "://melmac/manfred" When I (user "manfred", uid=1000) change into the directory /.smb/melmac/D, mount shows the following line for the auto-mounted file system: //melmac/D on /.smb/melmac/D type cifs (rw,relatime,vers=3.1.1,cache=strict,username=manfred,domain=WORKGROUP,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.17.10,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=4194304,wsize=4194304,bsize=1048576,echo_interval=60,actimeo=1) Note the "uid=0" and "gid=0" here! When I do the same on Leap 15.3, this line is shown: //melmac/D on /.smb/melmac/D type cifs (rw,relatime,vers=3.1.1,cache=strict,username=manfred,domain=WORKGROUP,uid=1000,noforceuid,gid=100,noforcegid,addr=192.168.17.10,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=4194304,wsize=4194304,bsize=1048576,echo_interval=60,actimeo=1) Notice the small but important difference? On Leap "uid=1000" and "gid=100" are used to mount the fs, which enables me to actually write to that directory. On Tumbleweed, all I see is "permission denied" when trying to write to the file system! How can I re-enable the behaviour which existed for several years now?