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? > > > [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]#What file system are you using? James Pearson
Hi, James,
The file system is xfs (/dev/mapper/centos-home xfs 1891292900
1556745108 334547792 83% /home)
Thanks and best regards,
Muiz
At 2015-03-23 19:36:02, "James Pearson" <james-p at
moving-picture.com> wrote:>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?
>>
>>
>> [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]#
>
>What file system are you using?
>
>James Pearson
>_______________________________________________
>CentOS mailing list
>CentOS at centos.org
>http://lists.centos.org/mailman/listinfo/centos
Hi, How many user's you have assigned on that directory? --Regards Ashishkumar S. Yadav On Tue, Mar 24, 2015 at 5:30 AM, muiz <muiz at 163.com> wrote:> Hi, James, > The file system is xfs (/dev/mapper/centos-home xfs 1891292900 > 1556745108 334547792 83% /home) > > > Thanks and best regards, > Muiz > > At 2015-03-23 19:36:02, "James Pearson" <james-p at moving-picture.com> > wrote: > >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? > >> > >> > >> [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]# > > > >What file system are you using? > > > >James Pearson > >_______________________________________________ > >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 >
muiz wrote:> Hi, James, > The file system is xfs (/dev/mapper/centos-home xfs 1891292900 1556745108 334547792 83% /home)XFS has a low limit on the number of entries in an ACL (about 20) However, I don't know why you are getting the error 'Argument list too long' - I get 'Operation not permitted' when I try to and an entry that goes over the limit ... I believe more recent versions of the XFS code support more ACL entries (may be more recent than that used by RHEL/CentOS 7 ?) James Pearson