[Top][All Lists]

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

Re: emacs, ansi-term, sudo

From: Tobias Geerinckx-Rice
Subject: Re: emacs, ansi-term, sudo
Date: Sat, 23 Nov 2019 15:49:02 +0100


address@hidden 写道:
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

 λ which -a 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,


Attachment: signature.asc
Description: PGP signature

reply via email to

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