ubuntu 添加和删除用户

时间:2017-01-17 23:41:39   收藏:0   阅读:351

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

原文:http://www.cnblogs.com/oxspirt/p/6294856.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!