Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何创建一个有两个所有者的文件夹?
我需要我的文件夹拥有两个用户的权限:“ftpuser”和“apache”。我怎样才能做到这一点?
我的操作系统是 Centos 5.9。
你不能。但是您可以使用命令授予对“ftpuser”的访问权限,并且仅限于他
setfacl -R -m u:ftpuser:rwx /path/to/dir setfacl -R -d -m u:ftpuser:rwx /path/to/dir
这需要对此目录的组写访问权限,可以使用命令设置
chmod g+w -R /path/to/dir