Is this 11.2-U2 or 11.2-U1?
This is tested on FreeNAS 11.2-U2.
This is the log showing a user (
plj
) not able to add tags to file (
plj_is_not_the_owner
) owned by someone else (Rights are 777). On a file owned by the user (
plj_is_the_owner
), tags can be added and removed.
Code:
...
...
[2019/02/27 13:29:36.876369, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/.DS_Store read=No write=No (numopen=4)
[2019/02/27 13:29:36.876719, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/.DS_Store:AFP_AfpInfo read=Yes write=No (numopen=5)
[2019/02/27 13:29:36.876895, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/.DS_Store:AFP_AfpInfo (numopen=4) NT_STATUS_OK
[2019/02/27 13:29:36.876962, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/.DS_Store (numopen=3) NT_STATUS_OK
...
...
plj opened file FREE/plj_is_not_the_owner read=No write=No (numopen=3)
[2019/02/27 13:29:39.633999, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_not_the_owner (numopen=2) NT_STATUS_OK
[2019/02/27 13:29:39.647067, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_not_the_owner read=Yes write=No (numopen=3)
[2019/02/27 13:29:39.647612, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_not_the_owner (numopen=2) NT_STATUS_OK
[2019/02/27 13:29:39.648039, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_not_the_owner read=No write=No (numopen=3)
[2019/02/27 13:29:39.648330, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_not_the_owner (numopen=2) NT_STATUS_OK
[2019/02/27 13:29:39.648946, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_not_the_owner read=Yes write=No (numopen=3)
[2019/02/27 13:29:39.649442, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_not_the_owner (numopen=2) NT_STATUS_OK
[2019/02/27 13:29:39.650010, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_not_the_owner read=Yes write=No (numopen=3)
[2019/02/27 13:29:39.650544, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_not_the_owner (numopen=2) NT_STATUS_OK
[2019/02/27 13:29:39.651508, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_not_the_owner read=Yes write=No (numopen=3)
[2019/02/27 13:29:39.652243, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_not_the_owner (numopen=2) NT_STATUS_OK
[2019/02/27 13:29:39.656659, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_not_the_owner read=No write=No (numopen=3)
[2019/02/27 13:29:39.656963, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_not_the_owner (numopen=2) NT_STATUS_OK
[2019/02/27 13:29:39.659426, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_not_the_owner read=Yes write=No (numopen=3)
[2019/02/27 13:29:39.659923, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_not_the_owner (numopen=2) NT_STATUS_OK
[2019/02/27 13:29:39.660964, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_not_the_owner read=No write=No (numopen=3)
[2019/02/27 13:29:39.661241, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_not_the_owner (numopen=2) NT_STATUS_OK
[2019/02/27 13:29:39.662031, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_not_the_owner read=Yes write=No (numopen=3)
[2019/02/27 13:29:39.662482, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_not_the_owner (numopen=2) NT_STATUS_OK
[2019/02/27 13:29:39.663030, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_not_the_owner read=No write=No (numopen=3)
[2019/02/27 13:29:39.663317, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_not_the_owner (numopen=2) NT_STATUS_OK
[2019/02/27 13:29:39.877899, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_not_the_owner read=Yes write=No (numopen=3)
[2019/02/27 13:29:39.878393, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_not_the_owner (numopen=2) NT_STATUS_OK
[2019/02/27 13:29:41.888080, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_not_the_owner read=Yes write=No (numopen=3)
[2019/02/27 13:29:41.888942, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_not_the_owner (numopen=2) NT_STATUS_OK
[2019/02/27 13:29:41.890751, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_not_the_owner read=Yes write=No (numopen=3)
[2019/02/27 13:29:41.891264, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_not_the_owner (numopen=2) NT_STATUS_OK
[2019/02/27 13:29:41.946658, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_not_the_owner read=No write=No (numopen=3)
[2019/02/27 13:29:41.946968, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_not_the_owner (numopen=2) NT_STATUS_OK
[2019/02/27 13:29:43.742133, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_not_the_owner read=No write=No (numopen=3)
[2019/02/27 13:29:43.742571, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_not_the_owner (numopen=2) NT_STATUS_OK
[2019/02/27 13:29:43.743824, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_not_the_owner read=No write=No (numopen=3)
[2019/02/27 13:29:43.744129, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_not_the_owner (numopen=2) NT_STATUS_OK
[2019/02/27 13:29:56.484025, 2] ../source3/smbd/server.c:807(remove_child_pid)
Could not find child 33246 -- ignoring
This is the user interacting with a file he owns:
Code:
...
...
[2019/02/27 13:31:38.442422, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_the_owner read=No write=No (numopen=3)
[2019/02/27 13:31:38.442820, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_the_owner (numopen=2) NT_STATUS_OK
[2019/02/27 13:31:38.444018, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_the_owner read=No write=No (numopen=3)
[2019/02/27 13:31:38.444316, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_the_owner (numopen=2) NT_STATUS_OK
[2019/02/27 13:31:38.445052, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_the_owner read=No write=No (numopen=3)
[2019/02/27 13:31:38.445507, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_the_owner:AFP_AfpInfo read=Yes write=Yes (numopen=4)
[2019/02/27 13:31:38.446048, 0] ../source3/modules/vfs_fruit.c:4181(fruit_pread_meta_stream)
fruit_pread_meta_stream: Removing [FREE/plj_is_the_owner:AFP_AfpInfo] after short read [0]
[2019/02/27 13:31:38.446134, 0] ../source3/modules/vfs_fruit.c:4185(fruit_pread_meta_stream)
fruit_pread_meta_stream: Removing [FREE/plj_is_the_owner:AFP_AfpInfo] failed
[2019/02/27 13:31:38.448577, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_the_owner:AFP_AfpInfo (numopen=3) NT_STATUS_OK
[2019/02/27 13:31:38.448705, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_the_owner (numopen=2) NT_STATUS_OK
[2019/02/27 13:31:38.451036, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_the_owner read=No write=No (numopen=4)
[2019/02/27 13:31:38.451339, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_the_owner:AFP_AfpInfo read=Yes write=No (numopen=5)
[2019/02/27 13:31:38.451490, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_the_owner:AFP_AfpInfo (numopen=4) NT_STATUS_OK
[2019/02/27 13:31:38.451555, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_the_owner (numopen=3) NT_STATUS_OK
[2019/02/27 13:31:38.452784, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_the_owner read=No write=No (numopen=3)
[2019/02/27 13:31:38.453219, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_the_owner:com.apple.metadata_kMDItemUserTags read=No write=Yes (numopen=4)
[2019/02/27 13:31:38.455679, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_the_owner:com.apple.metadata_kMDItemUserTags (numopen=3) NT_STATUS_OK
[2019/02/27 13:31:38.455817, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_the_owner (numopen=2) NT_STATUS_OK
[2019/02/27 13:31:38.457921, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_the_owner read=Yes write=No (numopen=3)
[2019/02/27 13:31:38.458520, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_the_owner (numopen=2) NT_STATUS_OK
[2019/02/27 13:31:38.459414, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_the_owner read=Yes write=No (numopen=3)
[2019/02/27 13:31:38.459911, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_the_owner (numopen=2) NT_STATUS_OK
[2019/02/27 13:31:38.460836, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_the_owner read=No write=No (numopen=3)
[2019/02/27 13:31:38.461152, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_the_owner:com.apple.metadata_kMDItemUserTags read=No write=Yes (numopen=4)
[2019/02/27 13:31:38.462927, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_the_owner:com.apple.metadata_kMDItemUserTags (numopen=3) NT_STATUS_OK
[2019/02/27 13:31:38.463065, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_the_owner (numopen=2) NT_STATUS_OK
[2019/02/27 13:31:38.465241, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_the_owner read=No write=No (numopen=4)
[2019/02/27 13:31:38.465537, 2] ../source3/smbd/open.c:1447(open_file)
plj opened file FREE/plj_is_the_owner:AFP_AfpInfo read=Yes write=No (numopen=5)
[2019/02/27 13:31:38.465677, 2] ../source3/smbd/close.c:802(close_normal_file)
plj closed file FREE/plj_is_the_owner:AFP_AfpInfo (numopen=4) NT_STATUS_OK...
...
This is the configuration of SAMBA. User is logged in to share
tftproot
:
Code:
root@ultraman:/mnt/ultraman/tftproot/FREE # testparm -s
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
Load smb config files from /usr/local/etc/smb4.conf
Processing section "[FRUITTEST]"
Processing section "[tftproot]"
Loaded services file OK.
Server role: ROLE_DOMAIN_PDC
# Global parameters
[global]
deadtime = 15
disable spoolss = Yes
dns proxy = No
domain logons = Yes
dos charset = CP437
hostname lookups = Yes
kernel change notify = No
ldap admin dn = ***
ldap suffix = ***
lm announce = Yes
load printers = No
local master = No
logging = file
max log size = 51200
max open files = 6603833
nsupdate command = /usr/local/bin/samba-nsupdate -g
obey pam restrictions = Yes
panic action = /usr/local/libexec/samba/samba-backtrace
passdb backend = ldapsam:ldap://ldap10.kontrapunkt.com
printcap name = /dev/null
security = USER
server min protocol = SMB2_02
server role = member server
server string = FreeNAS Server
winbind nested groups = No
workgroup = ZFS_ULTRAMAN
idmap config zfs_ultraman: range = 10000-90000000
idmap config zfs_ultraman: backend = ldap
ldapsam:trusted = yes
idmap config *: range = 90000001-100000000
idmap config * : backend = tdb
acl allow execute always = Yes
create mask = 0666
directory mask = 0777
directory name cache size = 0
dos filemode = Yes
strict locking = No
[FRUITTEST]
browseable = No
guest only = Yes
path = "/mnt/ultraman/FRUITTEST"
read only = No
veto files = /.snapshot/.windows/.mac/.zfs/
vfs objects = zfs_space zfsacl fruit streams_xattr
zfsacl:acesort = dontcare
nfs4:chown = true
nfs4:acedup = merge
nfs4:mode = special
fruit:resource = stream
fruit:metadata = stream
[tftproot]
path = "/mnt/ultraman/tftproot"
read only = No
veto files = /.snapshot/.windows/.mac/.zfs/
vfs objects = zfs_space zfsacl fruit streams_xattr
zfsacl:acesort = dontcare
nfs4:chown = true
nfs4:acedup = merge
nfs4:mode = special
fruit:resource = stream
fruit:metadata = stream