本文主要是介绍adduser和useradd区别,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
原文转自;http://hi.chinaunix.net/?uid-20766364-action-viewspace-itemid-34721
adduser命令的使用:
比如创建用户myadmin
root@xxx:/xxx# addusermyadmin
Adding user 'myadmin'...
Adding new group 'myadmin'(1004).
Adding new user 'myadmin'(1010) with group myadmin...
Creating home directory '/home/myadmin'...
Copying files from '/etc/skel'...
Enter new
Retype new UNIXpassword:
passwd: password updated successfully
Changing the user information for myadmin
Enter the new value,or press ENTER for thedefault
Is the information correct? [y/N]
root@xxx:/xxx# userdel -rmyadmin
useradd命令的使用:
root@xxx:/xxx# useradd myadmin
root@xxx:/xxx# userdel myadmin
这篇关于adduser和useradd区别的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!