FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


os:linux:set:authentication:etc_sudoers



Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
os:linux:set:authentication:etc_sudoers [2018/02/17 01:25]
kurihara created
os:linux:set:authentication:etc_sudoers [2018/02/17 01:38] (current)
kurihara
Line 1: Line 1:
 [[os:linux:set:index.html]] [[os:linux:set:index.html]]
-====== /etc/sudoers======+====== /etc/sudoers Example Configuration======
  
 \\ \\
Line 14: Line 14:
 #================================================================ #================================================================
  
-Defaults    requiretty+#Defaults    requiretty  #This is important to sudo from remote server. 
 Defaults   !visiblepw Defaults   !visiblepw
 Defaults    always_set_home Defaults    always_set_home
Line 28: Line 29:
 %wheel  ALL=(ALL)       ALL %wheel  ALL=(ALL)       ALL
  
 +#---------------------------------------------------
 fasthandle    ALL=(ALL)   NOPASSWD:ALL fasthandle    ALL=(ALL)   NOPASSWD:ALL
 +
 +Cmnd_Alias SHELLS = /bin/sh, /bin/csh, /bin/tcsh, /bin/bash, /usr/local/bin/bash
 +Cmnd_Alias SHELLS_NONINTERACTIVE = /bin/sh -c *, /bin/csh -c *,/bin/tcsh -c *, /usr/local/bin/bash -c *
 +Cmnd_Alias SHUTDOWN = /sbin/halt, /sbin/shutdown, /sbin/poweroff, /sbin/reboot, /sbin/fastboot, /sbin/init
 +
 +# %dev ALL=(ALL) ALL, !SHELLS, SHELLS_NONINTERACTIVE, SHUTDOWN
 +
 +
 +# apache LOCALHOST = (fasthandle) NOPASSWD: /home/fasthandle/fhhome/xxxxx.sh
 </sxh> </sxh>
  


os/linux/set/authentication/etc_sudoers.1518798324.txt.gz · Last modified: 2018/02/17 01:25 by kurihara