AFS
view release on metacpan or search on metacpan
pod/v2/afsperlacl.pod view on Meta::CPAN
the following special strings:
read => rl
write => rlidwk
all => rlidwka
mail => lik
=item B<$flags = AFS::ACL-E<gt>ascii2rights(RIGHTS);>
Converts RIGHTS as expressed in a character string to its internal value
(an integer with the appropriate bits set). Returns -1 if RIGHTS are
not valid (rlidwka, read, write, all, none) or returns the internal
value (int32 with bits set).
=item B<$rights = AFS::ACL-E<gt>rights2ascii(FLAGS);>
Converts the internal value FLAGS to its corresponding character string.
=item B<ATTRIBUTES ACCESS>
=item S< >
=item B<$rights = $acl-E<gt>get_rights(USER);>
=item B<$nrights = $acl-E<gt>nget_rights(USER);>
Returns the access rights for the given USER in the positive(-E<gt>get_rights) or
negative(-E<gt>nget_rights) ACL list.
=item B<$acl-E<gt>set(USER, RIGHTS);>
=item B<$acl-E<gt>nset(USER, RIGHTS);>
Adds the given USER and its access RIGHTS to the positive(-E<gt>set) or
negative(-E<gt>nset) ACL list.
=item B<$acl-E<gt>remove(USER);>
=item B<$acl-E<gt>nremove(USER);>
Removes the given USER and its access rights from the positive(-E<gt>remove) or
negative(-E<gt>nremove) ACL list.
=item B<$acl-E<gt>empty;>
Removes all users and their access rights from the positive and negative ACL list.
=item B<$acl-E<gt>clear;>
=item B<$acl-E<gt>nclear;>
Removes all users and their access rights from the positive(-E<gt>clear) or
negative(-E<gt>nclear) ACL list.
=item B<@users = $acl-E<gt>get_users;>
=item B<@nusers = $acl-E<gt>nget_users;>
Returns users from the positive(-E<gt>get_users) or negative(-E<gt>nget_users)
ACL list.
=item B<$pos = $acl-E<gt>length;>
=item B<$npos = $acl-E<gt>nlength;>
Returns the number of users in the positive(-E<gt>length)
or negative(-E<gt>nlength) ACL list.
=item B<$acl-E<gt>exists(USER);>
=item B<$acl-E<gt>nexists(USER);>
Returns 1 if the given USER exists in the positive(-E<gt>exists)
or negative(-E<gt>nexists) ACL list.
=item B<$acl-E<gt>is_clean>
Returns 1 if the ACL list is clean, or 0 when the ACL list needs
cleaning. An ACL list needs cleaning if it contains entries
referencing nonexistant PTS entries, which are represented by a
numeric ID in the ACL instead of a name.
=item B<INSTANCE METHODS>
=item S< >
=item B<$acl-E<gt>add(NEWACL);>
Adds all entries of the ACL list NEWACL to the ACL list $acl.
=item B<$ok = $acl-E<gt>apply(PATH [, FOLLOW]);>
Sets the ACL list for the given PATH. This call replaces the existing ACL
list with the new ACL list $acl.
=item B<$ok = $acl-E<gt>modifyacl(PATH, [, FOLLOW]);>
Sets the ACL to the union of the given $acl list and the current ACL
of the PATH. An access right of I<none> or an empty string will cause
an entry to be removed from the ACL.
=back
=head1 CURRENT AUTHOR
Norbert E. Gruener E<lt>nog@MPA-Garching.MPG.deE<gt>
=head1 AUTHOR EMERITUS
Roland Schemers E<lt>schemers@slapshot.stanford.eduE<gt>
=head1 COPYRIGHT AND LICENSE
Copyright (c) 2001-2011 Norbert E. Gruener <nog@MPA-Garching.MPG.de>.
All rights reserved.
Copyright (c) 1994 Board of Trustees, Leland Stanford Jr. University.
All rights reserved.
Most of the explanations in this document are taken from the original
AFS documentation.
AFS-3 Programmer's Reference:
File Server/Cache Manager Interface
Edward R. Zayas
Copyright (c) 1991 Transarc Corporation.
All rights reserved.
( run in 1.739 second using v1.01-cache-2.11-cpan-0d23b851a93 )