[sudo-users] Sudo to list only default
Daniele Palumbo
daniele at retaggio.net
Wed Dec 6 17:54:57 MST 2017
Il giorno 06 dic 2017, alle ore 23:56, Todd C. Miller <Todd.Miller at sudo.ws> ha scritto:
> There's not currently a way to omit the commands the "sudo -l"
> output though it should not be hard to use a script to remove them
> from the output.
Sure, like:
daniele at build-jessie-amd64:~$ sudo -l | sed -n -e '/Matching Defaults entries for.*:/,/Runas and Command-specific defaults for.*/ p'
Matching Defaults entries for daniele on build-jessie-amd64:
env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin, log_output, maxseq=150, iolog_mode=750, iolog_dir=/var/log/sudo-io/%{user}, !requiretty
Runas and Command-specific defaults for daniele:
daniele at build-jessie-amd64:~$
Nevertheless, it is not really the best.
I have filed:
https://bugzilla.sudo.ws/show_bug.cgi?id=812
As this should be easy to be done.
The final goal would be anyway:
https://bugzilla.sudo.ws/show_bug.cgi?id=813
That require (i think) much more work.
Thank you very much,
Daniele
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://www.sudo.ws/pipermail/sudo-users/attachments/20171207/7c698e36/attachment.bin>
More information about the sudo-users
mailing list