Re: Sudo to list only default
Daniele Palumbo <[email protected]>
| Newsgroups | gmane.comp.tools.sudo.user |
|---|---|
| Message-ID | <[email protected]> |
Example (forgot it sorry)
root@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@build-jessie-amd64:~#
I wish to run it like
root@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@build-jessie-amd64:~#
Thanks for the fast reply,
Daniele
Il 6 dicembre 2017 23:30:45 CET, "Todd C. Miller" <[email protected]> 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
____________________________________________________________
sudo-users mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
https://www.sudo.ws/mailman/listinfo/sudo-users