linux下samba环境搭建
1、安装samba
apt-get install samba samba-common
2、修改配置
/etc/samba/smb.conf
在最后添加以下内容即可实现每个用户访问自己的home目录
[homes] comment = Home Directories browseable = yes writable = yes guest ok = yes public = yes valid users = %S guest ; valid users = MYDOMAIN\%S
service smbd restart
3、添加samba用户
smbpasswd -a user
完成