From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Geerinckx-Rice Subject: Re: emacs, ansi-term, sudo Date: Sat, 23 Nov 2019 15:49:02 +0100 Message-ID: <87o8x27in5.fsf@nckx> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:49529) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iYWin-00042b-30 for help-guix@gnu.org; Sat, 23 Nov 2019 09:49:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iYWik-0002mJ-N0 for help-guix@gnu.org; Sat, 23 Nov 2019 09:49:12 -0500 Received: from tobias.gr ([2001:470:7405::1]:59288) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iYWii-0002hZ-Pu for help-guix@gnu.org; Sat, 23 Nov 2019 09:49:09 -0500 Received: by tobias.gr (OpenSMTPD) with ESMTP id b8b70737 for ; Sat, 23 Nov 2019 14:49:03 +0000 (UTC) Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id f37537af (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Sat, 23 Nov 2019 14:49:02 +0000 (UTC) In-reply-to: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi, rndd@tuta.io =E5=86=99=E9=81=93=EF=BC=9A > hi, have problems using emacs in guixsd. when i run ansi-term=20 > and try to use sudo i get this error: > sudo: /run/current-system/profile/bin/sudo must be owned by=20 > uid 0 and have the setuid bit set This is correct: sudo must be setuid to work, but=20 /run/current-system/profile/bin/sudo symlinks to the store which=20 cannot contain setuid binaries for security reasons. You should be running /run/setuid-programs/sudo instead. It=20 should definitely exist, and come before=20 /run/current-system/profile/bin in $PATH. Here's mine: =CE=BB 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 =CE=BB which -a sudo /run/setuid-programs/sudo /run/current-system/profile/bin/sudo =E2=80=98ansi-term=E2=80=99 appears to be a terminal library, so how are yo= u=20 running it? Could it have received an incorrect $PATH somehow? Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfo+u0AlEeO9y5k0W2Imw8BjFSTwFAl3ZRt4ACgkQ2Imw8BjF STxX8w/9Fx2EVo7/3pX6wPht2l1zJPqrU437YCklNo1CSop8yJKD4u9irhAvmRaN tBgGDFwoTbc6Yinr6YHEGKNCg8vzvHwr1L2tWTD1un7retzwycc+dMsySgLqYZaR K1JKkDo80utfCz3KPOyi0gWfCHiLPflVulCVcOG4HNODcD/HV4MnkWLdPDnthmSB wFigGS6JpNOu68rPzbvokP7SWPhuqRFajK/5lAcz5RXjdnht1TDHwFu6+kOL3roj vtCqmAwghTyKh43tDUKLdIjzOZULtgAVehSxxWKTuZeE3ut3mi/Mq9SErKdvFFiU bj1SDp5umUAU4uYF9lngE5MIu7XzfveUIOnkqaQOx9s3uK9JY2l+WaSjlyC2IUAJ pMvWL0qnXui9Hg6MawSeEmByoVJvUxb3z/9Ec9DZ/7kZ6Bvvx2OgL5wH5NNtytd2 jYgTPyaA+5LGfx7O5uUyaSJ3Vc9Jqd2LPZNl84NHeMfRo17bMaoIFRaSBTstgdQh cHIf5pp8JFAFN9IPM/VRDtpi+p781Gp5iYBwdzOVb5604PhM7sFamc3MOCnl0nBP NVHMEBFfV8YJu2ICVXR0R45EOopfha1uu4g/58xLyBnlN0PsATwDskciPOnZzTAU lV8Shspxo6fKYoRvDVAlkY8vizNldpwkS5yCe1YMF3NEQt+U/mA= =/xSn -----END PGP SIGNATURE----- --=-=-=--