35
submitted 4 days ago by cm0002@toast.ooo to c/linux@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] exu@feditown.com 1 points 3 days ago

/etc/profile also needs root to edit. I agree that there should be a config file in a standard location, my issue is that using $(your local shell config) is barely a standard.
For this purpose PAM's /etc/environment works great in the global context, but there's no PAM equivalent for each user.
Systemd has global and per user environment stuff, but last I checked this only worked for systemd services

this post was submitted on 01 Apr 2026
35 points (92.7% liked)

Linux

13143 readers
1260 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS