From: Mbk Kamble <mbkadsatx@gmail.com>
To: help-guix@gnu.org
Subject: Guix on WSL -- unable to run sudo or any program under /run/setuid-programs
Date: Thu, 8 Feb 2024 13:08:02 -0600 [thread overview]
Message-ID: <CAJ7XGSZQDvjMwO0kuSKainW08iQFkiopuscvVVSiBis+-ydNnw@mail.gmail.com> (raw)
Hello,
After using Guix system as my distro-of-choice on a dedicated laptop, I
wanted to keep using it as a distro under WSL on my work laptop.
So following the blog post on https://wiki.systemcrafters.net/guix/wsl/ , I
installed Guix. However, I am stumped that I cannot execute programs under
/run/setuid-programs/.
Eg. running sudo give the following error
> sh> sudo -s
> sudo: effective uid is not 0, is /run/setuid-programs/sudo on a file
> system with the 'nosuid' option set or an NFS file system without root
> privileges?
This page : setuid binaries don't work when installed in `/run` · Issue
#8716 · microsoft/WSL · GitHub
<https://github.com/microsoft/WSL/issues/8716> mentions that "WSL mounts
/run as nosuid" (and noexec too). I verified that.
> sh> mount|grep run
> none on /run type tmpfs (rw,nosuid,nodev,mode=755)
> none on /run/lock type tmpfs (rw,nosuid,nodev,noexec,noatime)
> none on /run/shm type tmpfs (rw,nosuid,nodev,noatime)
> none on /run/user type tmpfs (rw,nosuid,nodev,noexec,noatime,mode=755)
How can I solve this problem?
-Milind
reply other threads:[~2024-02-08 20:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJ7XGSZQDvjMwO0kuSKainW08iQFkiopuscvVVSiBis+-ydNnw@mail.gmail.com \
--to=mbkadsatx@gmail.com \
--cc=help-guix@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).