Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
alexkOffline
15 Post subject: How to allow user write-access to mounted filesystems (Solv)  PostPosted: 08.12.2013, 00:12



Joined: 2010-10-01
Posts: 192

Status: Offline
My user can mount disk partitions in Dolphin, but only read them, not write to them, which isn't of much use to me. I have tried changing mount authorizations in /usr/share/polkit-1/actions/org.freedesktop.udisks2.policy but no luck so far, though the settings have an effect (e.g. I no longer need root privileges to mount my drive partitions). Anyone know how to allow a regular user to mount a disk partition with write access in Dolphin?


Last edited by alexk on 08.12.2013, 18:06; edited 1 time in total
 
 View user's profile Send private message Yahoo Messenger  
Reply with quote Back to top
slhOffline
Post subject: RE: How to allow user write-access to mounted filesystems?  PostPosted: 08.12.2013, 00:17



Joined: 2010-08-25
Posts: 761

Status: Offline
I depends…

If you're talking about a UN*X filesystem, chown/ chmod (of the mounted mountpoint) are the way to go.
If you're talking about foreign filesystems (vfat, ntfs) you need to adapt the mount options (uid/ gid) accordingly.

That said, policykit should allow you access to removable drives already - fixed drives need according fstab entries.
 
 View user's profile Send private message  
Reply with quote Back to top
alexkOffline
Post subject: RE: How to allow user write-access to mounted filesystems?  PostPosted: 08.12.2013, 04:36



Joined: 2010-10-01
Posts: 192

Status: Offline
I'm only trying to mount ext4 partitions of my primary hard disk. chown/chmod works, but I have to issue the commands as root every time I mount a partition, whether in Dolphin or on the command line. Is there a way around doing that? With the default policykit configuration, I have to give the root password to mount the partition in Dolphin (even with user or users option in fstab) unless my user has sudo privileges, in which case I have to give the user password, but then I still can't write to the partition, which is weird after authenticating.
 
 View user's profile Send private message Yahoo Messenger  
Reply with quote Back to top
hubiOffline
Post subject: RE: How to allow user write-access to mounted filesystems?  PostPosted: 08.12.2013, 12:55
Moderator


Joined: 2010-09-11
Posts: 228
Location: Vienna (AT)
Status: Offline
Does it work when "defaults" is the only option in /etc/fstab

_________________
Tilos Rádió Budapest
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
alexkOffline
Post subject: Re: RE: How to allow user write-access to mounted filesystem  PostPosted: 08.12.2013, 18:04



Joined: 2010-10-01
Posts: 192

Status: Offline
      slh wrote:
If you're talking about a UN*X filesystem, chown/ chmod (of the mounted mountpoint) are the way to go.

My bad, this was the solution. I hadn't done a chown/chmod on the mounted partition, only on the mountpoint.

I found out the user/users fstab options are overruled by org.freedesktop.udisks2.policy with udisks2, when not using mount commands directly, e.g. using dolphin or udisksctl.
 
 View user's profile Send private message Yahoo Messenger  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio