Comment 8 for bug 1313874

Revision history for this message
In , Carlos Silva (r3pek) wrote :

I'm having this exact same problem but with an ext4 partitioned disk. Ext4 partitions are just used on internal disks, they can be used on external ones too. But when this happens, this is the mounts I get:
/dev/sdc1 on /run/media/r3pek/6ef9a3f5-26fc-41eb-baa8-1f344b419725 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
/dev/sdd1 on /run/media/r3pek/7E11-ECF4 type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,

sdc is an external ext4 formated 1TB HD
sdd is a 1GB pen drive

both were user-mounted via udisks2 but it happens that the user can't create anything under sdc1's mount point, but it can on sdd1's. And this is why:
$ ls -lh /run/media/r3pek/
total 8.0K
drwxr-xr-x 4 root root 4.0K Jul 3 17:55 6ef9a3f5-26fc-41eb-baa8-1f344b419725
drwx------ 7 r3pek users 4.0K Dec 31 1969 7E11-ECF4

Permissions should be enforced when creating the mountpoint, so that the owner of that directory is the user who requested the mount. Of course this should only be done for removable harddrives to prevent the user to mount the local filesystem and change anything in it.