You are not logged in.

#1 2011-11-02 21:20:37

sound
Member
Registered: 2011-11-02
Posts: 5

mount readable for non-root user with udisks-glue

Hello,

I am looking for a solution to automount my usb devices. Based on the wiki I decided to go for udisks + udisks-glue. Everything seems works quite nicely, but udisks-glue is not mounting with the users flag, which leads to a mount just read/writable for the root user. This is obviously quite inconvenient.

This is my simple udisks-glue.conf:

filter disks {
        optical = false
        partition_table = false
        usage = filesystem
}

match disks {
        automount = true
        automount_options = { rw,noatime,sync,users }
}

Mounting my usb device now fails in udisks-glue with:
"Failed to automount /dev/sdc1: Mount option users is not allowed"

Why is this option not allowed? If I do a manual mount with the same options it works without any problems at all.

Or is there any other workaround to solve this? I do not want to change my fstab, because as far as I know this just reflects to one partition - And sometime I connect an usb drive with several partitions, so all of them should be mounted. Anyways, at the moment I am running udisks-glue as root, which is not very good, but otherwise the mount would already failed because of a failed authorization. So if there would be a solution without root privileges at all I would be very glad.

Cheers,
sound

Offline

#2 2011-11-02 21:24:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: mount readable for non-root user with udisks-glue

Isn't is 'user', not 'users'?

mount -o gid=users,dmask=007,fmask=117,iocharset=utf8,noauto,flush,user



Edit: Hmm, I've just checked and 'users' seems to work too. Sorry for the noise.

Last edited by karol (2011-11-02 21:30:43)

Offline

#3 2011-11-02 21:33:39

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: mount readable for non-root user with udisks-glue

Try "user" indeed. "user" and "users" are slightly different.

Offline

#4 2011-11-02 21:45:05

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: mount readable for non-root user with udisks-glue

If your USB drives are NTFS formatted, make sure you have ntfs-3g installed.

Offline

#5 2011-11-02 21:58:40

sound
Member
Registered: 2011-11-02
Posts: 5

Re: mount readable for non-root user with udisks-glue

I also tried user before. Same result.

I can not possible image that it is in any way related to the file system (I used FAT32 and ext3 formatted devices), because as I mentioned above the manual mount works just fine.

Offline

#6 2011-11-03 13:08:50

Doomcide
Member
Registered: 2011-08-22
Posts: 221

Re: mount readable for non-root user with udisks-glue

Is console-kit set up properly?

Offline

Board footer

Powered by FluxBB