//添加linux用户 useradd -d /home/xdliu -m -s /bin/bash xdliu //设置linux用户密码 passwd xdliu 为linux已经存的用户添加samba服务密码 smbpasswd -a xdliu //samba.conf 里添加共享