문제

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.

도움이 되었습니까?

해결책

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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top