我安装了一个 samba 共享(带有内核Linux comp001 3.18.7-2-ARCH #1 PREEMPT Thu Feb 12 12:53:57 MST 2015 armv6l GNU/Linux
和 samba 版本的ArchLinux) ,工作正常:Samba version 4.1.16
/mnt/data/
/mnt/data/
|-- 3145_Tv.dtv
|-- 3145_Ubat.dtv
|-- 3145_h.dtv
`-- setting
`-- map.ini
现在,我必须升级 samba 配置以满足以下要求:
- 目录
setting
必须可访问。这是有效的。 - 目录
setting
必须禁用重命名和删除操作。无论我做什么,我都没有成功完成这项任务。
这是/etc/samba/smb.conf
与共享相关的配置文件块:
[data]
security = user
comment = PiDaq data
read only = no
; locking = no
path = /mnt/data
; guest ok = yes
create mask = 0222
directory mask = 0033
[settings]
security = user
read only = yes
path = /mnt/data/settings
browseable = no
; create mask = 0222
; directory mask = 0033
这也是smbstatus
命令的输出:
Samba version 4.1.16
PID Username Group Machine
-------------------------------------------------------------------
1075 user user 192.168.0.120 (ipv4:192.168.0.120:51273)
Service pid machine Connected at
-------------------------------------------------------
data 1075 192.168.0.120 Fri Feb 13 11:30:29 2015
Locked files:
Pid Uid DenyMode Access R/W Oplock SharePath Name Time
--------------------------------------------------------------------------------------------------
1075 1002 DENY_NONE 0x100081 RDONLY NONE /mnt/data . Fri Feb 13 11:30:28 2015
1075 1002 DENY_NONE 0x100081 RDONLY NONE /mnt/data . Fri Feb 13 11:31:04 2015
1075 1002 DENY_NONE 0x100081 RDONLY NONE /mnt/data setting Fri Feb 13 11:31:04 2015
我如何完成任务2?这是 samba 问题还是操作系统权限问题,因为我对此一无所获......