You are not logged in.

#1 2015-04-21 18:01:59

Aton
Member
Registered: 2013-04-02
Posts: 70

[SOLVED] Get write permissions with udisksctl

I'm trying to mount a USB storage device as a normal user via

udisksctl mount --block-device /dev/sdb1

After that I can read its contents under /run/media/me/uuid/
but I am unable to write to it.

How do I gain write access (without sudo)?

Additional information:
* I'm not using a desktop environment (xmonad)
* I don't want the drive to automount

Last edited by Aton (2015-04-23 07:06:09)

Offline

#2 2015-04-21 18:19:57

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

Re: [SOLVED] Get write permissions with udisksctl

What filesystem does it use?

Offline

#3 2015-04-21 18:29:57

Aton
Member
Registered: 2013-04-02
Posts: 70

Re: [SOLVED] Get write permissions with udisksctl

lucke wrote:

What filesystem does it use?

ext4

Offline

#4 2015-04-21 18:50:43

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

Re: [SOLVED] Get write permissions with udisksctl

Try mounting it e.g. under /media or /mnt, not under /run/media
Post the output of 'mount -t ext4' with the drive mounted.

Offline

#5 2015-04-21 20:16:42

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

Re: [SOLVED] Get write permissions with udisksctl

If it's ext4, then whatever permissions you give to files and directories on it should matter.

Offline

#6 2015-04-21 20:50:33

Aton
Member
Registered: 2013-04-02
Posts: 70

Re: [SOLVED] Get write permissions with udisksctl

lucke wrote:

If it's ext4, then whatever permissions you give to files and directories on it should matter.

Thanks for the hint!
In /run/media/me/

chown me uuid

apparently solved the problem.

I left the group ownership at root, any objections to that?
It's primarily going to be used for backups.

Offline

#7 2015-04-21 20:52:36

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

Re: [SOLVED] Get write permissions with udisksctl

I see no problem in leaving the group ownership at root.

Offline

Board footer

Powered by FluxBB