当前位置: 技术问答>linux和unix
samba权限问题???
来源: 互联网 发布时间:2016-08-03
本文导语: 虚拟机建立samba服务器 [global] server string = Samba Server Version %v interfaces = 192.168.56.101/24, 127.0.0.1/24 security = SHARE passdb backend = tdbsam log file = /var/log/sam...
虚拟机建立samba服务器
[global]
server string = Samba Server Version %v
interfaces = 192.168.56.101/24, 127.0.0.1/24
security = SHARE
passdb backend = tdbsam
log file = /var/log/samba/%m.log
max log size = 50
hosts allow = 127.0.0.1, 192.168.56.102
cups options = raw
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[public]
comment = Public Stuff
path = /var/samba/share/
write list = +staff
read only = No
create mask = 0755
guest only = Yes
guest ok = Yes
testparm 打印的信息
/var/samba/share/ 这个文件夹 用户名和组都是 nobody
客户端是win7,在文件网络邻居中可以看到public
但是不能访问,服务端打印
[2010/02/04 13:35:43, 1] smbd/notify_inotify.c:inotify_watch(412)
inotify_add_watch returned 权限不够
我什么地方配置错误?
[global]
server string = Samba Server Version %v
interfaces = 192.168.56.101/24, 127.0.0.1/24
security = SHARE
passdb backend = tdbsam
log file = /var/log/samba/%m.log
max log size = 50
hosts allow = 127.0.0.1, 192.168.56.102
cups options = raw
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[public]
comment = Public Stuff
path = /var/samba/share/
write list = +staff
read only = No
create mask = 0755
guest only = Yes
guest ok = Yes
testparm 打印的信息
/var/samba/share/ 这个文件夹 用户名和组都是 nobody
客户端是win7,在文件网络邻居中可以看到public
但是不能访问,服务端打印
[2010/02/04 13:35:43, 1] smbd/notify_inotify.c:inotify_watch(412)
inotify_add_watch returned 权限不够
我什么地方配置错误?
|
selinux可以强制策略
chcon -R -t samba_share_t /var/samba/share
chgrp staff /var/samba/share
chmod g=rwx /var/samba/share
[public]
comment = Public Stuff
path = /var/samba/share/
write list = +staff
writeable = no
public = Yes
printable = no
应该可以实现匿名访问、只有staff组成员有写权限
chcon -R -t samba_share_t /var/samba/share
chgrp staff /var/samba/share
chmod g=rwx /var/samba/share
[public]
comment = Public Stuff
path = /var/samba/share/
write list = +staff
writeable = no
public = Yes
printable = no
应该可以实现匿名访问、只有staff组成员有写权限
|
这个目录的权限值是多少 /var/samba/share
你chmod 777 /var/samba/share 试试
你chmod 777 /var/samba/share 试试
|
1.你把public参数设简单一下试试
[public]
comment = Public Stuff
path = /var/samba/share/
read only = No
writable = yes
public = yes
2.如果selinux有效,设成无效试试
3.如果还是不行,http://linux.vbird.org/linux_server/0370samba.php
[public]
comment = Public Stuff
path = /var/samba/share/
read only = No
writable = yes
public = yes
2.如果selinux有效,设成无效试试
3.如果还是不行,http://linux.vbird.org/linux_server/0370samba.php
|
2.如果selinux有效,设成无效试试
这个试过了吗
这个试过了吗