I'm working on a system recently migrated to CentOS 6 from CentOS 4.9. There is a CIFS mount from a Windows 2008 server that existed on the old system. The raw mountpoint has 777 directory permissions.
[root@Bootylicious ~]# ls -ld /images/ drwxrwxrwx 2 root root 4096 Jul 23 22:49 /images/
When the mount is active the permissions are:
[root@Bootylicious ~]# ls -ld /images/ drwxr-xr-x 1 root root 327680 Aug 16 08:45 /images/
Users other than root cannot write to the share or create files. Looking at the old server, the permissions on files and subdirectories within the same share have the setuid bit. This is not present on the new system. The
/etc/fstab looks like:
//172.16.30.32/images /images cifs username=blah,password=blah,domain=abc123.net 0 0
What changes occurred between version 4/5 and 6 of CentOS to impact this? This is clearly related to setuid, but I'm not sure what the cleanest fix is.