[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: I need to be root to run this script



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).

That said, here's an alternative that you may find interesting:

tail -n+1 /etc/sudoers.d/*


Reply to: