1、添加新用户 :sudo adduser xx (用户名) 注意不要用sudo useradd xx
Adding user `xx' ...
Adding new group `xx' (1008) ...
Adding new user `xx' (1008) with group `xx' ...
Creating home directory `/home/xx' ...
Copying files from `/etc/skel' ...
Enter new UNIX password: 输入该用户的登陆密码
Retype new UNIX password: 确认密码
passwd: password updated successfully
Changing the user information for dengyx
Enter the new value, or press ENTER for the default
Full Name []: 回车
Room Number []: 回车
Work Phone []: 回车
Home Phone []: 回车
Other []: 回车
Is the information correct? [Y/n] y
sudo /etc/init.d/smbd restart 重启smb服务器