winscp访问群晖NAS权限的问题
at 2024.03.08 ca 群晖NAS by admin
sudoers 修改后的文件内容
## sudoers file. # Enable logging of a command's output. # Use sudoreplay to play back logged sessions. Defaults syslog=authpriv # Allow root to execute any command root ALL=(ALL) ALL # Allow members of group administrators to execute any command %administrators ALL=NOPASSWD: ALL # Configure privilege of wheel group Cmnd_Alias SHELL = /bin/ash, /bin/sh, /bin/bash Cmnd_Alias SU = /usr/bin/su %wheel ALL=(ALL) NOPASSWD: ALL, !SHELL, !SU # Include user-defined sudoers #includedir /etc/sudoers.d
群晖NAS计划任务以 root 运行
rm -rf /etc/sudoers 强制删除系统中的/etc/sudoers文件 cp -f /volume1/docker/sudoers /etc/sudoers 将/volume1/docker目录下的sudoers文件复制到系统的/etc目录下,并覆盖原有的sudoers文件
版权声明
本站所有资源均来自网络,本站只做收集汇总工作!