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: signature.asc
Description: PGP signature

Reply via email to