我没有在sudoers列表中用不起sudo,man了一下sudoers,太复杂了,没看懂到,还关系到一个叫什么来着的语言的,不知哪位教教我?就比如我想加一个叫user的用户,怎么写呢?
by LaoLang_cool - 系统管理 - 2006-03-25 10:05:45 阅读(877) 回复(3)
请问,我使用vi /etc/sudoers加入: User_Alias GURU=lql Cmd_Alias FILE_TOOLS=/bin/ls,/bin/cat GURU ALL=FILE_TOOLS 此时在lql$下执行: $sudo ls -l passwd:******* Sorry,user lql is not allowed to execute '/bin/ls -l' as root on localhost.localdomain 这是为什么?
如何配置这个文件sudoers 给个配置实例,我配置的好像不对 # sudoers file. # # This file MUST be edited with the 'visudo' command as root. # # See the sudoers man page for the details on how to write a sudoers file. # # Host alias specification # User alias specification # Cmnd alias specification # Defaults specification # User privilege specification root ALL=(ALL) ALL # Uncomment to allow...
原本想测试普通用户test在通过使用sudo获得cat /etc/sudoers的权利,没想到添加完命令后却不能执行。sudoers代码如下: [root@localhost root]# cat /etc/sudoers # sudoers file. # # This file MUST be edited with the 'visudo' command as root. # # See the sudoers man page for the details on how to write a sudoers file. # # Host alias specification # User alias specification User_Alias ADMIN = test # Cmnd...
linux7.2 在网上下的sudo-1.6.3p7-2.i386.rpm 应该说是可以为普通用户指定特定特权的。 下面是我的sudoers配置文件:: # sudoers file. # # This file MUST be edited with the 'visudo' command as root. # # See the sudoers man page for the details on how to write a sudoers file. # # Host alias specification # User alias specification User_Alias ROOTBEST=wjc User_Alias ROOTER=wjl,xsl # Cmnd alias specif...
我在宿机查看: [root@vm-master ~]# modinfo tun filename: /lib/modules/2.6.18-92.1.18.el5.028stab060.2/kernel/drivers/net/tun.ko alias: char-major-10-200 license: GPL author: (C) 1999-2004 Max Krasnyansky <[email]maxk@qualcomm.com[/email]> description: Universal TUN/TAP device driver srcversion: 0B908E18D8A2FF9F3E0A814 depends: vermagic: 2.6.18-92....
centos是Linux的一个发行版。 特点: === 1、可以把centos理解为Red Hat AS系列!它完全就是对Red Hat AS进行改进后发布的!各种操作、使用和RED HAT没有区别! 2、centos完全免费,不存在RED HAT AS4需要序列号的问题。 3、centos独有的yum命令支持在线升级,可以即时更新系统,不像RED HAT那样需要花钱购买支持服务! 4、centos修正了许多RED HAT AS的BUG! 呵呵,保留了RED HAT AS的优势,去掉了RED HAT AS 的限制,为什...