jaeger changed the topic of #crux-devel to: CRUX (https://crux.nu/) development channel | Logs: https://libera.irclog.whitequark.org/crux-devel/
ivandi has quit [Quit: WeeChat 3.6]
fishe has quit [Quit: Connection closed for inactivity]
pitiIIo_ has quit [Ping timeout: 245 seconds]
pitiIIo has joined #crux-devel
<stenur> .. /profile has not yet been reverted?
<stenur> and $PATH still has root stuff at the beginning.
<SiFuh> I think the root stuff shuould stay unless you want to do a uid check in profile
<farkuhar> if I understand stenur correctly, he's saying that /bin and /usr/bin should come BEFORE /sbin and /usr/sbin (which is the reverse of the order that /etc/profile currently defines)
<farkuhar> it's not very common for binaries of the same name to appear in both locations, so in most cases stenur's preferred order would make no real difference. Perhaps for aesthetic reasons he wanted our PATH to follow more closely the way it's done in OpenBSD.
<stenur> Actually there _was_ a UID check before, SiFuh. It was a good thing.
<stenur> I thought i vaguely recall how that change came to OpenBSD, i _think_ it was a discussion on tech@ and it was said something like "today there is only one user on a box anyway", or something.
<stenur> Like one "seat" per "box". Overly humorous.
<stenur> And yes i mean, -- to me it does not matter anyway. I _set_ PATH. I have setenv ___PATH "/bin:/usr/local/bin:/usr/bin:/usr/X11/bin" and setenv ___ADMINPATH "/sbin:/usr/local/sbin:/usr/sbin", and the ~/.profile finds that in ~/.shared.environ and fiddles with it.
<stenur> It is just that if you provide something in a _global_ profile, why should that include admin paths by default for everybody? That does not make sense. Then you do not need admin paths anymore, at all.
<jaeger> I think the point is you generally don't need admin paths
<stenur> I like this logical split of the original UNIX paths. NetBSD still has /rescue even i think.
<stenur> As a normal user i have alias rfk-wl-b='\doas /usr/sbin/rfkill block wlan', and -u, but this could be a rfkill script in /usr/bin (or even /usr/local/bin), stored there by an admin, which would do the same.
<stenur> Having said that: i am no administrator, and i know nothing of administrator problems.
<stenur> I like going the long way.
<farkuhar> why should the global profile "include admin paths by default for everybody?" According to the links SiFuh shared on 30 July, Fedora and Debian answered that question by pointing to the information-gathering commands (eg., ifconfig, route, lsblk) that for non-root users "should not be placed out of their reach."
<stenur> These are the distros which use systemd? What can a normal user do with that?
<stenur> I mean hey! i have by definition no voice, but i do not follow the reasoning at all. Dynamic binaries in /bin and /sbin, heh! Aka /bin and /sbin being symlinks into /usr/*, heh! Fish fish, sounds like stargazy pie.
<stenur> A nice Sunday everybody!
<jaeger> I have no idea what you're saying with some of that