- Change root_access with no password of specific user
- Change root_access's file mode bits
- Check sudo configuration mode
echo 'user ALL=(ALL:ALL) NOPASSWD:ALL' >> /etc/sudoers.d/root_access
sudo chmod 0440 /etc/sudoers.d/root_access
sudo visudo -c
echo 'user ALL=(ALL:ALL) NOPASSWD:ALL' >> /etc/sudoers.d/root_access
sudo chmod 0440 /etc/sudoers.d/root_access
sudo visudo -c
Buy Me a Coffee