all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo Famulari <leo@famulari.name>
To: guix-devel@gnu.org
Subject: Patching the default PATH of `su`
Date: Thu, 5 Apr 2018 12:37:12 -0400	[thread overview]
Message-ID: <20180405163712.GA24811@jasmine.lan> (raw)

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

In the man page of su(1), it says this:

------
The current environment is passed to the new shell. The value of $PATH is reset to
/bin:/usr/bin for normal users, or /sbin:/bin:/usr/sbin:/usr/bin for the superuser.
This may be changed with the ENV_PATH and ENV_SUPATH definitions in /etc/login.defs.
------

This means that `su leo` or `sudo su` give a broken environment on
GuixSD. You have to use `su --login` instead.

Should we use our own values for ENV_PATH and ENV_SUPATH so that this
works out of the box?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

             reply	other threads:[~2018-04-05 16:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-05 16:37 Leo Famulari [this message]
2018-04-06  8:01 ` Patching the default PATH of `su` Ludovic Courtès
2018-04-06 12:39   ` Leo Famulari
2018-04-09 16:17   ` [bug#31112] " Leo Famulari
2018-04-09 20:47     ` Ludovic Courtès
2018-04-13 15:52       ` bug#31112: " Leo Famulari

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180405163712.GA24811@jasmine.lan \
    --to=leo@famulari.name \
    --cc=guix-devel@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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.