* bug#74179: %default-bash-profile still references /run/setuid-programs
@ 2024-11-02 19:04 Edouard Klein
2024-11-20 21:54 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Edouard Klein @ 2024-11-02 19:04 UTC (permalink / raw)
To: 74179
Dear Guix,
/run/setuid-programs was replaced by /run/privileged some time ago.
Some of the users on the-dam.org don't have the new location in their
PATH. I've tracked it down to %default-bash-profile still referencing
the old location (in /gnu/system/shadow.scm):
# Prepend setuid programs.
export PATH=/run/setuid-programs:$PATH
This file ends up in /etc/skel, and from there is copied on the user's
HOME when the user is created.
I've grep /run/setuid-programs in the source and found that it is still
hardcoded in a few places.
Two questions:
If I submitted a patch series addressing these issues, would somebody
review it and apply it within a few weeks ?
And the more interesting one:
How do I correct the issue for my existing users, given that even if I
correct the code and reconfigure, the .bash_profile file in their HOME
is gonna stay the same ?
Maybe I should force everybody to use guix home ?
Cheers,
Edouard.
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#74179: %default-bash-profile still references /run/setuid-programs
2024-11-02 19:04 bug#74179: %default-bash-profile still references /run/setuid-programs Edouard Klein
@ 2024-11-20 21:54 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2024-11-20 21:54 UTC (permalink / raw)
To: Edouard Klein; +Cc: Tobias Geerinckx-Rice, 74179
Hi Edouard,
(Cc: Tobias, who authors the privileged program mechanism.)
Edouard Klein <edouardklein@gmail.com> skribis:
> Some of the users on the-dam.org don't have the new location in their
> PATH. I've tracked it down to %default-bash-profile still referencing
> the old location (in /gnu/system/shadow.scm):
>
> # Prepend setuid programs.
> export PATH=/run/setuid-programs:$PATH
>
> This file ends up in /etc/skel, and from there is copied on the user's
> HOME when the user is created.
>
> I've grep /run/setuid-programs in the source and found that it is still
> hardcoded in a few places.
>
> Two questions:
> If I submitted a patch series addressing these issues, would somebody
> review it and apply it within a few weeks ?
As you know there cannot be guarantees on the timeliness of volunteer
response, but surely this would be pretty high priority (and easy) to
review/apply.
> And the more interesting one:
> How do I correct the issue for my existing users, given that even if I
> correct the code and reconfigure, the .bash_profile file in their HOME
> is gonna stay the same ?
> Maybe I should force everybody to use guix home ?
Maybe ‘.bash_profile’ should never have contained that line in the first
place.
But anyway, you could either run ‘sed’ on all the ‘.bash_profile’ files
of users (not great), or let them know, or just let go since AFAIK it
doesn’t hurt to have /run/setuid-programs in $PATH.
Thoughts?
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-11-20 21:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-02 19:04 bug#74179: %default-bash-profile still references /run/setuid-programs Edouard Klein
2024-11-20 21:54 ` Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).