Samba服务器配置
一、samba服务器的安装
sudo apt-get install samba
//此时会自动下载跟samba有关的服务二、samba服务器的配置samba服务器的配置文件位置:/etc/samba/smb.conf(bak_smb.conf文件是我事先备份好的smb.conf文件)
security = share
comment = Operation and Maintenance Department#共享描述
path = /mnt/sda1/share #共享目录
writable = yes #允许在heijunma目录下写入
directory mask = 0777 #默认创建目录权限 rwxrwxr_x
create mask = 0777 #默认创建文件权限 rwxrwxr_x
valid users = heijunma,root#允许访问该共享的用户
write list = heijunma,root#可写入共享的用户列表
browseable = yes #该指定共享目录可浏览
available = yes #该指定共享资源可使用
/etc/samba/smb.conf 中不能有中文,注释也不行 访问共享文件提示:安全策略阻止未经身份验证的来宾访问
https://www.ydnl.net/thread-158-1-1.html
(出处: 爬行的蜗牛)
security = share
comment = Operation and Maintenance Department
path = /mnt/sda1/share
writable = yes
directory mask = 0777
create mask = 0777
browseable = yes
available = yes
guest ok = yes
guest account = nobody
map to guest = bad user
security = share
comment = Operation and Maintenance Department
path = /mnt/sda1/share
writable = yes
directory mask = 0777
create mask = 0777
browseable = yes
available = yes
read only = no
public = yes
页:
[1]