LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Recently Changed UDISK2 Rules (https://www.linuxquestions.org/questions/slackware-14/recently-changed-udisk2-rules-4175490940/)

enorbet 01-11-2014 10:08 AM

Recently Changed UDISK2 Rules
 
Greetings
I've noticed an annoying problem with automounts since upgrading to Slack 14. I'm confident I can fix it with specific declaration in "/etc/fstab", but then why do I even care about udisk2? The problem is that when I try to access many drives, a popup window asks for "authentication" but neither user nor root passwords are accepted.

This is what I presently have in "/etc/udev/rules.d/99-udisks2.rules"

Code:

D_FS_USAGE}=="filesystem|other|crypto", ENV{UDISKS_FILESYSTEM_SHARED}="1

Richard Cranium 01-11-2014 10:12 AM

I don't understand the point of your post.

enorbet 01-11-2014 05:57 PM

I apologize for being less than firmly direct. I thought it would be obvious that if an authentication dialogue box pops up and will not accept the only 2 passwords that exist on the box, that it won't allow me, or anyone, access, until the rules specify who can have access. AFAIK udisk2 only recently began requiring authentication and it seems absurd to me that root password isn't sufficient to authenticate by default.

So, I would prefer to change the udisk2 rules so they behave with some modicum of good sense ie: specifying who can get in and with what authentication, not a requirement that has no solution. Why even pop up a dialogue if absolutely nothing can satisfy the conditions?

Richard Cranium 01-11-2014 09:48 PM

What is the purpose of the udev rule that you posted? It is non-standard and it isn't obvious what it is doing.

enorbet 01-11-2014 11:05 PM

Greetings and thanks for responding. It is my understanding that it is Udisk2 that is responsible for defaulting to automounting non-system drives in "/media/user" and "/media/root". On this, my main PC I am the only user so I don't want any differentiation at all. I just want all to be mounted in the same place and I read that rule would do so here at http://pappp.net/?p=1290.

I know I took a chance because it was specified for udisk2 >= 2.09 and I'm using 1.98, but it was mounting in that utterly foolish manner and now it isn't. I just need to find how to set rules to properly authenticate. If I haven't found a udev rule for it, I guess I will just go back to firm declaration in "/etc/fstab" although that seems a step backward. The other possibility is trying to "upgrade" to a udisk2 version at or above 2.09.

He says on that page
Quote:

Originally Posted by pappp
No more tedious user,noauto,nofail fstab entries on all my machines, for all my frequently-used discs to prevent that behavior! Hurrah!

That sounds kinda nice :)

ReaperX7 01-12-2014 02:35 AM

Udisks2 shouldn't require any special rules or scripts. It's supposed to just auto-detect a new device, match the partition type to its library database, and mount it. In short, it's just supposed to work.

The latest version is udisks-2.1.1 by the way, however I'm uncertain if it can be used by Slackware as it requires gudev from the systemd-extracted-udev, and Slackware uses classic udev. I'm uncertain it 2.0.9 does or doesn't require this library.

enorbet 01-12-2014 09:01 PM

Greetings
Well it does just work... just badly. Unfortunately some fool programmer set defaults that create some problems and the interdependent nature of ALL of systemd stuff requires rules as the only means to edit how a device functions. Frankly I am grateful The Slackware Team has been slow to adopt much of this stuff. In a fight between convenience and solid, I'll pick solid every time.

ReaperX7 01-12-2014 11:08 PM

The good thing with udev is it can still be extracted from systemd safely along with other key components like gudev but yes the issue is getting worse. The concept of just working is getting to slowly become "if it works at all without ... It's a miracle".

enorbet 01-14-2014 05:45 PM

When KDE 4 was first released, if one declared a specific partition mount in /etc/fstab it would no longer show up in that handy bar on the left and CD/DVD would no longer properly automount. It seems as if this may have been fixed since I have declared all my ntfs-3g partitions in /etc/fstab and they still show up on the left bar now. I hope this behavior is basically global because on some boxes I have a lot of partitions and this is going to take awhile. I don't mind the work too much as long as it's fruitful.

Also I have another thread regarding the auto-refresh bug that is apparently fixed in Slackware 14.1 because it has upgraded KDE from 4.8.5 to 4.10.5. So I suppose I will do the entire system upgrade first and maybe this behavior is ixed as well. If not, I have 2 projects (at least) :)


All times are GMT -5. The time now is 08:06 PM.