You are not logged in.

#1 2012-11-11 22:39:07

Lord Bo
Member
Registered: 2012-11-11
Posts: 168

Group Management Broken ?

Hi!

I recently encountered a problem trying to mount a network drive as normal user with davfs. davfs uses the function getgrgid to access the group data base, but this function failed, returning an error (I postet that here.) I read, that a user who tries to run an application which uses getgrid needs to be in group wheel, for this function to succeed (see here). So I added the user to the wheel group and logged out and in as this user: Still no success. Then I had the idea to test to add the user to other groups. I tested storage and locate. After that the user was still not able to mount usb drives or to use updatedb. Could that be a general problem concerning the group management? I have to mention, that I use a rather new installation. Any Ideas concerning this problem are welcome.

Benjamin

Offline

#2 2012-11-12 08:52:30

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Group Management Broken ?

Moving to Newbie Corner.


If you have an active session under logind, then groups for automounting are redundant. There are a number of threads about automounting under systemd and there is more information in the wiki...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2012-11-12 15:59:45

Lord Bo
Member
Registered: 2012-11-11
Posts: 168

Re: Group Management Broken ?

Ok,

thank you for your answer. I was able to enable automount for my davfs netdrive. However there are still two things I wonder about:
1.) I had to install my username and passwort for the mount into /etc/davfs2/secrets, ~/.davfs2/secrets didn't suffice, why?
2.) For determining the problem I looked into the output of journalctl: It didn't mention, that the autheticication failed. Shouldn't davfs output such an error? (I appended an output snippet.)

Nov 12 15:42:52 mario systemd[1]: Mounting /home/ben/data/mnt/mydrive.ch...
Nov 12 15:42:52 mario mount.davfs[364]: davfs2 1.4.7
Nov 12 15:42:52 mario mount.davfs[364]: /sbin/mount.davfs http://webdav.mydrive.ch /home/ben/data/mnt/mydrive.ch -o rw,noexec,nosuid,nodev,uid=1000,gid=1000,_netdev,users
Nov 12 15:42:52 mario mount[363]: Gib bitte den Benutzernamen für den Server http://webdav.mydrive.ch an; wenn du keinen angeben willst, drücke Return.
Nov 12 15:42:52 mario mount[363]: Benutzername:
Nov 12 15:42:52 mario systemd[1]: home-ben-data-mnt-mydrive.ch.mount mount process exited, code=exited status=255
Nov 12 15:42:52 mario systemd[1]: Failed to mount /home/ben/data/mnt/mydrive.ch.
Nov 12 15:42:52 mario systemd[1]: Unit home-ben-data-mnt-mydrive.ch.mount entered failed state

Offline

Board footer

Powered by FluxBB