CIFS mounted drive setting
//172.16.30.32/images /images cifs username=blah,password=blah,domain=abc123.net 0 0This was resolved with the tip at: CIFS mounted drive setting "stick-bit" on all files, cannot change permissions or modify files
I had to change /etc/fstab and add the file_mode=0666,dir_mode=0777 mount options. I can also force the UID and GID of the file owners. I'm just wondering why this changed between CentOS/Red Hat versions.
//sharesrv/dir1/dir2/dir3/ /mnt_dir cifs credentials=/etc/samba/.credential2,dir_mode=0777,file_mode=0777,noserverino 0 0
==================
\\192.168.1.19\owncloud-Data /mnt/win cifs user, dir_mode=0770, file_mode=0777, uid=48, gid=48, rw, suid, username=win-share, password=(-Pwd-) 0 0
沒有留言:
張貼留言