On Thu, May 19, 2022 at 06:31 Greg Wooledge <g...@wooledge.org> wrote: ...
> > > > I feel like you're doing "sudo su" out of some bad habit that you've > > > developed. You'd be doing yourself a favor if you retrain yourself > > > to use "sudo -s" instead. > > > > Greg, I think I need to change the paths in the sudoer file. I just tried > > the "sudo -i" and sudo -s" incantations on my script and they still don't > > have the needed path component. > > Which is... what? > > Perhaps what you should be doing instead is creating a symlink named > /usr/local/bin/raku which points to your /opt/whatever/raku program. > That's how third-party (or local) programs that don't install in > /usr/local are typically handled. Hm, I'll think about that. It's a good question for the man who maintains the third party Debian package for Raku. > I use the "/etc/sudoers.d" directory with my "username-sudoer" file under > > it. Is that file a place where I could affect the path with some kind of > > bashism? > > No idea. Try it and see? Also, I'm not sure what you mean by "bashism" > here, but good luck trying to decipher the sudoers(5) man page to see > what's allowed and what isn't. Yes, that was part of my reference to doc confusion in the original post. "bashism" is my snarky reference to my favorite shell (ugh, I used to love cshell for some dumb reason, oh yeah, it was the default shell on Sun OS and SGI Irix back in the day). Thanks for good ideas, Greg. -Tom