Centos7添加新用户及home下用户目录
root@master:/home# adduser oracle
Adding user `oracle' ...
Adding new group `oracle' (1001) ...
Adding new user `oracle' (1001) with group `oracle' ...
Creating home directory `/home/oracle' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for oracle
Enter the new value, or press ENTER for the default
Full Name []: oracle
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] Y
root@master:/home# su oracle
oracle@master:/home$ ls
hduser oracle
–添加用户adduser xxx --删除用户deluser xxx