setfacl(1) Access Control Lists setfacl(1) NAME setfacl - set file access control lists SYNOPSIS setfacl [-bkndRLPvh] [{-m|-x} acl_spec] [{-M|-X} acl_file] file ... setfacl --restore=file DESCRIPTION This utility sets Access Control Lists (ACLs) of files and directories. On the command line, a sequence of commands is followed by ...
by wujing168 - Linux文档专区 - 2009-04-13 11:03:40 阅读(843) 回复(0)
命令名 setfacl - 设置文件访问控制列表 setfacl [-bkndRLPvh] [{-m|-x} acl_spec] [{-M|-X} acl_file] file ... setfacl --restore=file 描述 setfacl用来在命令行里设置ACL。在命令行里,一系列的命令跟随以一系列的文件名。 选项-m和-x后边跟以acl规则。多条acl规则以逗号(,)隔开。选项-M和-X用来从文件或标准输入读取acl规则。 选项--set和--set-file用来设置文件或目录的acl规则,先前的设定将被覆盖。 选项-m(--mo...
当时做系统时候。只有3个分区,boot swap /,所以我就在mount -o remount,acl / 不知道可以不可以 然后我利用setfacl命令设置单个用户 setfacl -m u:nan :rwx 123 系统提示我 setfacl :option -m incomplete 我的命令写错了吗?? 我用setfacl -m m:rw 123可以成功
内核:2.4.21-27,执行setfacl,只能改变owner、group、other的权限,却不能添加对其他指定用户的权限。 如:setfacl -m u::--- test,可以执行,并可改变owner的权限 但,setfacl -m u:testuser:--- test,提示:setfacl: test: Operation not supported,无法授权。 请帮忙,谢谢!
youhuali@hzrndvi01:~/tmp>; uname -a SunOS xxxxxxx 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Fire-880 youhuali@hzrndvi01:~/tmp>; ls -l total 0 -rw-r----- 1 youhuali chorus 0 Jan 12 11:17 test.txt youhuali@hzrndvi01:~/tmp>; setfacl -m g:g4:rw- test.txt test.txt: failed to set acl entries setacl error: Operation not applicable youhuali@hzrndvi01:~/tmp>; setfacl -m u:uucp:rw- test.txt test....
youhuali@hzrndvi01:~/tmp>; uname -a\r\nSunOS xxxxxxx 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Fire-880\r\nyouhuali@hzrndvi01:~/tmp>; ls -l\r\ntotal 0\r\n-rw-r----- 1 youhuali chorus 0 Jan 12 11:17 test.txt\r\nyouhuali@hzrndvi01:~/tmp>; setfacl -m g:g4:rw- test.txt\r\ntest.txt: failed to set acl entries\r\nsetacl error: Operation not applicable\r\nyouhuali@hzrndvi01:~/tmp>; setfacl -m u...