好好爱自己!

ubuntu 添加和删除用户

Without a home directory

sudo useradd myuser

With home directory

sudo useradd -m myuser

Then set the password

sudo passwd myuser

Then set the shell

sudo usermod -s /bin/bash myuser
shareedit
 
    
Simple but very useful answer. Thanks. – Brady Zhu Sep 17 '13 at 5:59
    
unfortunately, I indeed follow this to add a user, and then get the error 'Access denied' when I try to sign in with it. What's wrong with it? – Brady Zhu Sep 17 '13 at 6:03

------------------------

 

http://stackoverflow.com/questions/38288/how-do-i-add-a-user-in-ubuntu

posted @ 2017-01-17 21:55  立志做一个好的程序员  阅读(414)  评论(0编辑  收藏  举报

不断学习创作,与自己快乐相处