服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. fedora
  3. sudo – 带命令列表的新用户
Intereting Posts
阻塞Zimbra服务器(postfix)上的子域时可以使用通配符吗? 在Mac OS X上重置MySQL 5 root密码 多个传出ip亚马逊 针对小型单一办公室服务器的服务器冗余或故障保护 IISExpress的pipe理界面在哪里? Apache和高负载平均 如何为tls密码套件设置“服务器首选项”? 为什么xfs_check不能运行? nrpe用户不能正确执行脚本使用lsof远程执行,netstat工程 redirect输出从telnet / NC到脚本中的文件失败时cron'd maven + cruisecontrol – 缓慢build立 Citrix或TS RDP上的PDF阅读器性能 如何根据具有exim的域来定位不同的邮件服务器? 减慢通过Linux路由器的单个连接? 两个AWS实例之间的Strongswan VPN隧道将不会连接

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