[Samba] file_mode and dir_mode options ignored

Christian Roche christian.roche at shabakkat.com
Tue Oct 18 05:59:21 MDT 2011


Hi there. I'm using samba3x-3.5.4-0.83.el5_7.2 on CentOS release 5.7 x86_64 to mount a Terastation filesystem. The "file_mode" and "dir_mode" options to mount.cifs seem to be ignored; I systematically get a "drwxrwxrwx" permission, no matter what values I provide for these options:

# mount.cifs //terastation/Backup /bkp/BackupPC/ -o credentials=/etc/samba/terastation.cred, uid=backuppc,gid=backuppc,file_mode=0640,dir_mode=0750

# ls -la /bkp
drwxr-x---  3 root     backuppc 4096 Oct 18 11:23 .
drwxr-xr-x 24 root     root     4096 Oct 17 12:30 ..
drwxrwxrwx  7 backuppc backuppc    0 Oct  5 17:59 BackupPC

What gives?

Thanks,
Chris




More information about the samba mailing list