So I did have a look at the source of udisks2 (this is in 'udiskslinuxfilesystem.c') and the reason for why this happens as it does is obvious (the reason WHY the code does it like this is less obvious to me though...).
If '/media/$USER' does not exist, Udisks 2 checks if '/media' exists and if not creates it, then it creates '/media/$USER' and if that succeeds, it tries to set the ACL. If setting the ACL fails, you get the error from this bug report, and the directory is removed again. Now, if '/media/$USER' does exist, Udisks does not check or try to set the ACL, so then you get no error. My '/' and thus also '/media' are not mounted with ACL support enabled, so that's why it fails to set the ACL (and why the directory it created gets removed again). BTW: I'm not sure why the ACL is needed, as everything seems to work without it. And I understand even less why they don't check if the ACLs are there in case the directory already exists? (Do they assume '/media' is always a tmpfs? What if there is a user named 'cdrom' or the like?) -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-settings-daemon in Ubuntu. https://bugs.launchpad.net/bugs/1048059 Title: Adding ACLs to /media/$user does not work Status in “gnome-settings-daemon” package in Ubuntu: Invalid Status in “linux” package in Ubuntu: Invalid Status in “udisks2” package in Ubuntu: Confirmed Bug description: Hewlett-Packard HP Envy 14 1095la https://wiki.ubuntu.com/druellan/hpenvy1095la I get an error message -Adding read ACL for uid 999 to `/media/ubuntu' failed: Operation not supported- every time I try to insert a mountable media (CD/DVD/SD card/Pendrive/USB drive). What I expect: Media mounted and visible on Nautilus What I get: An error message, sometimes twice. Note: I'm using a live USB created with UNETBOOTIN, using 700mb of session space. ProblemType: Bug DistroRelease: Ubuntu 12.10 Package: linux-image-3.5.0-13-generic 3.5.0-13.14 ProcVersionSignature: Ubuntu 3.5.0-13.14-generic 3.5.3 Uname: Linux 3.5.0-13-generic i686 AcpiTables: Error: command ['pkexec', '/usr/share/apport/dump_acpi_tables.py'] failed with exit code 127: Error executing /usr/share/apport/dump_acpi_tables.py: Permission denied ApportVersion: 2.5.1-0ubuntu4 Architecture: i386 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC1: ubuntu 4457 F.... pulseaudio /dev/snd/controlC0: ubuntu 4457 F.... pulseaudio CasperVersion: 1.321 CheckboxCommand: removable_storage_watcher insert usb CheckboxTest: usb/insert Date: Sat Sep 8 23:54:40 2012 LiveMediaBuild: Ubuntu 12.10 "Quantal Quetzal" - Alpha i386 (20120905.2) MachineType: Hewlett-Packard HP ENVY 14 Notebook PC ProcEnviron: SHELL=/bin/bash PATH=(custom, no user) LANG=en_US.UTF-8 ProcFB: 0 radeondrmfb 1 inteldrmfb ProcKernelCmdLine: initrd=/ubninit file=/cdrom/preseed/username.seed boot=casper quiet splash -- persistent BOOT_IMAGE=/ubnkern RelatedPackageVersions: linux-restricted-modules-3.5.0-13-generic N/A linux-backports-modules-3.5.0-13-generic N/A linux-firmware 1.91 SourcePackage: linux UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 12/01/2011 dmi.bios.vendor: Hewlett-Packard dmi.bios.version: F.26 dmi.board.asset.tag: Base Board Asset Tag dmi.board.name: 1436 dmi.board.vendor: Hewlett-Packard dmi.board.version: 59.24 dmi.chassis.asset.tag: CNU0250TQZ dmi.chassis.type: 10 dmi.chassis.vendor: Hewlett-Packard dmi.chassis.version: Chassis Version dmi.modalias: dmi:bvnHewlett-Packard:bvrF.26:bd12/01/2011:svnHewlett-Packard:pnHPENVY14NotebookPC:pvr0492100000241910000620000:rvnHewlett-Packard:rn1436:rvr59.24:cvnHewlett-Packard:ct10:cvrChassisVersion: dmi.product.name: HP ENVY 14 Notebook PC dmi.product.version: 0492100000241910000620000 dmi.sys.vendor: Hewlett-Packard To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1048059/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp