windows能访问linux samba共享目录,能看到目录下文件夹,但看不到里面的文件,也没有创目录的权限
以下是我在smb.conf的所有配置,请大神们帮忙看下,是哪有问题?[global]security=userusernamemap=/etc/samba/smbuser...
以下是我在smb.conf的所有配置,请大神们帮忙看下,是哪有问题?
[global]
security = user
username map =/etc/samba/smbusers
workgroup = MYGROUP
server string = Samba Server Version %v
log file = /var/log/samba/log.%m
max log size = 50
load printers = yes
cups options = raw
[public]
comment = public
path = /home/public
public = yes
writable = yes
read only = no
available = yes 展开
[global]
security = user
username map =/etc/samba/smbusers
workgroup = MYGROUP
server string = Samba Server Version %v
log file = /var/log/samba/log.%m
max log size = 50
load printers = yes
cups options = raw
[public]
comment = public
path = /home/public
public = yes
writable = yes
read only = no
available = yes 展开
4个回答
展开全部
[share]
comment = share
path = /home/share
browseable = yes
public = yes
writable = yes
create mask = 0777
查看共享目录的权限,对应根目录下的所有子目录和文件,权限都先改为777试试
comment = share
path = /home/share
browseable = yes
public = yes
writable = yes
create mask = 0777
查看共享目录的权限,对应根目录下的所有子目录和文件,权限都先改为777试试
更多追问追答
追问
我是要设置为需要用户名和密码才能登录samba,应该不就是用user模式吧,share模式不是不用用户名额密码了嘛
追答
这个share,其实只是这个共享目录的名称而已,具体是用户名密码校验,还是开放登录,是这个共享目录下的pulic来设置的,如果该处为no,你可以再设置对应的用户名和密码,此处设置你再搜索相关配置
展开全部
你把selinux设置为disabled就好了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询