On 2020-06-14 15:38, Ottavio Caruso wrote:
On Fri, 12 Jun 2020 at 11:14, Johnny Billquist <bqt%update.uu.se@localhost> wrote:However, most users by default don't have /sbin and /usr/sbin in their path, so you need to add that, or else run the programs using an explicit path.How's that possible? oc@NetBSD:/home/oc$ grep sbin /etc/skel/.profile PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R7/bin:/usr/pkg/bin PATH=${PATH}:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin oc@NetBSD:/home/oc$ grep sbin /etc/skel/.cshrc set path = (~/bin /bin /sbin /usr/{bin,sbin,X11R7/bin,pkg/{,s}bin,games} \
/etc/skel/{.profile,.cshrc} are just suggested files that you can copy over to users if you want to. Did you do that?
Or rather, you should check actual relevant files instead of just random files in the file system. If we talk csh here, at login, the users own .cshrc is sucked in, followed by the one in /etc. Then .login is sucked in, followed by the one in /etc. So those are the relevant files. Check there. If /sbin in added to the path in one of those files, then it becomes more interesting to ask how come it is not in there.
(But that could of course easily be explained by someone setting the path explicitly to something that don't include these directories anyway.)
The final piece of the puzzle is /etc/login.conf, which you can use to customize these things as well, and which is shell independent.
Johnny -- Johnny Billquist || "I'm on a bus || on a psychedelic trip email: bqt%softjar.se@localhost || Reading murder books pdp is alive! || tryin' to stay hip" - B. Idol