[Pkg-samba-maint] Bug#501678: Files copied/moved to cifs filesystems get attributes changed

Chris Carr rantingman at gmail.com
Thu Oct 9 13:45:27 UTC 2008


Package: smbfs
Version: 2:3.2.3-1

Hi all,

I'm no expert on samba/cifs but something has changed recently. I've used
smbfs for mounting filesystems of other machines on my LAN for years, with
no problems once permissions are all sorted out. 

In the past year or so I've noticed dozens of files appearing on my console
in green (executable) - things like .txt files, which should never get +x. 

I've traced this to samba. Now, whenever I copy/move a file onto a mounted
smbfs filesystem, or create a new file on such a filesystem, the file
automatically gets permissions 755. 

Presumably the permissions of new files are controlled by a umask setting
somewhere - I can't see one on the manual page of mount.cifs, so maybe it's
done in the samba server config. But why would existing files have their
attributes changed when they're copied or moved onto a smbfs filesystem?
This seems to be a bug - surely samba should not mess with file attributes
unless the user explicitly tells it to do so. 

Sorry if I've missed something obvious,

Chris






More information about the Pkg-samba-maint mailing list