LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-23-2014, 04:31 PM   #1
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 176

Rep: Reputation: 28
udisks & udiskie permission problem


I use udiskie and udisks for auto-mounting devices in Fluxbox. It however stopped working on one laptop, while still works with exactly same configurations on other. Both machines run up-to-date current, only difference is one run 32 bit slackware, other 64 bit. On 64 bit slack (with multilib) it works fine, on 32 bit this error occurs:

Code:
$ udiskie-mount /dev/sr0
attempting to mount device /org/freedesktop/UDisks/devices/sr0 (iso9660:[])
failed to mount device /org/freedesktop/UDisks/devices/sr0: org.freedesktop.UDisks.Error.PermissionDenied: Not Authorized

$ udisks --mount /dev/sr0
Mount failed: Not Authorized
I set PolicyKit permission according to udiskie readme in /etc/polkit-1/localauthority/50-local.d/10-udiskie.pkla and change group to plugdev (designated group in slackware) so it look like this:
Code:
[udiskie]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks.filesystem-mount;org.freedesktop.udisks.luks-unlock;org.freedesktop.udisks.drive-eject;org.freedesktop.udisks.drive-detach
ResultAny=yes
Although my user is in plugdev group, udisks and udiskie still fails to mount any device.
 
Old 01-23-2014, 06:41 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Hi

sorry for not being a slacker

can you install udisks-glue?

Quote:
simple automount daemon with support for user-defined actions udisks-glue is a daemon that can perform user-configurable actions when a certain udisks event (such as the insertion, mount or removal of a device or storage media) is detected. It can also be configured to automatically mount devices. It listens to udisks events on the system bus and performs actions in response as specified in the configuration file.
udisks-glue is useful for automatically mounting removable devices or running arbitrary commands
I am 32 bit, don't have your polkit file but use pcmanfm and kernel polling with udisks

I assume you have checked your config file for whatever file manager you are using
a number of them, define if auto mounting is to be used or not

good luck

Last edited by aus9; 01-23-2014 at 06:44 PM.
 
Old 01-23-2014, 06:43 PM   #3
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
otherwise you might like post 9

https://bbs.archlinux.org/viewtopic....908792#p908792
 
Old 01-24-2014, 10:15 AM   #4
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 176

Original Poster
Rep: Reputation: 28
Thanks for suggestions, although I don't think they will help in this case.

Actually, problem lies in PolicyKit itself. I can't tell what went wrong and when, but permissions for this particular user are now completely broken. Now I also can't suspend/hibernate as regular user anymore.

I'll try to create new user to see what's changed (if anything) and report back.

Last edited by yenn; 01-24-2014 at 10:17 AM.
 
Old 01-24-2014, 01:27 PM   #5
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 176

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by yenn View Post
I'll try to create new user to see what's changed (if anything) and report back.
Unfortunately it didn't work even with new user. It seems to be similar problem like http://www.linuxquestions.org/questi...el-4175469935/.
I didn't tried these solutions (sudo, fine-grain tweaking with polkit configuration), because I don't think these changes should be necessary. I'm still puzzled, how it is possible that exactly same configuration sometimes works and sometimes don't.

I'm going to reinstall slack and see if there really is bug in 32 bit version or it's just some another broken package, which broke ConsoleKit (and it's friends). I know it might not be the best solution, but I was going to do clean install of Slackware anyway.
 
Old 01-24-2014, 04:16 PM   #6
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
then grab system rescue cd and take an image using fsarchiver

I have a system partition and a swap and a data.....all primary traditional bios .....no GPT/UEFI stuff

after image created burn it to a dvdrw

total data for me is around 3g

I don't put any data into home

data is a separate entry in fstab and I move all stuff out of home to there
and it has its own backup.....simple copy to dvdrw or usb stick

good luck
 
Old 01-24-2014, 04:23 PM   #7
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
back on theme

your link links to a arch post

notice they are talking about startx issues due to WM/DE and using .xinitrc

I have seen reference to this before.....

then pls look at your login manager as well in case you don't use .xinitrc

I use lightdm
 
Old 01-24-2014, 04:42 PM   #8
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 176

Original Poster
Rep: Reputation: 28
Hello again, I'm typing this from fresh installation of Slackware

Strangely enough these problems are gone and I'll probably never know what caused them in first place. So I'm marking this thread as solved.

And about reinstalling. With separate /home and all important data outside root fs (on NFS server) it was almost no-brainer. Well, almost, LUKS encrypted LVM is quite complex beast and it took me only three reboots & chrooting to get initrd and LILO config right :-)

Quote:
Originally Posted by aus9 View Post
then pls look at your login manager as well in case you don't use .xinitrc
I use SLiM, which basically launch .xinitrc, which in turn start Fluxbox within ConsoleKit session. As long as everything starts in same CK session, permissions should be ok. So far, with exception of this hiccup, everything works like a charm.

Last edited by yenn; 01-24-2014 at 04:45 PM.
 
Old 01-24-2014, 05:44 PM   #9
yenn
Member
 
Registered: Jan 2011
Location: Czech Republic
Distribution: Slackware, Gentoo, FreeBSD
Posts: 176

Original Poster
Rep: Reputation: 28
Quote:
Originally Posted by yenn View Post
I use SLiM, which basically launch .xinitrc, which in turn start Fluxbox within ConsoleKit session. As long as everything starts in same CK session, permissions should be ok. So far, with exception of this hiccup, everything works like a charm.
Once again... when i switch runlevel to 4 and logged in via SLiM, udiskie suddenly stopped working. But if I started Xorg from console, it worked fine.

So bug is actually regression in SLiM itself (I just have to find out where and write bugreport), First I upgraded SLiM to latest version (1.3.6) and things went south. I just reverted to previous "stable" version from SlackBuilds and it works again!

Well, I didn't had to reinstall whole system, but on the other hand now I got rid of many unused packages which I forgot about during last few years, so it was worth it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hal vs udev vs udisks [ITA]freeware Linux - Software 1 06-25-2013 05:55 PM
File & Folder Permission and Ownership permission error in Cloud storage. rhcekumaran Linux - Newbie 3 06-14-2013 04:41 AM
Automounting problem - udisks Skyer Linux - Newbie 0 03-11-2012 04:35 AM
udisks-ssh??? lotsofquestions Linux - Networking 1 08-20-2011 04:08 PM
Permission problem (xmms & YMessenger) zahadumy Linux - Software 3 06-04-2005 02:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration