首页 > 系统服务 > 详细

ubuntut add user and give sudo right

时间:2019-07-12 18:30:01      阅读:106      评论:0      收藏:0      [点我收藏+]

# " ssozh"  should be replace with you username

1.add user

su root

adduser -m ssozh

passwd ssozh

 

2.give sudo right

change file chmod:   chmod u+w /etc/sudoers

find "root ALL=(ALL) ALL".and add:  ssozh ALL=(ALL) ALL

change file chmod: chmod u-w /etc/sudoers

 

3.change shell for new user(Why you cannot use tab)

you will find /etc/passwd ssozh :

ssozh:X:1000:1000::/home/leroy:/bin/sh

change it:

ssozh:X:1000:1000::/home/leroy:/bin/bash

 

4.why use English? because this ubuntu dont install Chinese pinyin.....

 

cite:https://blog.csdn.net/leroy008/article/details/18706213

  https://www.jianshu.com/p/3d435e09712a

 

ubuntut add user and give sudo right

原文:https://www.cnblogs.com/SsoZhNO-1/p/11177633.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!