Hello
I have a problem to edit a file with kate.
Session open for normal user : user_test1
Public folder : /d_pub_folder - owner publicuser:publicuser
Public subfolder : /d_pub_folder/user_test2 - owner publicuser:publicuser
The file to edit : /d_pub_folder/user_test2/test_user_test2_04.txt - owner user_test2:publicuser
user_test1@LINUX:~> getfacl /d_pub_folder
getfacl: Removing leading '/' from absolute path names
# file: d_pub_folder
# owner: publicuser
# group: publicuser
# flags: -st
user::rwx
group::rwx
group:publicuser:rwx
mask::rwx
other::---
default:user::rwx
default:group::rwx
default:group:publicuser:rwx
default:mask::rwx
default:other::---
user_test1@LINUX:~> getfacl /d_pub_folder/user_test2
getfacl: Removing leading '/' from absolute path names
# file: d_pub_folder/user_test2
# owner: publicuser
# group: publicuser
# flags: -st
user::rwx
group::rwx
group:publicuser:rwx
mask::rwx
other::---
default:user::rwx
default:group::rwx
default:group:publicuser:rwx
default:mask::rwx
default:other::---
user_test1@LINUX:~> getfacl /d_pub_folder/user_test2/*
getfacl: Removing leading '/' from absolute path names
# file: d_pub_folder/user_test2/test_user_test2_03.txt
# owner: user_test2
# group: publicuser
user::rw-
group::rwx #effective:rw-
group:publicuser:rwx #effective:rw-
mask::rw-
other::---
# file: d_pub_folder/user_test2/test_user_test2_04.txt
# owner: user_test2
# group: publicuser
user::rw-
group::rwx #effective:rw-
group:publicuser:rwx #effective:rw-
mask::rw-
other::---
user_test1 can modify the file /d_pub_folder/user_test2/test_user_test2_04.txt ( owned by user_test2 ) using **vi
**
user_test1 can modify the file /d_pub_folder/user_test2/test_user_test2_04.txt ( owned by user_test2 ) using Kate
user_test1 and user_test2 belongs to system groups : “users” and “publicuser”.
These kind of users may do any things in any public folders but cannot delete objects they do not owned.
Note : A script is started by after.local which remove the execute bit (x) of new created file by calling inotifywait .
Any help is welcome.