On Mi, 15 ian 20, 18:40:42, l0f4r0@tuta.io wrote:
> 15 janv. 2020 à 14:41 de wooledg@eeg.ccf.org:
>
> > On Tue, Jan 14, 2020 at 08:32:12PM -0800, Will Mengarini wrote:
> >
> >> And the ls -R would be helped by this:
> >> for f in /etc/sudoers.d/*;{ [[ -f $f ]] && echo === "$f" && cat "$f";}
> >
> > I'm *definitely* not a fan of stretching the shell's parser in that
> > way (replacing do ... done with a braced command group).
> >
> I'm not a big fan about for loop over wildcard *. It lacks recursivity.
> I don't know if one can nest sudoers directories inside sudoers.d but I would stick to:
>
> find /etc/sudoers.d -type f -exec echo '{}' \; -exec cat '{}' \;
Maybe replace the '-exec echo {}' with '-print'?
Kind regards,
Andrei
--
http://wiki.debian.org/FAQsFromDebianUser
Attachment:
signature.asc
Description: PGP signature