XDM changes PATH? reddit / BSD ---------------------------------------------------------------------- CoolHwhipMike · 2020-05-05 18:15 Im back with another question. I noticed that when loging in to NetBSD 9 with xdm /sbin and /usr/sbin are removed from the user's PATH. Is there a specific reason for this? I've always just used startx and used the full PATH. If sbin is removed you can't use something like "mount" without using the full path which seems pointless since you need doas or sudo for most commands like that anyway Also, if there's a better place to ask NetBSD questions I' can go there unless its r/NetBSD because I'm not allowed to post there? ---------------------------------------------------------------------- jaypatelani · 2020-05-05 18:28 Hi you can ask at http://daemonforums.org/ || https://www.unitedbsd.com || NetBSD-users@netbsd.org mailing list. ---------------------------------------------------------------------- CoolHwhipMike · 2020-05-05 18:34 Thanks, I'll look into it. ---------------------------------------------------------------------- jaypatelani · 2020-05-05 18:34 I don't know why your path is being removed but you can add in .profile ---------------------------------------------------------------------- CoolHwhipMike · 2020-05-05 18:38 Yeah that's usually how I do it but thought I'd try xdm since it there. I looked around in the settings g for xdm to see where it sets the path but couldn't really find it. I probably overlooked something but it made me curious. ---------------------------------------------------------------------- PitifulView · 2020-05-05 20:28 xdm doesn't run .profile (it doesn't count as a login shell). it's pretty dumb ---------------------------------------------------------------------- masta · 2020-05-05 20:33 Yeah XDM probably inherited the PATH from whatever parent process spawned it, or not, depending if the variable was intentionally unexported. ---------------------------------------------------------------------- PitifulView · 2020-05-05 20:52 hey, why does /r/netbsd disallow submissions? ---------------------------------------------------------------------- masta · 2020-05-06 02:21 Good question. First I've heard. But your welcome here in the catch all /r/bsd ---------------------------------------------------------------------- CoolHwhipMike · 2020-05-06 09:35 Yep this is part of it. I forgot about this. Maybe I'll actually start writing things down one day. ---------------------------------------------------------------------- CoolHwhipMike · 2020-05-06 09:37 It didn't allow me to post something. Honestly it could just be that I don't know how to post things.