第一步:yum -y install samba 第二部:vim /etc/samba/smb.conf
主要需要配置的地方:
[global]
dos charset = GB2312
unix charset = GB2312
display charset = GB2312
directory mask = 0777
force directory mode = 0777
directory security mask = 0777
force directory security mode = 0777
create mask = 0777
force create mode = 0777
security mask = 0777
force security mode = 0777
workgroup = centos_panhong
server string = Samba Server Version %v
netbios name = centossmb
[homes]
comment = Home Directories
browseable = yes
writable = yes
[samba]
comment = Public Stuff
path = /home/samba
public = yes
writable = yes
guest ok = yes
browseable = yes
create mask = 0600
directory mask = 0700
第三步:mkdir /home/samba
chown -R nobody. /home/samba
chmod 777 /home/samba
smbpasswd -a panhong
第四步:禁用防火墙以及selinux
that'a all
阅读(264) | 评论(0) | 转发(0) |