Problem: You want to allow a user authorization privileges only on certain machines
Solution: First, define a list of machines:
/etc/sudoers
Host_Alias SAFE_HOSTS = banana, cherry, grapes
Let smith run a program as jones on these machines:
# smith SAFE_HOSTS = (jones) /usr/local/bin/mycommand
Let smith run all programs as jones on these machines:
# smith SAFE_HOSTS = (jones) ALL
Solution: First, define a list of machines:
/etc/sudoers
Host_Alias SAFE_HOSTS = banana, cherry, grapes
Let smith run a program as jones on these machines:
# smith SAFE_HOSTS = (jones) /usr/local/bin/mycommand
Let smith run all programs as jones on these machines:
# smith SAFE_HOSTS = (jones) ALL
Terima kasih telah membaca artikel tentang How to Authorize per host machines in sudo di blog Tutorial Opensource and Linux jika anda ingin menyebar luaskan artikel ini di mohon untuk mencantumkan link sebagai Sumbernya, dan bila artikel ini bermanfaat silakan bookmark halaman ini di web browser anda, dengan cara menekan Ctrl + D pada tombol keyboard anda.