unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Tobias Geerinckx-Rice <me@tobias.gr>
To: help-guix@gnu.org
Subject: Re: emacs, ansi-term, sudo
Date: Sat, 23 Nov 2019 15:49:02 +0100	[thread overview]
Message-ID: <87o8x27in5.fsf@nckx> (raw)
In-Reply-To: <LuNelnP--3-1@tuta.io>

[-- Attachment #1: Type: text/plain, Size: 1076 bytes --]

Hi,

rndd@tuta.io 写道:
> 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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  reply	other threads:[~2019-11-23 14:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-23 14:29 emacs, ansi-term, sudo rndd
2019-11-23 14:49 ` Tobias Geerinckx-Rice [this message]
2019-11-23 17:56   ` Ricardo Wurmus
2019-11-23 18:57     ` Tobias Geerinckx-Rice
2019-11-23 16:51 ` Efraim Flashner
2019-11-23 17:09   ` Tobias Geerinckx-Rice
2019-11-23 17:44     ` Efraim Flashner

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=87o8x27in5.fsf@nckx \
    --to=me@tobias.gr \
    --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).