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

原文地址:https://www.cnblogs.com/oxspirt/p/6294856.html