Dual owner for directory

146 views Asked by At

How can I make a folder with two owners?

I need my folder to have privileges for two users: "ftpuser" and "apache". How can I do this?

My OS is Centos 5.9.

1

There are 1 answers

0
peterh On BEST ANSWER

You can't. But you can give access to "ftpuser", and only for him, with the command

setfacl -R -m u:ftpuser:rwx /path/to/dir
setfacl -R -d -m u:ftpuser:rwx /path/to/dir

This requires group write access on this dir, which can be set with the command

chmod g+w -R /path/to/dir