I want to edit the sudoers file on my Synology Disk Station (specifically, to enabled password-less shutdown), however my version of Synology DSM does not have visudo installed.
How can I install it so I can safely edit the sudoers file?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this community
/etc/sudoers.d/
for your own account without any need forvisudo
.user_name ALL=(ALL) NOPASSWD: /sbin/poweroff, /sbin/reboot, /sbin/shutdown
in/etc/sudoers.d/shutdown
and it works. Some sites still recommend using visudo for sudoers.d so I'd still be happy with an answer to the original question.etc/sudoers.d
not in the mainsudo
config file