Debian Codegraph @

templates/man2/access.2.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:17+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "access"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "access, faccessat, faccessat2 - check user's permissions for a file"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "LIBRARY"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "Standard C library (I<libc>,\\ I<-lc>)"
63 msgstr ""
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "SYNOPSIS"
70 msgstr ""
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid "B<#include E<lt>unistd.hE<gt>>\n"
77 msgstr ""
78
79 #. type: Plain text
80 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
81 #: opensuse-tumbleweed
82 #, no-wrap
83 msgid "B<int access(const char *>I<path>B<, int >I<mode>B<);>\n"
84 msgstr ""
85
86 #. type: Plain text
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 #, no-wrap
90 msgid ""
91 "B<#include E<lt>fcntl.hE<gt>> /* Definition of B<AT_*> constants */\n"
92 "B<#include E<lt>unistd.hE<gt>>\n"
93 msgstr ""
94
95 #. type: Plain text
96 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
97 #: opensuse-tumbleweed
98 #, no-wrap
99 msgid ""
100 "B<int faccessat(int >I<dirfd>B<, const char *>I<path>B<, int >I<mode>B<, int >I<flags>B<);>\n"
101 " /* But see C library/kernel differences, below */\n"
102 msgstr ""
103
104 #. type: Plain text
105 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
106 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
107 #, no-wrap
108 msgid ""
109 "B<#include E<lt>fcntl.hE<gt>> /* Definition of B<AT_*> constants */\n"
110 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
111 "B<#include E<lt>unistd.hE<gt>>\n"
112 msgstr ""
113
114 #. type: Plain text
115 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
116 #: opensuse-tumbleweed
117 #, no-wrap
118 msgid ""
119 "B<int syscall(SYS_faccessat2,>\n"
120 "B< int >I<dirfd>B<, const char *>I<path>B<, int >I<mode>B<, int >I<flags>B<);>\n"
121 msgstr ""
122
123 #. type: Plain text
124 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
125 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
126 msgid ""
127 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
128 msgstr ""
129
130 #. type: Plain text
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 msgid "B<faccessat>():"
134 msgstr ""
135
136 #. type: Plain text
137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
139 #, no-wrap
140 msgid ""
141 " Since glibc 2.10:\n"
142 " _POSIX_C_SOURCE E<gt>= 200809L\n"
143 " Before glibc 2.10:\n"
144 " _ATFILE_SOURCE\n"
145 msgstr ""
146
147 #. type: SH
148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
150 #, no-wrap
151 msgid "DESCRIPTION"
152 msgstr ""
153
154 #. type: Plain text
155 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
156 #: opensuse-tumbleweed
157 msgid ""
158 "B<access>() checks whether the calling process can access the file "
159 "I<path>. If I<path> is a symbolic link, it is dereferenced."
160 msgstr ""
161
162 #. F_OK is defined as 0 on every system that I know of.
163 #. type: Plain text
164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
166 msgid ""
167 "The I<mode> specifies the accessibility check(s) to be performed, and is "
168 "either the value B<F_OK>, or a mask consisting of the bitwise OR of one or "
169 "more of B<R_OK>, B<W_OK>, and B<X_OK>. B<F_OK> tests for the existence of "
170 "the file. B<R_OK>, B<W_OK>, and B<X_OK> test whether the file exists and "
171 "grants read, write, and execute permissions, respectively."
172 msgstr ""
173
174 #. type: Plain text
175 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
176 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
177 msgid ""
178 "The check is done using the calling process's I<real> UID and GID, rather "
179 "than the effective IDs as is done when actually attempting an operation "
180 "(e.g., B<open>(2)) on the file. Similarly, for the root user, the check "
181 "uses the set of permitted capabilities rather than the set of effective "
182 "capabilities; and for non-root users, the check uses an empty set of "
183 "capabilities."
184 msgstr ""
185
186 #. type: Plain text
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 msgid ""
190 "This allows set-user-ID programs and capability-endowed programs to easily "
191 "determine the invoking user's authority. In other words, B<access>() does "
192 "not answer the \"can I read/write/execute this file?\" question. It answers "
193 "a slightly different question: \"(assuming I'm a setuid binary) can I<the "
194 "user who invoked me> read/write/execute this file?\", which gives set-user-"
195 "ID programs the possibility to prevent malicious users from causing them to "
196 "read files which users shouldn't be able to read."
197 msgstr ""
198
199 #. type: Plain text
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 msgid ""
203 "If the calling process is privileged (i.e., its real UID is zero), then an "
204 "B<X_OK> check is successful for a regular file if execute permission is "
205 "enabled for any of the file owner, group, or other."
206 msgstr ""
207
208 #. type: SS
209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
211 #, no-wrap
212 msgid "faccessat()"
213 msgstr ""
214
215 #. type: Plain text
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 msgid ""
219 "B<faccessat>() operates in exactly the same way as B<access>(), except for "
220 "the differences described here."
221 msgstr ""
222
223 #. type: Plain text
224 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
225 #: opensuse-tumbleweed
226 msgid ""
227 "If I<path> is relative, then it is interpreted relative to the directory "
228 "referred to by the file descriptor I<dirfd> (rather than relative to the "
229 "current working directory of the calling process, as is done by B<access>() "
230 "for a relative pathname)."
231 msgstr ""
232
233 #. type: Plain text
234 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
235 #: opensuse-tumbleweed
236 msgid ""
237 "If I<path> is relative and I<dirfd> is the special value B<AT_FDCWD>, then "
238 "I<path> is interpreted relative to the current working directory of the "
239 "calling process (like B<access>())."
240 msgstr ""
241
242 #. type: Plain text
243 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
244 #: opensuse-tumbleweed
245 msgid "If I<path> is absolute, then I<dirfd> is ignored."
246 msgstr ""
247
248 #. type: Plain text
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 msgid ""
252 "I<flags> is constructed by ORing together zero or more of the following "
253 "values:"
254 msgstr ""
255
256 #. type: TP
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 #, no-wrap
260 msgid "B<AT_EACCESS>"
261 msgstr ""
262
263 #. type: Plain text
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 msgid ""
267 "Perform access checks using the effective user and group IDs. By default, "
268 "B<faccessat>() uses the real IDs (like B<access>())."
269 msgstr ""
270
271 #. type: TP
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 #, no-wrap
275 msgid "B<AT_EMPTY_PATH> (since Linux 5.8)"
276 msgstr ""
277
278 #. type: Plain text
279 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
280 #: opensuse-tumbleweed
281 msgid ""
282 "If I<path> is an empty string, operate on the file referred to by I<dirfd> "
283 "(which may have been obtained using the B<open>(2) B<O_PATH> flag). In "
284 "this case, I<dirfd> can refer to any type of file, not just a directory. If "
285 "I<dirfd> is B<AT_FDCWD>, the call operates on the current working "
286 "directory. This flag is Linux-specific; define B<_GNU_SOURCE> to obtain its "
287 "definition."
288 msgstr ""
289
290 #. type: TP
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 #, no-wrap
294 msgid "B<AT_SYMLINK_NOFOLLOW>"
295 msgstr ""
296
297 #. type: Plain text
298 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
299 #: opensuse-tumbleweed
300 msgid ""
301 "If I<path> is a symbolic link, do not dereference it: instead return "
302 "information about the link itself."
303 msgstr ""
304
305 #. type: Plain text
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 msgid "See B<openat>(2) for an explanation of the need for B<faccessat>()."
309 msgstr ""
310
311 #. type: SS
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 #, no-wrap
315 msgid "faccessat2()"
316 msgstr ""
317
318 #. type: Plain text
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 msgid ""
322 "The description of B<faccessat>() given above corresponds to POSIX.1 and to "
323 "the implementation provided by glibc. However, the glibc implementation was "
324 "an imperfect emulation (see BUGS) that papered over the fact that the raw "
325 "Linux B<faccessat>() system call does not have a I<flags> argument. To "
326 "allow for a proper implementation, Linux 5.8 added the B<faccessat2>() "
327 "system call, which supports the I<flags> argument and allows a correct "
328 "implementation of the B<faccessat>() wrapper function."
329 msgstr ""
330
331 #. type: SH
332 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
333 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
334 #, no-wrap
335 msgid "RETURN VALUE"
336 msgstr ""
337
338 #. type: Plain text
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 msgid ""
342 "On success (all requested permissions granted, or I<mode> is B<F_OK> and the "
343 "file exists), zero is returned. On error (at least one bit in I<mode> asked "
344 "for a permission that is denied, or I<mode> is B<F_OK> and the file does not "
345 "exist, or some other error occurred), -1 is returned, and I<errno> is set to "
346 "indicate the error."
347 msgstr ""
348
349 #. type: SH
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 #, no-wrap
353 msgid "ERRORS"
354 msgstr ""
355
356 #. type: TP
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 #, no-wrap
360 msgid "B<EACCES>"
361 msgstr ""
362
363 #. type: Plain text
364 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
365 #: opensuse-tumbleweed
366 msgid ""
367 "The requested access would be denied to the file, or search permission is "
368 "denied for one of the directories in the path prefix of I<path>. (See also "
369 "B<path_resolution>(7).)"
370 msgstr ""
371
372 #. type: TP
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 #, no-wrap
376 msgid "B<EBADF>"
377 msgstr ""
378
379 #. type: Plain text
380 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
381 #: opensuse-tumbleweed
382 msgid ""
383 "(B<faccessat>()) I<path> is relative but I<dirfd> is neither B<AT_FDCWD> "
384 "(B<faccessat>()) nor a valid file descriptor."
385 msgstr ""
386
387 #. type: TP
388 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
389 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
390 #, no-wrap
391 msgid "B<EFAULT>"
392 msgstr ""
393
394 #. type: Plain text
395 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
396 #: opensuse-tumbleweed
397 msgid "I<path> points outside your accessible address space."
398 msgstr ""
399
400 #. type: TP
401 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
402 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
403 #, no-wrap
404 msgid "B<EINVAL>"
405 msgstr ""
406
407 #. type: Plain text
408 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
409 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
410 msgid "I<mode> was incorrectly specified."
411 msgstr ""
412
413 #. type: Plain text
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 msgid "(B<faccessat>()) Invalid flag specified in I<flags>."
417 msgstr ""
418
419 #. type: TP
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 #, no-wrap
423 msgid "B<EIO>"
424 msgstr ""
425
426 #. type: Plain text
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 msgid "An I/O error occurred."
430 msgstr ""
431
432 #. type: TP
433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
435 #, no-wrap
436 msgid "B<ELOOP>"
437 msgstr ""
438
439 #. type: Plain text
440 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
441 #: opensuse-tumbleweed
442 msgid "Too many symbolic links were encountered in resolving I<path>."
443 msgstr ""
444
445 #. type: TP
446 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
447 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
448 #, no-wrap
449 msgid "B<ENAMETOOLONG>"
450 msgstr ""
451
452 #. type: Plain text
453 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
454 #: opensuse-tumbleweed
455 msgid "I<path> is too long."
456 msgstr ""
457
458 #. type: TP
459 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
460 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
461 #, no-wrap
462 msgid "B<ENOENT>"
463 msgstr ""
464
465 #. type: Plain text
466 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
467 #: opensuse-tumbleweed
468 msgid "A component of I<path> does not exist or is a dangling symbolic link."
469 msgstr ""
470
471 #. type: TP
472 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
473 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
474 #, no-wrap
475 msgid "B<ENOMEM>"
476 msgstr ""
477
478 #. type: Plain text
479 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
480 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
481 msgid "Insufficient kernel memory was available."
482 msgstr ""
483
484 #. type: TP
485 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
486 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
487 #, no-wrap
488 msgid "B<ENOTDIR>"
489 msgstr ""
490
491 #. type: Plain text
492 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
493 #: opensuse-tumbleweed
494 msgid ""
495 "A component used as a directory in I<path> is not, in fact, a directory."
496 msgstr ""
497
498 #. type: Plain text
499 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
500 #: opensuse-tumbleweed
501 msgid ""
502 "(B<faccessat>()) I<path> is relative and I<dirfd> is a file descriptor "
503 "referring to a file other than a directory."
504 msgstr ""
505
506 #. type: TP
507 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
508 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
509 #, no-wrap
510 msgid "B<EPERM>"
511 msgstr ""
512
513 #. type: Plain text
514 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
515 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
516 msgid ""
517 "Write permission was requested to a file that has the immutable flag set. "
518 "See also B<FS_IOC_SETFLAGS>(2const)."
519 msgstr ""
520
521 #. type: TP
522 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
523 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
524 #, no-wrap
525 msgid "B<EROFS>"
526 msgstr ""
527
528 #. type: Plain text
529 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
530 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
531 msgid "Write permission was requested for a file on a read-only filesystem."
532 msgstr ""
533
534 #. type: TP
535 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
536 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
537 #, no-wrap
538 msgid "B<ETXTBSY>"
539 msgstr ""
540
541 #. type: Plain text
542 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
543 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
544 msgid "Write access was requested to an executable which is being executed."
545 msgstr ""
546
547 #. type: SH
548 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
549 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
550 #, no-wrap
551 msgid "VERSIONS"
552 msgstr ""
553
554 #. HPU-UX 11 and Tru64 5.1 do this.
555 #. type: Plain text
556 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
557 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
558 msgid ""
559 "If the calling process has appropriate privileges (i.e., is superuser), "
560 "POSIX.1-2001 permits an implementation to indicate success for an B<X_OK> "
561 "check even if none of the execute file permission bits are set. Linux does "
562 "not do this."
563 msgstr ""
564
565 #. type: SS
566 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
567 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
568 #, no-wrap
569 msgid "C library/kernel differences"
570 msgstr ""
571
572 #. type: Plain text
573 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
574 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
575 msgid ""
576 "The raw B<faccessat>() system call takes only the first three arguments. "
577 "The B<AT_EACCESS> and B<AT_SYMLINK_NOFOLLOW> flags are actually implemented "
578 "within the glibc wrapper function for B<faccessat>(). If either of these "
579 "flags is specified, then the wrapper function employs B<fstatat>(2) to "
580 "determine access permissions, but see BUGS."
581 msgstr ""
582
583 #. type: SS
584 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
585 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
586 #, no-wrap
587 msgid "glibc notes"
588 msgstr ""
589
590 #. type: Plain text
591 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
592 #: opensuse-tumbleweed
593 msgid ""
594 "On older kernels where B<faccessat>() is unavailable (and when the "
595 "B<AT_EACCESS> and B<AT_SYMLINK_NOFOLLOW> flags are not specified), the glibc "
596 "wrapper function falls back to the use of B<access>(). When I<path> is "
597 "relative, glibc constructs a pathname based on the symbolic link in I</proc/"
598 "self/fd> that corresponds to the I<dirfd> argument."
599 msgstr ""
600
601 #. type: SH
602 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
603 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
604 #, no-wrap
605 msgid "STANDARDS"
606 msgstr ""
607
608 #. type: TP
609 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
610 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
611 #, no-wrap
612 msgid "B<access>()"
613 msgstr ""
614
615 #. type: TP
616 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
617 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
618 #, no-wrap
619 msgid "B<faccessat>()"
620 msgstr ""
621
622 #. type: Plain text
623 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
624 #: opensuse-tumbleweed
625 msgid "POSIX.1-2024."
626 msgstr ""
627
628 #. type: TP
629 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
630 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
631 #, no-wrap
632 msgid "B<faccessat2>()"
633 msgstr ""
634
635 #. type: Plain text
636 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
637 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
638 msgid "Linux."
639 msgstr ""
640
641 #. type: SH
642 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
643 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
644 #, no-wrap
645 msgid "HISTORY"
646 msgstr ""
647
648 #. type: Plain text
649 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
650 #: opensuse-tumbleweed
651 msgid "4.3BSD, SVr4, POSIX.1-1988."
652 msgstr ""
653
654 #. type: Plain text
655 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
656 #: opensuse-tumbleweed
657 msgid "Linux 2.6.16, glibc 2.4, POSIX.1-2008."
658 msgstr ""
659
660 #. type: Plain text
661 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
662 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
663 msgid "Linux 5.8."
664 msgstr ""
665
666 #. type: SH
667 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
668 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
669 #, no-wrap
670 msgid "NOTES"
671 msgstr ""
672
673 #. type: Plain text
674 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
675 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
676 msgid ""
677 "B<Warning>: Using these calls to check if a user is authorized to, for "
678 "example, open a file before actually doing so using B<open>(2) creates a "
679 "security hole, because the user might exploit the short time interval "
680 "between checking and opening the file to manipulate it. B<For this reason, "
681 "the use of this system call should be avoided>. (In the example just "
682 "described, a safer alternative would be to temporarily switch the process's "
683 "effective user ID to the real ID and then call B<open>(2).)"
684 msgstr ""
685
686 #. type: Plain text
687 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
688 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
689 msgid ""
690 "B<access>() always dereferences symbolic links. If you need to check the "
691 "permissions on a symbolic link, use B<faccessat>() with the flag "
692 "B<AT_SYMLINK_NOFOLLOW>."
693 msgstr ""
694
695 #. type: Plain text
696 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
697 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
698 msgid ""
699 "These calls return an error if any of the access types in I<mode> is denied, "
700 "even if some of the other access types in I<mode> are permitted."
701 msgstr ""
702
703 #. type: Plain text
704 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
705 #: opensuse-tumbleweed
706 msgid ""
707 "A file is accessible only if the permissions on each of the directories in "
708 "the path prefix of I<path> grant search (i.e., execute) access. If any "
709 "directory is inaccessible, then the B<access>() call fails, regardless of "
710 "the permissions on the file itself."
711 msgstr ""
712
713 #. type: Plain text
714 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
715 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
716 msgid ""
717 "Only access bits are checked, not the file type or contents. Therefore, if "
718 "a directory is found to be writable, it probably means that files can be "
719 "created in the directory, and not that the directory can be written as a "
720 "file. Similarly, a DOS file may be reported as executable, but the "
721 "B<execve>(2) call will still fail."
722 msgstr ""
723
724 #. type: Plain text
725 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
726 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
727 msgid ""
728 "These calls may not work correctly on NFSv2 filesystems with UID mapping "
729 "enabled, because UID mapping is done on the server and hidden from the "
730 "client, which checks permissions. (NFS versions 3 and higher perform the "
731 "check on the server.) Similar problems can occur to FUSE mounts."
732 msgstr ""
733
734 #. type: SH
735 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
736 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
737 #, no-wrap
738 msgid "BUGS"
739 msgstr ""
740
741 #. type: Plain text
742 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
743 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
744 msgid ""
745 "Because the Linux kernel's B<faccessat>() system call does not support a "
746 "I<flags> argument, the glibc B<faccessat>() wrapper function provided in "
747 "glibc 2.32 and earlier emulates the required functionality using a "
748 "combination of the B<faccessat>() system call and B<fstatat>(2). However, "
749 "this emulation does not take ACLs into account. Starting with glibc 2.33, "
750 "the wrapper function avoids this bug by making use of the B<faccessat2>() "
751 "system call where it is provided by the underlying kernel."
752 msgstr ""
753
754 #. This behavior appears to have been an implementation accident.
755 #. type: Plain text
756 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
757 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
758 msgid ""
759 "In Linux 2.4 (and earlier) there is some strangeness in the handling of "
760 "B<X_OK> tests for superuser. If all categories of execute permission are "
761 "disabled for a nondirectory file, then the only B<access>() test that "
762 "returns -1 is when I<mode> is specified as just B<X_OK>; if B<R_OK> or "
763 "B<W_OK> is also specified in I<mode>, then B<access>() returns 0 for such "
764 "files. Early Linux 2.6 (up to and including Linux 2.6.3) also behaved in "
765 "the same way as Linux 2.4."
766 msgstr ""
767
768 #. type: Plain text
769 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
770 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
771 msgid ""
772 "Before Linux 2.6.20, these calls ignored the effect of the B<MS_NOEXEC> flag "
773 "if it was used to B<mount>(2) the underlying filesystem. Since Linux "
774 "2.6.20, the B<MS_NOEXEC> flag is honored."
775 msgstr ""
776
777 #. type: SH
778 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
779 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
780 #, no-wrap
781 msgid "SEE ALSO"
782 msgstr ""
783
784 #. type: Plain text
785 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
786 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
787 msgid ""
788 "B<chmod>(2), B<chown>(2), B<open>(2), B<setgid>(2), B<setuid>(2), "
789 "B<stat>(2), B<euidaccess>(3), B<credentials>(7), B<path_resolution>(7), "
790 "B<symlink>(7)"
791 msgstr ""
792
793 #. type: TH
794 #: debian-trixie
795 #, no-wrap
796 msgid "2024-06-13"
797 msgstr ""
798
799 #. type: TH
800 #: debian-trixie
801 #, no-wrap
802 msgid "Linux man-pages 6.9.1"
803 msgstr ""
804
805 #. type: Plain text
806 #: debian-trixie
807 msgid "Standard C library (I<libc>, I<-lc>)"
808 msgstr ""
809
810 #. type: Plain text
811 #: debian-trixie fedora-44 fedora-rawhide
812 #, no-wrap
813 msgid "B<int access(const char *>I<pathname>B<, int >I<mode>B<);>\n"
814 msgstr ""
815
816 #. type: Plain text
817 #: debian-trixie fedora-44 fedora-rawhide
818 #, no-wrap
819 msgid ""
820 "B<int faccessat(int >I<dirfd>B<, const char *>I<pathname>B<, int >I<mode>B<, int >I<flags>B<);>\n"
821 " /* But see C library/kernel differences, below */\n"
822 msgstr ""
823
824 #. type: Plain text
825 #: debian-trixie fedora-44 fedora-rawhide
826 #, no-wrap
827 msgid ""
828 "B<int syscall(SYS_faccessat2,>\n"
829 "B< int >I<dirfd>B<, const char *>I<pathname>B<, int >I<mode>B<, int >I<flags>B<);>\n"
830 msgstr ""
831
832 #. type: Plain text
833 #: debian-trixie fedora-44 fedora-rawhide
834 msgid ""
835 "B<access>() checks whether the calling process can access the file "
836 "I<pathname>. If I<pathname> is a symbolic link, it is dereferenced."
837 msgstr ""
838
839 #. type: Plain text
840 #: debian-trixie fedora-44 fedora-rawhide
841 msgid ""
842 "If the pathname given in I<pathname> is relative, then it is interpreted "
843 "relative to the directory referred to by the file descriptor I<dirfd> "
844 "(rather than relative to the current working directory of the calling "
845 "process, as is done by B<access>() for a relative pathname)."
846 msgstr ""
847
848 #. type: Plain text
849 #: debian-trixie fedora-44 fedora-rawhide
850 msgid ""
851 "If I<pathname> is relative and I<dirfd> is the special value B<AT_FDCWD>, "
852 "then I<pathname> is interpreted relative to the current working directory of "
853 "the calling process (like B<access>())."
854 msgstr ""
855
856 #. type: Plain text
857 #: debian-trixie fedora-44 fedora-rawhide
858 msgid "If I<pathname> is absolute, then I<dirfd> is ignored."
859 msgstr ""
860
861 #. type: Plain text
862 #: debian-trixie fedora-44 fedora-rawhide
863 msgid ""
864 "If I<pathname> is an empty string, operate on the file referred to by "
865 "I<dirfd> (which may have been obtained using the B<open>(2) B<O_PATH> "
866 "flag). In this case, I<dirfd> can refer to any type of file, not just a "
867 "directory. If I<dirfd> is B<AT_FDCWD>, the call operates on the current "
868 "working directory. This flag is Linux-specific; define B<_GNU_SOURCE> to "
869 "obtain its definition."
870 msgstr ""
871
872 #. type: Plain text
873 #: debian-trixie fedora-44 fedora-rawhide
874 msgid ""
875 "If I<pathname> is a symbolic link, do not dereference it: instead return "
876 "information about the link itself."
877 msgstr ""
878
879 #. type: Plain text
880 #: debian-trixie fedora-44 fedora-rawhide
881 msgid ""
882 "The requested access would be denied to the file, or search permission is "
883 "denied for one of the directories in the path prefix of I<pathname>. (See "
884 "also B<path_resolution>(7).)"
885 msgstr ""
886
887 #. type: Plain text
888 #: debian-trixie fedora-44 fedora-rawhide
889 msgid ""
890 "(B<faccessat>()) I<pathname> is relative but I<dirfd> is neither "
891 "B<AT_FDCWD> (B<faccessat>()) nor a valid file descriptor."
892 msgstr ""
893
894 #. type: Plain text
895 #: debian-trixie fedora-44 fedora-rawhide
896 msgid "I<pathname> points outside your accessible address space."
897 msgstr ""
898
899 #. type: Plain text
900 #: debian-trixie fedora-44 fedora-rawhide
901 msgid "Too many symbolic links were encountered in resolving I<pathname>."
902 msgstr ""
903
904 #. type: Plain text
905 #: debian-trixie fedora-44 fedora-rawhide
906 msgid "I<pathname> is too long."
907 msgstr ""
908
909 #. type: Plain text
910 #: debian-trixie fedora-44 fedora-rawhide
911 msgid ""
912 "A component of I<pathname> does not exist or is a dangling symbolic link."
913 msgstr ""
914
915 #. type: Plain text
916 #: debian-trixie fedora-44 fedora-rawhide
917 msgid ""
918 "A component used as a directory in I<pathname> is not, in fact, a directory."
919 msgstr ""
920
921 #. type: Plain text
922 #: debian-trixie fedora-44 fedora-rawhide
923 msgid ""
924 "(B<faccessat>()) I<pathname> is relative and I<dirfd> is a file descriptor "
925 "referring to a file other than a directory."
926 msgstr ""
927
928 #. type: Plain text
929 #: debian-trixie fedora-44 fedora-rawhide
930 msgid ""
931 "On older kernels where B<faccessat>() is unavailable (and when the "
932 "B<AT_EACCESS> and B<AT_SYMLINK_NOFOLLOW> flags are not specified), the glibc "
933 "wrapper function falls back to the use of B<access>(). When I<pathname> is "
934 "a relative pathname, glibc constructs a pathname based on the symbolic link "
935 "in I</proc/self/fd> that corresponds to the I<dirfd> argument."
936 msgstr ""
937
938 #. type: Plain text
939 #: debian-trixie fedora-44 fedora-rawhide
940 msgid "POSIX.1-2008."
941 msgstr ""
942
943 #. type: Plain text
944 #: debian-trixie fedora-44 fedora-rawhide
945 msgid "SVr4, 4.3BSD, POSIX.1-2001."
946 msgstr ""
947
948 #. type: Plain text
949 #: debian-trixie fedora-44 fedora-rawhide
950 msgid "Linux 2.6.16, glibc 2.4."
951 msgstr ""
952
953 #. type: Plain text
954 #: debian-trixie fedora-44 fedora-rawhide
955 msgid ""
956 "A file is accessible only if the permissions on each of the directories in "
957 "the path prefix of I<pathname> grant search (i.e., execute) access. If any "
958 "directory is inaccessible, then the B<access>() call fails, regardless of "
959 "the permissions on the file itself."
960 msgstr ""
961
962 #. type: TH
963 #: fedora-44 fedora-rawhide
964 #, no-wrap
965 msgid "2024-07-23"
966 msgstr ""
967
968 #. type: TH
969 #: fedora-44 fedora-rawhide
970 #, no-wrap
971 msgid "Linux man-pages 6.13"
972 msgstr ""
973
974 #. type: TH
975 #: mageia-cauldron
976 #, no-wrap
977 msgid "Linux man-pages 6.17"
978 msgstr ""
979
980 #. type: TH
981 #: opensuse-leap-16-1 opensuse-tumbleweed
982 #, no-wrap
983 msgid "Linux man-pages (unreleased)"
984 msgstr ""