Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to mount devices without desktop environment.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
314q8927bb4aw
n00b
n00b


Joined: 11 Jan 2017
Posts: 11

PostPosted: Sun Mar 05, 2017 11:39 am    Post subject: Unable to mount devices without desktop environment. Reply with quote

I've recently switched from an xfce setup to a bspwm one. I've been ironing out all the problems that I've been having and I've noticed that I can't mount any devices with a non-root user.
Using Spacefm I get the error message:
Code:
Error creating textual authentication agent: Error opening current controlling terminal for the process (`/dev/tty'): No such device or address (polkit-error-quark, 0)
Error mounting /dev/sdc1: GDBus.Error:org.freedesktop.UDisks2.Error.NotAuthorizedCanObtain: Not authorized to perform operation

And from a terminal I get "Only root can do that"

You've probably guessed that this is probably just a permission issue and you're probably right, but I'm not sure what groups/permissions that the user must be given access to in order to fix the problem. Could someone shed some light on this?
Back to top
View user's profile Send private message
fturco
Veteran
Veteran


Joined: 08 Dec 2010
Posts: 1181

PostPosted: Sun Mar 05, 2017 11:45 am    Post subject: Reply with quote

Perhaps there's some problem with Polkit...
Back to top
View user's profile Send private message
314q8927bb4aw
n00b
n00b


Joined: 11 Jan 2017
Posts: 11

PostPosted: Sun Mar 05, 2017 12:10 pm    Post subject: Reply with quote

Thank you :D , it was polkit. I had to give permission to the user in /etc/polkit-1/rules.d/10-udisks.rules.
Back to top
View user's profile Send private message
fturco
Veteran
Veteran


Joined: 08 Dec 2010
Posts: 1181

PostPosted: Sun Mar 05, 2017 6:48 pm    Post subject: Reply with quote

I'm glad you fixed the problem. :) Please remember to mark this thread as [SOLVED]. Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum