服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. fedora
  3. sudo – 带命令列表的新用户
Intereting Posts
为什么服务器需要UPS? Linux – 两个子网,一个接口,一个网关 – NAT附加子网 NAT不能与LXC一起工作 额外的磁盘空间 Windows 2012最小界面 在VMware Workstation中启用Intel-VT 我如何将一个ldap属性的值与另一个的值关联起来? 以不同的用户身份运行一个shell脚本 新鲜的红帽企业Linux无法使用yum安装httpd 文件共享方法 如何禁止用户的脚本访问其用户文件夹之上的任何内容? 什么是MXlogging,以及如何为具有多个域的邮件服务器进行configuration? ASP.NET会话状态SQL Server 2008 R2以高CPU使用率冻结 BIND9 DNS问题 – 不解决 如何在CentOS下保持SpamAssassin最新?

sudo – 带命令列表的新用户

以下将允许newuser在任何地方运行任何命令? 我怎样才能通过只允许用户运行某些命令来防止它?

visudo ## Allow root to run any commands anywhere root ALL=(ALL) ALL newuser ALL=(ALL) ALL 

  • SSL证书没有显示正确的值? “SomeCity”,“SomeState”
  • 使用两个以太网端口将两个networking连接到一台服务器
  • 修复RedHat / Fedora中的bug修复?
  • 坏扇区
  • Fedora 11,如何在Fedora 11中通过gsm模块自动读取传入消息需要帮助

你可以为newuser创build一个命令别名

 Cmnd_Alias NEWUSER_CMDS = /path/to/cmd1, /path/to/cmd2, /path/to/cmd3 

然后将其用作用户规范的一部分

 newuser ALL=(ALL) NEWUSER_CMDS 
 newuser ALL=(ALL) /path/to/your/command 

请阅读man sudoers页面中的User Specification部分以获取更多详细信息。

  • Fedora 21:无法Ping或curl,但可以访问Internet
  • Docker镜像只能在一个Fedora服务器上运行?
  • 在Fedora虚拟机中使用yum时,VirtualBox上的“下载目录空间不足”错误
  • 如何在Fedora 16(x86_64)中创buildsystemd.service?
  • Fedora 4,Apache 2.2.0,tomcat 5.5.7,openssl 0.9.7f,SSL证书,域名和IP地址
  • “链接到未知”是什么意思?
  • Linux(Ubuntu vs CentOS)LDAP客户端,用于389-ds – 密码策略
  • 修复Fedora 18中的U盘挂载点
  • Selinux干扰vboxwebsrv或phpvirtualbox
  • 提示和技巧,使NX服务器更稳定

  • © 2017 服务器 Gind.cn
  • Topics
  •        
  • Powered by Server
  • Privacy Policy