Failure to set permissions on Samba share via CIFS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
This bug is a clone of the automatically closed bug 496840. Please see that bug for attachments, discussion, and comments.
Binary package hint: samba
I'm trying to use a samba share via CIFS and am encountering problems when trying to copy or move files onto the share. If I create a file directly on the share it works as expected (using my umask for permissions) but copying or moving result in errors. To reproduce:
root@boris:/mnt# mount -t cifs //arctic/holding /mnt/testo -o credentials=
root@boris:/mnt# mkdir ~/z
root@boris:/mnt# mv ~/z testo/
mv: failed to preserve ownership for `testo/z': Permission denied
mv: preserving permissions for `testo/z': Permission denied
root@boris:/mnt# ls -ld testo/z
drwx--S--- 2 clouserw root 0 2009-12-14 21:38 testo/z
root@boris:/mnt# umask
0022
This looks _a lot_ like (and might be a duplicate/dependent on) debian bug 532153 ("cifs reports EACCES instead of EOPNOTSUPP for acls" http://
Neither my server or client have ACLs on their filesystem. One maybe relevent note is that mounting the same share from OS X and moving files onto it works as expected with permissions being preserved. OS X has a concept of ACLs on by default.
I'm attaching an strace.
ProblemType: Bug
Architecture: i386
Date: Mon Dec 14 21:44:52 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelMo
Package: smbfs 2:3.4.0-3ubuntu5.1
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: samba
Uname: Linux 2.6.31-14-generic i686
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: i386
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/pcmC0D0p: clouserw 8056 F...m pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
Card hw:0 'Intel'/'HDA Intel at 0xf7ef8000 irq 76'
Mixer name : 'Realtek ALC889'
Components : 'HDA:10ec0889,
Controls : 36
Simple ctrls : 21
DistroRelease: Ubuntu 11.04
HibernationDevice: RESUME=
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
IwConfig:
lo no wireless extensions.
eth0 no wireless extensions.
tun0 no wireless extensions.
MachineType: System manufacturer System Product Name
NonfreeKernelMo
Package: linux (not installed)
ProcEnviron:
LANGUAGE=en_US:en
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.52
RfKill:
Tags: natty
Uname: Linux 2.6.38-
UpgradeStatus: Upgraded to natty on 2011-05-01 (86 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 03/23/2010
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 0108
dmi.board.
dmi.board.name: P6X58D-E
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev 1.xx
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: System Product Name
dmi.product.
dmi.sys.vendor: System manufacturer
This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:
apport-collect 816663
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.