I believe I'm getting the same bug. It only occurs when unix extensions are enabled on the Samba server and client. Server is Debian Lenny. client is Ubuntu Karmic. Some examples:
This works OK: $ touch x $ cp x /mnt/SOL/general/ This gives an error: $ touch x $ mv x /mnt/SOL/general/ mv: preserving permissions for `/mnt/SOL/general/x': Permission denied And sure enough the move works but the permissions are different: $ ls -l x -rw-rw-r-- 1 andrew andrew 0 2010-01-30 00:17 x $ ls -l /mnt/SOL/general/x -rwx-w---- 1 andrew andrew 0 2010-01-30 00:17 /mnt/SOL/general/x* However this works: $ chmod 664 /mnt/SOL/general/x $ ls -l /mnt/SOL/general/x -rw-rw-r-- 1 andrew andrew 0 2010-01-30 00:17 /mnt/SOL/general/x This also gives an error: $ touch x $ cp -p x /mnt/SOL/general/ cp: preserving permissions for `/mnt/SOL/general/x': Permission denied Here's my server smb.conf (cleaned up with comments and printer definitions removed) [global] workgroup = ajblan server string = %h server dns proxy = no log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 panic action = /usr/share/samba/panic-action %d security = user encrypt passwords = true passdb backend = tdbsam obey pam restrictions = yes unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . pam password change = yes load printers = yes printing = cups printcap name = cups [general] comment = General files path = /media/data/general valid users = @fullaccess force group = fullaccess create mask = 0770 directory mask = 0771 writable = yes And here's my mount line from fstab on the client: //SOL/general /mnt/SOL/general cifs credentials=/root/.smbcredentials,uid=andrew,gid=andrew,file_mode=0777,dir_mode=0777 0 0 (I'm aware that file_mode and dir_mode don't apply when unix extensions are enabled but I have them there for when they are not.) This bug is causing me a lot of hassle so if any help/workarounds can be suggested I'd be grateful. Andy -- Failure to set permissions on Samba share via CIFS https://bugs.launchpad.net/bugs/496840 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs