a. Add a user and set password with command:
smbpasswd -a root
etc: you should make sure the root has correspond user in file /etc/samba/smbusers
b. Open /etc/samba/smb.conf to add this:
[remote]
comment = Remote Directory
path = /sharepoint/remote
public = yes
writable = yes
printable = no
create mask = 0664
directory mask = 0775
c. Start smb server:
/etc/init.d/smb start
d. Mount in windows:
\\192.168.2.222
阅读(782) | 评论(0) | 转发(0) |