首页 > 代码库 > Linux samba配置

Linux samba配置

1、安装samba服务

yum -y install samba

2、配置samba

vim /etc/samba/smb.conf

[global]
workgroup = ME
netbios name = TEST
server string = Samba Server
security = user
map to guest = Bad User

 

[test]
path = /data/
readonly = yes
browseable = yes
guest ok = yes
writable = yes
create mask = 0666
directory mask = 0765

3、重启samba服务

service smb restart

Linux samba配置