标签:sudoers sudo chmod etc sh ssh Linux 权限 root
测试:/usr/sbin/sshd -T
配置:
sh "chown root:root /etc/sudo.conf -R"
sh "chown -R root:root /etc/sudoers.d"
sh "chown root:root /etc/sudoers"
sh "chown -R root /usr/libexec/sudo/"
sh "chmod 644 /usr/libexec/sudo/sudoers.so"
sh "chmod 440 /etc/sudoers.d"
sh "chmod 4755 /usr/bin/sudo"
chmod -R 600 /etc/sudo.conf
chmod -R 600 /etc/sudoers
chown -R root:root /var/empty/sshd
chmod -R 711 /var/empty/sshd
chmod -R 600 /etc/ssh
标签:sudoers,
sudo,
chmod,
etc,
sh,
ssh,
Linux,
权限,
root
From: https://www.cnblogs.com/CGCong/p/17227017.html