Hi,

[email protected] 写道:
hi, have problems using emacs in guixsd. when i run ansi-term and try to use sudo i get this error: sudo: /run/current-system/profile/bin/sudo must be owned by uid 0 and have the setuid bit set

This is correct: sudo must be setuid to work, but /run/current-system/profile/bin/sudo symlinks to the store which cannot contain setuid binaries for security reasons.

You should be running /run/setuid-programs/sudo instead. It should definitely exist, and come before /run/current-system/profile/bin in $PATH. Here's mine:

 λ echo $PATH
 /home/nckx/.local/bin:/run/setuid-programs:\
 /home/nckx/.config/guix/current/bin:/home/nckx/.guix-profile/bin:\
 /home/nckx/.guix-profile/sbin:/run/current-system/profile/bin:\
 /run/current-system/profile/sbin

 λ which -a sudo
 /run/setuid-programs/sudo
 /run/current-system/profile/bin/sudo

‘ansi-term’ appears to be a terminal library, so how are you running it?

Could it have received an incorrect $PATH somehow?

Kind regards,

T G-R

Attachment: signature.asc
Description: PGP signature

Reply via email to