FS#36055 - udisks2 mounts filesystem with wrong permissions/acls
Attached to Project:
Arch Linux
Opened by Carlos Silva (r3pek) - Sunday, 07 July 2013, 00:30 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 07 July 2013, 01:30 GMT
Opened by Carlos Silva (r3pek) - Sunday, 07 July 2013, 00:30 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 07 July 2013, 01:30 GMT
|
Details
Description:
I just fresh installed Arch on my box and after setting everything up, I noticed my external usb drive get's mounted with the wrong permissions or acls. udisksctl correctly mounts the drive: $ udisksctl mount -b /dev/sdc1 ==== AUTHENTICATING FOR org.freedesktop.udisks2.filesystem-mount-other-seat === Authentication is required to mount SAMSUNG HD103SI (/dev/sdc1) Authenticating as: Carlos Silva (r3pek) Password: ==== AUTHENTICATION COMPLETE === Mounted /dev/sdc1 at /run/media/r3pek/6ef9a3f5-26fc-41eb-baa8-1f344b419725. but if I try to touch anything inside: $ touch /run/media/r3pek/6ef9a3f5-26fc-41eb-baa8-1f344b419725/temp touch: cannot touch /run/media/r3pek/6ef9a3f5-26fc-41eb-baa8-1f344b419725/temp: Permission denied and this is why: $ ls -lhd /run/media/r3pek/ drwxr-x---+ 3 root root 60 Jul 7 00:22 /run/media/r3pek/ $ getfacl /run/media/r3pek/ getfacl: Removing leading '/' from absolute path names # file: run/media/r3pek/ # owner: root # group: root user::rwx user:r3pek:r-x group::--- mask::r-x other::--- $ ls -lha /run/media/r3pek/6ef9a3f5-26fc-41eb-baa8-1f344b419725/ total 32K drwxr-xr-x 4 root root 4.0K Jul 3 17:55 . drwxr-x---+ 3 root root 60 Jul 7 00:22 .. drwx------ 2 root root 16K Jul 3 17:44 lost+found drwxr-xr-x 98 r3pek users 12K Jul 6 23:29 r3pek $ getfacl /run/media/r3pek/6ef9a3f5-26fc-41eb-baa8-1f344b419725/ getfacl: Removing leading '/' from absolute path names # file: run/media/r3pek/6ef9a3f5-26fc-41eb-baa8-1f344b419725/ # owner: root # group: root user::rwx group::r-x other::r-x I clearly don't have permission to write on the disk, but I should, since it was "me" that mounted it: # systemctl status udisks2 | tail -n 1 Jul 07 00:22:58 trinity udisksd[765]: Mounted /dev/sdc1 at /run/media/r3pek/6ef9a3f5-26fc-41eb-baa8-1f344b419725 on behalf of uid 1000 uid 1000 is 'r3pek' $ id uid=1000(r3pek) gid=100(users) groups=100(users),7(lp),10(wheel),50(games),78(kvm),90(network),91(video),92(audio),93(optical),95(storage),96(scanner),98(power),619(plugdev),1000(libvirt),1001(adbusers) Additional info: $ pacman -Qi udisks2 Name : udisks2 Version : 2.1.0-3 Description : Disk Management Service, version 2 Architecture : x86_64 URL : http://www.freedesktop.org/wiki/Software/udisks Licenses : GPL2 Groups : None Provides : None Depends On : glib2 udev polkit libatasmart eject Optional Deps : parted: partition management [installed] gptfdisk: GUID partition table support Required By : gvfs kdelibs Optional For : None Conflicts With : None Replaces : None Installed Size : 6901.00 KiB Packager : Tom Gundersen <teg@jklm.no> Build Date : Thu 30 May 2013 06:50:24 PM AZOST Install Date : Thu 04 Jul 2013 04:11:32 PM AZOST Install Reason : Installed as a dependency for another package Install Script : No Validated By : Signature Steps to reproduce: Just install a basic system with udisks2 installed and then try to mount a removable drive and change anything in it. The example were given from the command line, but it has the same problem with Thunar. |
This task depends upon
Closed by Dave Reisner (falconindy)
Sunday, 07 July 2013, 01:30 GMT
Reason for closing: Not a bug
Additional comments about closing: Nothing wrong here. permissions aren't set at mount time for ExtN filesystems.
Sunday, 07 July 2013, 01:30 GMT
Reason for closing: Not a bug
Additional comments about closing: Nothing wrong here. permissions aren't set at mount time for ExtN filesystems.
Comment by
Dave Reisner (falconindy) - Sunday,
07 July 2013, 01:30 GMT
Looks like an extN filesystem... if you want permission to write
to it, change the permissions.