help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: uid 0 error


From: Carlo Zancanaro
Subject: Re: uid 0 error
Date: Tue, 20 Feb 2024 14:40:59 +1100
User-agent: Gnus/5.13 (Gnus v5.13)

Hi Mauritz,

I don't know that I can help solving your problem, but I do have one
relevant thing to add.

On Mon, Feb 19 2024, Mauritz Stenek wrote:
> Now, however, running a program with sudo ... throws this error
>
>     sudo: /run/current-system/profile/bin/sudo must be owned by
>     uid 0 and have the setuid bit set

I get this on my servers when I try to run a command directly through
ssh, but when I login I can run sudo fine. The key difference in my case
is PATH. It only works when PATH contains /run/setuid-programs/.

Can you check whether your PATH has /run/setuid-programs/? If not, can
you try running the sudo binary from there, rather than the one in the
system profile?

I haven't had a change to investigate why this is occurring for me, so I
can't give you a real solution, but hopefully this can get you
somewhere.

Carlo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]