Blogger Information
Blog 15
fans 0
comment 0
visits 10368
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Linux-06关于sudo
移动用户-7131521
Original
445 people have browsed it

1.关于sudo

sudo是为所有想使用root权限的普通用户设计的。可以让普通用户具有临时使用root权限的权利。只需输入自己账户的密码即可,进入sudo配置文件命令

  1. vi /etc/visudo

案例如下,允许用户xiaoming使用root权限执行各种应用,需要输入密码

  1. xiaoming ALL=(ALL) ALL //将此代码添加到配置文件中

允许xiaoming以root的身份执行ls cat等命令,不需要输入密码

  1. xiaoming ALL=NOPASSWORD: /bin/ls, /bin/cat //将此代码添加到配置文件中
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post