GNOME Bugzilla – Bug 751067
automount of volume sets wrong permissions, can't open any files
Last modified: 2017-02-23 08:21:57 UTC
Summary: System is dual boot Fedora 22 (gnome-shell 3.16.2) and OS X. There is an HFS+ (not journaled) volume that is shared between them. Nautilus automounts this volume, but somehow is telling udisks2 the wrong thing because the permissions are set such that I can't open any files with any applications, and it can't be fixed via the GUI. So I have to restort to the CLI to fix this manually. I don't actually know if the issue is with Nautilus or udisks2 or something else; and I don't know if the volume format being hFS+ is relevant either. # journalctl Jun 15 21:18:15 f22m.localdomain udisksd[1272]: Mounted /dev/sda5 at /run/media/chris/temphfs on behalf of uid 1000 # mount /dev/sda5 on /run/media/chris/temphfs type hfsplus (rw,nosuid,nodev,relatime,umask=22,uid=0,gid=0,nls=utf8,uhelper=udisks2) [chris@f22m temphfs]$ ls -lhd /run/media/chris/temphfs/ drwxr-xr-x. 1 root root 9 Jun 15 20:12 /run/media/chris/temphfs/ [chris@f22m temphfs]$ getfacl /run/media/chris/temphfs/ getfacl: Removing leading '/' from absolute path names # file: run/media/chris/temphfs/ # owner: root # group: root user::rwx group::r-x other::r-x
The bug here is that udisks2 doesn't use uid= or gid= with HFS+ volumes. It does do this for FAT, and equivalent for NTFS. I can't find an equivalent for ext4, XFS, or Btrfs so I guess we're just somehow stuck not even being able to read files for those file systems? Seems weird.
Still a problem in Fedora 24 with GNOME 3.20.x.
https://github.com/storaged-project/udisks/issues/211
Still a problem with Fedora 25, GNOME 3.22.3.
Looks like udisk2 problem yes. Closing as NOTGNOME for now.