[CentOS] Centos 6: setfacl: .: Argument list too long

Mon Mar 23 01:15:34 UTC 2015
muiz <muiz at 163.com>

HI, Robert, 


   Thanks very much for your reply.
   I tried but failed:


   [root at s1 abc]# find . -name "." -print0 | xargs -0 setfacl -m u:user30:rwx 
   setfacl: .: Argument list too long
   [root at s1 abc]#




Regards,
Muiz

At 2015-03-20 16:50:41, "robert rottermann" <robert at redcor.ch> wrote:
>On 20.03.2015 02:14, muiz wrote:
>> Dear all,
>>
>>
>>   I have a Centos 6 (64bit) server used for samba and ACL control.
>>   There has a folder which a lot of user can access, when I add a new user's ACL, but failed, do you know how to resolve this problem?
>
>use xargs like in:
>
>|find . -name "*.pdf" -print0 | xargs -0 RUNACOMMAND
>robert
>|
>
>
>>
>>
>> [root at s1 abc]# getfacl /abc
>> # file: abc
>> # owner: root
>> # group: root
>> user::rwx
>> user:user01:---
>> user:user02:---
>> user:user03:---
>> ...
>> user:user25:---
>> group::r-x
>> mask::r-x
>> other::r-x
>> [root at s1 abc]# setfacl -m u:user30:rwx /abc
>> setfacl: .: Argument list too long
>> [root at s1 abc]#
>>
>>
>>
>>
>> Thanks and best regards,
>> muiz
>> _______________________________________________
>> CentOS mailing list
>> CentOS at centos.org
>> http://lists.centos.org/mailman/listinfo/centos
>>
>
>_______________________________________________
>CentOS mailing list
>CentOS at centos.org
>http://lists.centos.org/mailman/listinfo/centos