On Tue, May 24, 2022 at 03:16:46PM -0400, Greg Wooledge wrote: > On Tue, May 24, 2022 at 09:07:46PM +0200, Siard wrote: > > I accomplished the same by creating /usr/local/bin/su containing these > > lines: > > > > #! /bin/sh > > PATH=$PATH:/sbin:/usr/sbin > > /bin/su > > > > and making it executable. > > Clever. But the final line should be: > > exec /bin/su "$@"
Good points, as ever :) > I still prefer the /etc/default/su solution from the wiki, though. Me too. What's more, when doing command wrappers like above, I tend to use a new name (say, `zu') and leave the original alone. Scripts and that (not every script says `/bin/su'). Plus a reminder to myself that I'm using a wrapper (age and other people's systems and that). Cheers -- t
signature.asc
Description: PGP signature