无法编辑插件/sudoers/ins_*.h

无法编辑插件/sudoers/ins_*.h

我正在尝试编辑 Ubuntu 中的侮辱列表,如下所述:如何添加侮辱列表?,位于:plugins/sudoers/ins_*.h

我努力了:

sudo visudo -f /plugins/sudoers/ins_*.h

应该根据visudo手册页编辑该文件,但它似乎不起作用。

输出ls -al /

$ ls -al /
total 105
drwxr-xr-x  24 root root  4096 Feb 21 15:10 .
drwxr-xr-x  24 root root  4096 Feb 21 15:10 ..
drwxr-xr-x   2 root root  4096 Feb 13 12:03 bin
drwxr-xr-x   4 root root  1024 Feb 21 19:07 boot
drwxr-xr-x   2 root root  4096 Feb 12 16:41 cdrom
drwxr-xr-x  15 root root  4420 Feb 27 23:37 dev
drwxr-xr-x 150 root root 12288 Feb 28 00:37 etc
drwxr-xr-x   5 root root  4096 Apr 19  2012 home
lrwxrwxrwx   1 root root    37 Feb 12 17:14 initrd.img -> /boot/initrd.img-3.2.0-76-generic-pae
lrwxrwxrwx   1 root root    36 Feb 12 16:43 initrd.img.old -> boot/initrd.img-3.2.0-51-generic-pae
drwxr-xr-x  27 root root  4096 Feb 26 15:51 lib
drwx------   2 root root 16384 Feb 12 16:32 lost+found
drwxr-xr-x   2 root root  4096 Jul 23  2013 media
drwxr-xr-x   2 root root  4096 Apr 19  2012 mnt
drwxr-xr-x   3 root root  4096 Feb 12 18:51 opt
dr-xr-xr-x 191 root root     0 Feb 27 23:36 proc
drwx------  10 root root  4096 Feb 20 20:09 root
drwxr-xr-x   2 root root  4096 Feb 21 15:10 .rpmdb
drwxr-xr-x  23 root root   880 Feb 27 23:37 run
drwxr-xr-x   2 root root 12288 Feb 13 12:03 sbin
drwxr-xr-x   2 root root  4096 Mar  5  2012 selinux
drwxr-xr-x   2 root root  4096 Jul 23  2013 srv
drwxr-xr-x  13 root root     0 Feb 27 23:36 sys
drwxrwxrwt  12 root root  4096 Feb 28 01:17 tmp
drwxr-xr-x  11 root root  4096 Feb 12 17:51 usr
drwxr-xr-x  12 root root  4096 Feb 27 19:45 var
lrwxrwxrwx   1 root root    33 Feb 12 17:14 vmlinuz -> boot/vmlinuz-3.2.0-76-generic-pae
lrwxrwxrwx   1 root root    33 Feb 12 16:43 vmlinuz.old -> boot/vmlinuz-3.2.0-51-generic-pae

答案1

再读一遍:

要编辑侮辱列表,您需要编辑源代码并重新编译。

因此获取源代码和依赖项:

apt-get build-dep sudo
apt-get source sudo
cd sudo*

编辑文件。请注意,没有前导斜杠,因为这是相对路径:

vim plugins/sudoers/ins_*.h

建造:

dpkg-buildpackage -us -uc -b

安装:

sudo dpkg -i ../sudo_*.deb

相关内容