第一步是先建立用户组
再建立用户,然后建共享文件夹,
如: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
博客介绍了Samba服务器的配置步骤,先建立用户组和用户,创建共享文件夹,将用户添加到samba共享名单。还给出了smb.conf的配置内容,包括全局设置、用户主目录和不同共享文件夹的配置,如workgroup、server string等参数的修改。
3972

被折叠的 条评论
为什么被折叠?



