Chinaunix首页 | 论坛 | 博客
  • 博客访问: 234377
  • 博文数量: 95
  • 博客积分: 400
  • 博客等级: 一等列兵
  • 技术积分: 906
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-04 16:04
个人简介

人生意义在于积累,而不是日复一日的重复

文章分类

全部博文(95)

文章存档

2016年(2)

2015年(44)

2014年(35)

2011年(5)

2010年(9)

我的朋友

分类: LINUX

2014-11-05 15:04:27

一、为用户增加root权限
1. 增加普通用户
    useradd -D -b /home/        #将/home/ 设为homedir
    useradd -m test                 #增加用户test,并创建test的目录
    passwd test                       #为test设置密码

2. 增加root权限
    vim /etc/sudoers 或    visudo
    找到## Allow root to run any commands anywhere
    在root    ALL=(ALL)       ALL下面增加
       test     ALL=(ALL)       ALL

3. 以root权限登录
   sudo su -

二、为root组增加root权限
1. 将test加入到root组
    usermod -g root test

2. 增加root权限
    vim /etc/sudoers 或    visudo
    找到## Allows people in group wheel to run all commands
    增加如下
    %whell     ALL=(ALL)    ALL

3. 以root权限登录
   sudo su -
阅读(1958) | 评论(0) | 转发(0) |
0

上一篇:mysql数据文件配置

下一篇:bash与sh

给主人留下些什么吧!~~