第一步是先建立用户组
再建立用户,然后建共享文件夹,
如:groupadd caiwu
useradd wan –g caiwu
mkdir caiwu
把用户增加到samba共享名单中
smbpasswd –a wan
下面是smb.conf是配置
#======================= Global Settings =====================================
[global]
# workgroup = NT-Domain-Name or Workgroup-Name
改workgroup = workgroup
改netbios name = wwy
# server string is the equivalent of the NT Description field
改server string = franck's samba server
# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
username map= /etc/samba/smbusers
password server =none
guest ok =yes
gures account =ftp
dsn proxy =no
[homes]
comment =Home Directories
browseable = no
writeable = yes
valid users = yes
create mask = 0664
directory mask =0775
[caiwu]
comment =caiwu
path = /home/samba/caiwu
write list =wan
writeable =yes
printable = no
create mask = 0765
[exchange]
comment = Exchange File Directory
path = /home/samba/exchange
guest ok = yes
writeable = yes
create mask = 777