LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   NuTyX (https://www.linuxquestions.org/questions/nutyx-125/)
-   -   no auto mount not authorized (https://www.linuxquestions.org/questions/nutyx-125/no-auto-mount-not-authorized-4175622628/)

BW-userx 01-29-2018 10:46 AM

no auto mount not authorized
 
I added polkik rules and still no automount....

Code:

#/etc/polkit-1/localauthority/50-local.d/automount.pkla
[Allow Automount]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.filesystem-mount*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Allow Eject]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.eject-media*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Allow Mounting of fstab]
Identity=unix-group:plugdev
Action=org.freedesktop.udisks2.filesystem-fstab*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

then looked for plugdev group, was not there, so i added it, cannot find any real information on what UID it should have so it has 1001, cannot find anything on plugdev other than what it is used for which is automount access to drives.
Code:

users:x:999:userx
userx:x:1000:
plugdev:x:1001:userx

so I have no hot plug access to outside drives, without manually mounting them?

ferrari 01-30-2018 04:20 AM

Does NuTyX even have an ‘automounting’ mechanism? Polkit is used to manage privileges, but udisks2 and udev are used to help (along with the desktop environment) with dynamic mounting of removable media. There are various helpers available depending on the environment being used ...

https://wiki.archlinux.org/index.php...#Mount_helpers

BW-userx 01-30-2018 08:02 AM

exactly .. looks like it still needs a little more work... the drives show up in the filemanager, but are not being allowed to be mounted when clicked on. kind of like Slackware when in my case I have more than one distro installed, so the OS side of the linux system shows up in the file manager but if I click on it I get a pop up log in as root in order to access that "drive"/partition.

In here I get a 'you can't touch that" ..... its hammer time. :)

I'd have to dig in and look around. I was just looking around wanting to check out what other independent distro are out there. Just to see what they are like. Their really is only a hand full the rest are knock off's. I'm definitely forming an option about this one though.

in here you cannot just install stuff, you cannot just build stuff, you have to jump through hoops to getter done.

Code:

userx [ ~ ]$ whereis udisks2
udisks2: /etc/udisks2 /usr/libexec/udisks2

so it looks to be just config files need fixing. yet if I go through all of what needs to be done, to get it to work, it In my option is all a waste as soon as I re install for whatever reason, it would need to be or should be added to the install as a permanent fix. SO auto mount is just there after installing this OS.

https://www.wikihow.com/Build-Your-O...x-Distribution
wow...
and
Just found this ..
http://www.linuxfromscratch.org/lfs/...m=auto,-15,223

tnut 01-31-2018 04:07 AM

I can not help you, too much information for one post for me. Moreover, I have big diffulties to understand your writing english. Be aware, it's not my native language.

All I can say, automount perfectly under:

- lxde
- mate
- kde5

not tested on gnome and on lxqt

not working, no idea why on xfce4

BW-userx 01-31-2018 10:00 AM

Quote:

Originally Posted by tnut (Post 5813733)
I can not help you, too much information for one post for me. Moreover, I have big diffulties to understand your writing english. Be aware, it's not my native language.

All I can say, automount perfectly under:

- lxde
- mate
- kde5

not tested on gnome and on lxqt

not working, no idea why on xfce4


We're good, it does not work still under WindowMaker, but that I will not impose upon you to help me fix. I am setting that aside or the moment, and I am currently in the process of reading Linux From Scratch 8.1 seeings how your OS is based off of LFS.

So I think not only is this an internting read, but your System should conform more to how they are shwoing you how to do things with Linux, so it hopefully will give me a better insight to how to do things in your Sytem outside of what you've done with it as well.

Just to help you a bit myself, From Goolge translator.

swedish
Vi är bra, det fungerar inte fortfarande under WindowMaker, men det kommer jag inte att ålägga dig att hjälpa mig att fixa. Jag håller på att lägga åt sidan eller för tillfället, och jag håller för närvarande på att läsa Linux från scratch 8.1 och ser hur ditt operativsystem är baserat på LFS.

Så jag tror inte bara det här är en internting, men ditt system borde överensstämma mer med hur de skaffar dig hur man gör saker med Linux, så det kommer förhoppningsvis att ge mig en bättre inblick i hur man gör saker i ditt Sytem utanför vad du har gjort med det också.

French

