Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../../usr/man/man3sec/acl_strip.3sec
Real path: /usr/share/man/man3sec/acl_strip.3sec
Zurück
'\" te .\" Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. .TH acl_strip 3SEC "6 Oct 2005" "Oracle Solaris 11.4" "File Access Control Library Functions" .SH NAME acl_strip \- remove all ACLs from a file .SH SYNOPSIS .LP .nf cc [ \fIflag\fR... ] \fIfile\fR... \fB-lsec\fR [ \fIlibrary\fR... ] #include <sys/acl.h> \fBint\fR \fBacl_strip\fR(\fBconst char *\fR\fIpath\fR, \fBuid_t\fR \fIuid\fR, \fBgid_t\fR \fIgid\fR, \fBmode_t\fR \fImode\fR); .fi .SH DESCRIPTION .sp .LP The \fBacl_strip()\fR function removes all ACLs from a file and replaces them with a trivial ACL based on the \fImode\fR argument. After replacing the ACL, the owner and group of the file are set to the values specified by the \fIuid\fR and \fIgid\fR arguments. .SH RETURN VALUES .sp .LP Upon successful completion, \fBacl_strip()\fR returns 0. Otherwise it returns -1 and sets \fBerrno\fR to indicate the error. .SH ERRORS .sp .LP The \fBacl_strip()\fR function will fail if: .sp .ne 2 .mk .na \fB\fBEACCES\fR\fR .ad .RS 16n .rt Search permission is denied on a component of the path prefix of \fIpath\fR. .RE .sp .ne 2 .mk .na \fB\fBEFAULT\fR\fR .ad .RS 16n .rt The \fIpath\fR argument points to an illegal address. .RE .sp .ne 2 .mk .na \fB\fBEINVAL\fR\fR .ad .RS 16n .rt The \fIuid\fR or \fIgid\fR argument is out of range. .RE .sp .ne 2 .mk .na \fB\fBEIO\fR\fR .ad .RS 16n .rt A disk I/O error has occurred while storing or retrieving the ACL. .RE .sp .ne 2 .mk .na \fB\fBELOOP\fR\fR .ad .RS 16n .rt A loop exists in symbolic links encountered during the resolution of the \fIpath\fR argument. .RE .sp .ne 2 .mk .na \fB\fBENAMETOOLONG\fR\fR .ad .RS 16n .rt The length of the \fIpath\fR argument exceeds {\fBPATH_MAX\fR}, or the length of a path component exceeds {\fBNAME_MAX\fR} while \fB_POSIX_NO_TRUNC\fR is in effect. .RE .sp .ne 2 .mk .na \fB\fBENOENT\fR\fR .ad .RS 16n .rt A component of \fIpath\fR does not exist. .RE .sp .ne 2 .mk .na \fB\fBENOTDIR\fR\fR .ad .RS 16n .rt A component of the prefix of \fIpath\fR is not a directory. .RE .sp .ne 2 .mk .na \fB\fBEPERM\fR\fR .ad .RS 16n .rt The effective user ID does not match the owner of the file and the process does not have appropriate privileges. .RE .sp .ne 2 .mk .na \fB\fBEROFS\fR\fR .ad .RS 16n .rt The file system is mounted read-only. .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(7) for descriptions of the following attributes: .sp .TS tab( ) box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPE ATTRIBUTE VALUE _ Interface Stability Committed _ MT-Level MT-Safe .TE .sp .SH SEE ALSO .sp .LP \fBacl_get\fR(3SEC), \fBacl_trivial\fR(3SEC), \fBacl\fR(7), \fBattributes\fR(7)