配置samba服务
#smbpasswd -a user_name (user_name为系统中在在的用户名)
编辑/etc/samba/smb.conf
[xxxx]
path=/home/xxx
read only = no
public = no
valid users = user_name
create mode = 0664
force create mode = 0664
directory mode = 0754
force directory mode = 0754
然后在Windows下就可以以user_name的身份访问了
参考:http://cells.blog.51cto.com/701962/755367/
http://easwy.com/blog/archives/set-file-directory-attribute-for-linux-samba/