[OpenAFS] AFS access rights determination

Priyank Porwal porwal@cs.unc.edu
Wed, 26 Jan 2005 11:44:02 -0500


Derek Atkins wrote:

>Priyank Porwal <porwal@cs.unc.edu> writes:
>
>  
>
>>Hi,
>>
>>Is there a way in AFS I can find out what permissions a user has on a 
>>particular directory? 'fs listacl' gives only the explicit rights gives 
>>to a particular user (or group), but not the rights derived from group 
>>memberships. There's an access() function in UNIX to check access to 
>>file or pathnames but it works only for R, W and X modes. Is there any 
>>similar interface for AFS?
>>    
>>
>
>Actually, the access() system call, when used in an AFS context,
>*WILL* check the AFS ACL permissions.  This was fixed (in Linux at
>least) before Linux 1.2 was released.  I know -- I supplied Linus with
>the patches to fix it.
>
>  
>
Thanks Derek,

What mode values/constants should I pass to access() system call to test 
for i,d, l, k, a AFS permissions?