Lines Matching refs:access
13 access permissions and modification times.
245 * Low-level Directory Access:: AS-Safe functions for directory access.
360 @code{DIR} data types, since the directory access functions do that for
450 was exposed and programs could access the fields. This does not happen
452 access.
551 even when access to the same @var{dirstream} is serialized. But in
1028 use this parameter to access the file. @code{ftw} also calls
1716 network access to a file system on another machine.
1751 * Permission Bits:: How information about a file's access
1753 * Access Permission:: How the system decides who can access a file.
1757 access a file.
1818 This is the last access time for the file. @xref{File Times}.
1821 This is the fractional part of the last access time for the file.
1915 This is the last access time for the file. @xref{File Times}.
1918 This is the fractional part of the last access time for the file.
2133 the access permission bits. This section discusses only the type code,
2135 symbolic link, and so on. For details about access permissions see
2138 There are two ways you can access the file type information in a file
2294 main purpose is for access control.
2296 The file owner and group play a role in determining access because the
2297 file has one set of access permission bits for the owner, another set
2300 details of how access is decided based on this data.
2306 where the file is stored. When you access a remote file system, it
2342 owner. When you access a remote file system, the behavior you encounter
2386 the access permission bits. This section discusses only the access
2396 access permission for the file:
2530 @cindex permission to access a file
2531 @cindex access permission for a file
2532 @cindex file access permission
2534 Recall that the operating system normally decides access permission for
2548 Privileged users, like @samp{root}, can access any file regardless of
2565 you set all the ``other'' access bits in the mask, then newly created
2568 permit such access. In other words, the file creation mask is the
2569 complement of the ordinary access permissions you want to grant.
2590 access permissions, the easiest way to do this is to use @code{fchmod}
2634 The @code{chmod} function sets the access permission bits for the file
2651 This process does not have permission to change the access permissions
2687 else that doesn't really have access permissions.
2690 This process does not have permission to change the access permissions
2701 @cindex testing access permission
2702 @cindex access, testing for
2703 @cindex setuid programs and file access
2705 In some situations it is desirable to allow programs to access files or
2710 allow write access to files like @file{/etc/passwd}, which normally can
2715 not be allowed to access any file to which s/he would not have access
2717 user} would have the necessary access to a file, before it reads or
2720 To do this, use the function @code{access}, which checks for access
2725 There is another way you could check this access, which is easy to
2727 and mimic the system's own access computation. This method is
2728 undesirable because many systems have additional access control
2731 have. Using @code{access} is simple and automatically does whatever is
2734 @code{access} is @emph{only} appropriate to use in setuid programs.
2741 @deftypefun int access (const char *@var{filename}, int @var{how})
2744 The @code{access} function checks to see whether the file named by
2751 process, rather than the @emph{effective} IDs, to check for access
2756 The return value is @code{0} if the access is permitted, and @code{-1}
2758 @code{access} returns true if the requested access is @emph{denied}.)
2766 The access specified by @var{how} is denied.
2777 as the @var{how} argument to the @code{access} function. The values
2804 @cindex file access time
2807 Each file has three time stamps associated with it: its access time,
2818 Reading from a file updates its access time attribute, and writing
2844 specify new access and modification times for a file. It contains the
2849 This is the access time for the file.
2864 If @var{times} is a null pointer, then the access and modification times
2915 This function sets the file access and modification times of the file
2916 @var{filename}. The new file access time is specified by
2919 pointer then the access and modification times of the file are set to
2933 @code{lutimes} sets the file access and modification times of the
2935 @pxref{Symbolic Links}) while @code{utimes} sets the file access and