Nous sommes bons, įa ne marche pas encore sous WindowMaker, mais je ne vais pas vous imposer de m'aider ā réparer. Je mets cela de côté ou le moment présent, et je suis en train de lire Linux From Scratch 8.1 sur la faįon dont votre systčme d'exploitation est basé sur LFS.

Donc, je pense que non seulement c'est une lecture interne, mais votre systčme devrait se conformer davantage ā la faįon dont ils vous montrent comment faire des choses avec Linux, donc j'espčre qu'il me donnera un meilleur aperįu de la faįon de faire des choses dans votre systčme. vous l'avez fait aussi.

ferrari 01-31-2018 07:38 PM

Which version of polkit is in use?
Code:

pkcon --version
As far as I understand PKLA files have long been deprecated (since version 0.106), and rules files (using javascript) are used instead. Although I did read somewhere that Debian and derivatives provide 'polkit-pkla-compat' to keep some kind of compatibility with these old config files.

BW-userx 02-01-2018 09:04 AM

Quote:

Originally Posted by ferrari (Post 5814027)
Which version of polkit is in use?
Code:

pkcon --version
As far as I understand PKLA files have long been deprecated (since version 0.106), and rules files (using javascript) are used instead. Although I did read somewhere that Debian and derivatives provide 'polkit-pkla-compat' to keep some kind of compatibility with these old config files.

that well might be, as that file is years old, a just in case keeper, as I wrote it for debain, and seen it worked with others that had this issue,
Code:

userx [ ~ ]$ pkcon --version    [10:01 x86_64 4.14.13-NuTyX-lts userx@(nutyx)]
bash: pkcon: command not found

seems I need to look into that as well...

BW-userx 02-01-2018 09:12 AM

got it, found it in the whats installed on the system,
Code:

polkit 0.113+git.....
Polkit-0.113+git_2919920+js38 - Linux From Scratch!

https://linux.die.net/man/8/pklocalauthority
https://www.freedesktop.org/software...thority.8.html
this is speaks of XML in rules.d
https://www.freedesktop.org/software.../polkit.8.html

I hate XML .. anyways .....

BW-userx 02-01-2018 10:12 AM

for d bus to get auto mount in WindowMaker, that is currently not working still, That is what I put in my autostart's in WMaker to get same(automount).
Code:


# Start DBUS session bus:
 if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
    eval `dbus-launch --sh-syntax --exit-with-session`
    export DBUS_SESSION_BUS_ADDRESS
  fi

----------
userx [ ~ ]$ echo $DBUS_SESSION_B
unix:abstract=/tmp/dbus-ix5FdGfeda,guid=58f60053484bc5c99139f2fe5a7338ac

so I got something. This system has no udev group, and I do not know the proper way to set that up, other than just creating a group called udev -- but does it hot have to be attached to something other than having a user attached to it on the one end?


it has something called 'eudev' 'libgudev' installed, then it shows 'udevil' : moiunt and unmount without password. Installed that without a logout or reboot (Yet, because everything I got open closes and I got a start over again), nothing. It still gave me 'not authorized to perform operation', post and reboot. then ....

BW-userx 02-01-2018 10:43 AM

In XFCE4 it is asking for root password to get into a mounted hdd via fstab, and usb plugin ... do be do be do ...
I do not remember it doing this with my mounts in fstab as this again is just one more fresh install. :D

FungalNet 10-21-2018 11:22 AM

Desktop differences
 
Different desktops have different polkit peculiarities.

I don't use it and don't like automounting but out of curiosity I 've seen this available on the repositories. I am running Nutyx 10.3 kernel 4.18.16

Code:

(gui) gvfs 1.36.2 Userspace virtual filesystem implemented as a pluggable module for gio
(cli-extra) afuse 0.4.1 An automounter implemented with FUSE.
(cli-extra) udevil 0.4.4 Mount and unmount without password
(gui) udisks 1.0.5 Disk Management Service
(cli) udisks2 2.7.6 Daemon, tools and libraries to access and manipulate disks and storage devices.

Some of the polkits are included in the session pkg (I believe), lxpolkit in lxsession, xfce4-session .. some like gnome and qt are separate (mate, lxqt). Just search session and search polkit.
Those regulate whether you can mount volumes without privileges or not.

On opebox I have no additional desktop polkit, I mount all my volumes through fstab and they are all accessible.
For a cd or usb I do it manually when necessary.


All times are GMT -5. The time now is 01:36 AM.