长春市网站建设_网站建设公司_内容更新_seo优化
2026/1/16 4:50:55 网站建设 项目流程

debian 与 ubuntu 之 - sudo

sudo.d(directory):

Note also, that becasuse sudoers contents can vary widely, no attempt is made to add this 
directive to existing sudoers files on upgrade. Feel free to add the above directive to the 
end of your /etc/sudoers file to enabe this functionality for existing installations if you 
wish! Sudo versions older than the one in Debian 11(bullseye) require the directive will only 
support the old syntax #includedir, and the current sudo will happily accept both @includedir 
and #includedir

install

using root:

su - root

install:

apt install sudo

manual

chmod 640 /etc/sudoers
nano /etc/sudoers

在配置文件/etc/sudoers加入:

# User privilege specification
tdtc ALL=(ALL:ALL) ALL

把文件权限改为只读:

chmod 440 /etc/sudoers

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询