0

I need user_a to have read/write permission in /home/user_b without changing the level of access of user_b to its own home folder. Alternatively, have user_a have the same level of authorization than user_b within user_b home folder.

user_a is the "admin" account in my case and I need to copy files in the home folder of user_b with user_a account because I'm connecting using SSH and user_b is not allowed to SSH into the server.

Added bonus would be if it could be done automatically for everything in that folder in the future.

Chapo
  • 203

1 Answers1

0

This is to add access for the directory only:

setfacl -m u:user_a:rwX /home/user_b

This is to add access for everything within the directory:

setfacl -R -m u:user_a:rwX /home/user_b

(of course this should be run from user_b or root account)

raj
  • 11,409