[sudo-users] Sudo to list only default
Daniele Palumbo
daniele at retaggio.net
Wed Dec 6 15:38:05 MST 2017
Example (forgot it sorry)
root at build-jessie-amd64:~# sudo -l
Matching Defaults entries for root 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 root:
Defaults!/usr/bin/sudoreplay !log_output
User root may run the following commands on build-jessie-amd64:
(ALL : ALL) ALL
root at build-jessie-amd64:~#
I wish to run it like
root at build-jessie-amd64:~# sudo -l --defaults
Matching Defaults entries for root 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
root at build-jessie-amd64:~#
Thanks for the fast reply,
Daniele
Il 6 dicembre 2017 23:30:45 CET, "Todd C. Miller" <Todd.Miller at sudo.ws> ha scritto:
>I'm not sure exactly what you are asking for. If you want to compare
>the global defaults (not tied to a user, host, command, etc) you
>could run "sudo -V" as root. After the version and configure
>information will be all the default options, as modified by sudoers.
>
>That may not be what you are looking for though.
>
> - todd
More information about the sudo-users
mailing list