[英]Allow full permission to /var/www/html
We have a group of developers, they login to server with their own username and password. 我们有一组开发人员,他们使用自己的用户名和密码登录服务器。 They all want to edit files in /var/www/html folder.
他们都希望编辑/ var / www / html文件夹中的文件。
I know we can add the developers to www-data group and setuid for /var/www/html folder, then 775 all files. 我知道我们可以将开发人员添加到www-data组和/ uid / var / www / html文件夹的setuid中,然后添加775个所有文件。 But one of the requirement is not to change file permissions.
但要求之一是不更改文件权限。
Is there a way i can give developers full access to /var/www/html with out changing file permissions ? 有没有一种方法可以使开发人员在不更改文件权限的情况下完全访问/ var / www / html?
Is there a way i can give developers full access to /var/www/html with out changing file permissions ?
有没有一种方法可以使开发人员在不更改文件权限的情况下完全访问/ var / www / html?
Yes, there's setfacl
utility (sets Access Control Lists (ACLs) of files and directories). 是的,有
setfacl
实用程序(设置文件和目录的访问控制列表(ACL))。
setfacl -m g:hondev:rwx /var/www/html
The -m
( --modify
) and -M
( --modify-file
) options modify the ACL of a file or directory. -m
(-- --modify
)和-M
(-- --modify-file
)选项可修改文件或目录的ACL 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.