Sudo: Difference between revisions

From DWIKI
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:


*https://stackoverflow.com/questions/14277116/suppress-log-entry-for-single-sudo-commands
*https://stackoverflow.com/questions/14277116/suppress-log-entry-for-single-sudo-commands
 
*[https://www.digitalocean.com/community/tutorials/how-to-edit-the-sudoers-file How to edit the sudoers file]


= FAQ =
= FAQ =
Line 11: Line 11:
        
        


== sudo: foo : user NOT in sudoers ==
== sudo: foo : user NOT in sudoers ==
maybe you tried including a file like /etc/sudoers.d/foo.conf ?
 
maybe you tried including a file like /etc/sudoers.d/foo.conf ?
     
 
 
== enable file after adding to /etc/sudoers.d/ ==
 
visudo -v /etc/sudoers.d/myfile
 
== no password ==
%sudo  ALL=(ALL) NOPASSWD: ALL

Latest revision as of 11:49, 14 May 2022

Links

FAQ

sudo: sorry, you must have a tty to run sudo

Defaults:zabbix !requiretty
      

sudo: foo : user NOT in sudoers

maybe you tried including a file like /etc/sudoers.d/foo.conf ?


enable file after adding to /etc/sudoers.d/

visudo -v /etc/sudoers.d/myfile

no password

%sudo  ALL=(ALL) NOPASSWD: ALL