In an ubuntu server 18.04, I have 2 users: userA and userB. There is a folder
/home/userA/data
I am going to get read, write, execute access of data
to userB.
unfortunately the command
chown userB /home/userA/data
does not work.
In an ubuntu server 18.04, I have 2 users: userA and userB. There is a folder
/home/userA/data
I am going to get read, write, execute access of data
to userB.
unfortunately the command
chown userB /home/userA/data
does not work.
Use setfacl
https://www.2daygeek.com/how-to-configure-access-control-lists-acls-setfacl-getfacl-linux/#
setfacl -m u:userB:rwx /home/userA/data
setfacl -m u:userB:x /home/userA
setfacl -m u:userB:x /home