Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Set ACL (Debian9)

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Access Control Lists (ACL) version

Debian 9.4

target

Webdav uses www-data to access files and directories of ~ / files, but the user "hoge" also needs to access it.

That is, the directory ~ / files is to be accessed by www-data and user "hoge".

Set up

If there is no acl, use the apt-get command to download the acl package.

Write "default" so that the new directory or file has the same ACL.

$sudo setfacl-R-m default:u:www-data:rwx ~ / files $sudo setfacl-R-m default:g:www-data:rwx ~ / files $sudo setfacl-R-m default:u:hoge:rwx ~ / files $getfacl ~ / filesgetfacl: Removing leading'/ 'from absolute path names# file: home/hoge/files# owner: www-data# group: www-datauser::rwxuser:www- Data:rwxuser:hoge:rwxgroup::r-xgroup:www-data:rwxmask::rwxother::r-xdefault:user::rwxdefault:user:www-data:rwxdefault:user:hoge:rwxdefault:group::r-xdefault:group:www-data:rwxdefault:mask::rwxdefault:other::r-x

Use the getfacl command to confirm the ACL settings.

reference

Permissions-Debian Wiki

Setfacl

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report