`
yeshaoting
  • 浏览: 668111 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

CentOS赋予用户使用sudo等命令的权利

 
阅读更多

CentOS赋予用户使用sudo等命令的权利

 

1. 取得root权限

su root

 

2. 编辑sudoers文件

命令:visudo或者vi /etc/sudoers

 

3. 为用户添加root所有权限

## Next comes the main part: which users can run what software on

## which machines (the sudoers file can be shared between multiple

## systems).

## Syntax:

##

##      user    MACHINE=COMMANDS

##

## The COMMANDS section may have other options added to it.

##

## Allow root to run any commands anywhere

root    ALL=(ALL)       ALL

 

在此之后添加一行代码:ting    ALL=(ALL)       ALL


分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics