Re: Sudo to list only default
Daniele Palumbo <[email protected]>
| Newsgroups | gmane.comp.tools.sudo.user |
|---|---|
| Message-ID | <[email protected]> |
Il giorno 06 dic 2017, alle ore 23:56, Todd C. Miller <[email protected]> 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@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@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 ____________________________________________________________ sudo-users mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-users
signature.asc
(application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQ2i6u6VhCxV1aSkPHxOPmZ9ILUVAUCWiiRYQAKCRDxOPmZ9ILU VJ94AJ9EWrkMjLV05RppmkTYLRa05Mys6ACfSWqFbN+exzQw5W25jUX4ueYBqzI= =cVvI -----END PGP SIGNATURE-----