ls -la
:
total 0
drwxrwxr-x+ 2 root root 4096 Jul 11 21:40 ./
drwxrwxr-x 2 root root 4096 Jul 11 21:40 ../
权限.
有一个加号,因此 ACL 处于活动状态...
getfacl .
:
# file: .
# owner: root
# group: root
user::rwx
group::rwx
other::r-x
default:user::rwx
default:group::rwx
default:group:package-maintainer:rwx
default:mask::rwx
default:other::r-x
软件包维护者组肯定对该目录有完全访问权限......
groups
:
group1 group2 package-maintainer
我绝对是软件包维护者小组的成员......
wget
压缩包:
--2022-07-11 22:08:26-- https://facstaff.susqu.edu/brakke/evolver/downloads/evolver-2.70.tar.gz
Resolving facstaff.susqu.edu (facstaff.susqu.edu)... 192.70.186.45
Connecting to facstaff.susqu.edu (facstaff.susqu.edu)|192.70.186.45|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3157309 (3.0M) [application/x-gzip]
evolver-2.70.tar.gz: Permission denied
Cannot write to 'evolver-2.70.tar.gz' (Success).
我已经尝试注销并重新登录。发生了什么?
答案1
ACL 条目default:
只会复制到目录中新创建的项目,但对目录本身的权限没有影响。(在 Windows 术语中,它们是“仅继承”条目。)
您需要添加第二个 ACL 条目来group:package-maintainer:rwx
定义允许您创建该文件的有效权限。