all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Simon Streit <lists@netpanic.org>
To: Leo Famulari <leo@famulari.name>
Cc: help-guix@gnu.org
Subject: Re: mount.davfs: program is not setuid root
Date: Thu, 13 May 2021 15:25:58 +0200	[thread overview]
Message-ID: <ygutun6934p.fsf@netpanic.org> (raw)
In-Reply-To: <YH6AzLquN/hvi6na@3900XT> (Efraim Flashner's message of "Tue, 20 Apr 2021 10:20:44 +0300")

Efraim Flashner <efraim@flashner.co.il> writes:

> On Mon, Apr 19, 2021 at 08:47:08PM -0400, Leo Famulari wrote:
>> On Mon, Apr 19, 2021 at 10:30:13PM +0200, Simon Streit wrote:
>> > I just tried again, and called mount as:
>> > --8<---------------cut here---------------start------------->8---
>> > /run/setuid-programs/mount -t <URL> ~/test/
>> > --8<---------------cut here---------------end--------------->8---
>> > where URL is my remote URL share trying to mount it to local test dir,
>> > where it fails with:
>> > --8<---------------cut here---------------start------------->8---
>> > /run/current-system/profile/sbin/mount.davfs: program is not setuid root
>> > --8<---------------cut here---------------end--------------->8---
>>
>> So, '/run/setuid-programs/mount' is somehow resolving to
>> '/run/current-system/profile/sbin/mount.davfs'?
>>
>> The executables in /run/setuid-programs are not supposed to be links.
>>
>
> From the ./configure script in davfs2:
>
> I've attached a diff against guix and also a davfs.scm for building just
> the modified davfs2. Can you try building it with `guix build -f
> davfs.scm` and then use the mount.davfs from there to try mounting your
> davfs mountpoint?

Alright, I finally got your modified file into my system declaration to
test it.  Guix has a steep learning curve, and am glad to be getting
better at hacking on it every now and then. 

Now this error message doesn't appear any more.  While entering
`mount.davfs host ~/foo`, I get a:
--8<---------------cut here---------------start------------->8---
bash: /home/ss2/.guix-profile/sbin/mount.davfs: No such file or directory
--8<---------------cut here---------------end--------------->8---
and trying it with `/run/setuid-programs/mount.davfs host ~/foo`:
--8<---------------cut here---------------start------------->8---
/run/setuid-programs/mount.davfs: no entry for /home/ss2/foo found in /etc/fstab
--8<---------------cut here---------------end--------------->8---

Which has to do with the fact that this mount does not exist in
/etf/fstab.  But so far there is no way to put an URL into system
declaration.  The manual states that there can only be a file system
label, UUID or the name of a /dev node.  So I simply tested it by
manually adding a mount to /etc/fstab, and it didn't work there either.

I'm not really sure what to do now.  Shall I post a bug report?  And if,
it may well be necessary to extend the file-systems module to
accommodate webdav mount points.  I'm not sure if it is high on anyone's
agenda, or if I could make a feature request to have this implemented.

It seems to me, that it doesn't happen that often someone would need to
mount a webdav.


Cheers
Simon


  parent reply	other threads:[~2021-05-13 13:25 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-16 13:31 mount.davfs: program is not setuid root Simon Streit
2021-04-16 16:34 ` Leo Famulari
2021-04-18 13:36   ` Simon Streit
2021-04-18 13:36   ` Simon Streit
2021-04-18 23:01     ` Leo Famulari
2021-04-19 10:50       ` Simon Streit
2021-04-19 17:18         ` Leo Famulari
2021-04-21 21:46           ` Simon Streit
2021-04-19 20:30       ` Simon Streit
2021-04-20  0:47         ` Leo Famulari
2021-04-20  6:57           ` Efraim Flashner
2021-04-20  7:20           ` Efraim Flashner
2021-04-21 21:43             ` Simon Streit
2021-05-11 17:42             ` Simon Streit
2021-05-11 18:41               ` Leo Famulari
2021-05-11 19:30                 ` Simon Streit
2021-05-11 19:34                   ` Leo Famulari
2021-05-11 20:59                     ` Simon Streit
2021-05-13 13:25             ` Simon Streit [this message]
2021-04-18 20:07   ` Simon Streit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ygutun6934p.fsf@netpanic.org \
    --to=lists@netpanic.org \
    --cc=help-guix@gnu.org \
    --cc=leo@famulari.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.