centos安装及配置samba服务器四部曲
时间:2016-02-24 23:26 来源:linux.it.net.cn 作者:IT
第一步: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
(责任编辑:IT)
第一步: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 (责任编辑:IT) |