| 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:20+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 "chown" |
| 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 "chown, fchown, lchown, fchownat - change ownership of 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 "" |
| 84 |
"B<int chown(const char *>I<path>B<, uid_t >I<owner>B<, gid_t >I<group>B<);>\n" |
| 85 |
"B<int fchown(int >I<fd>B<, uid_t >I<owner>B<, gid_t >I<group>B<);>\n" |
| 86 |
"B<int lchown(const char *>I<path>B<, uid_t >I<owner>B<, gid_t >I<group>B<);>\n" |
| 87 |
msgstr "" |
| 88 |
|
| 89 |
#. type: Plain text |
| 90 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 91 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 92 |
#, no-wrap |
| 93 |
msgid "" |
| 94 |
"B<#include E<lt>fcntl.hE<gt> >/* Definition of AT_* constants */\n" |
| 95 |
"B<#include E<lt>unistd.hE<gt>>\n" |
| 96 |
msgstr "" |
| 97 |
|
| 98 |
#. type: Plain text |
| 99 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 100 |
#: opensuse-tumbleweed |
| 101 |
#, no-wrap |
| 102 |
msgid "" |
| 103 |
"B<int fchownat(int >I<dirfd>B<, const char *>I<path>B<,>\n" |
| 104 |
"B< uid_t >I<owner>B<, gid_t >I<group>B<, int >I<flags>B<);>\n" |
| 105 |
msgstr "" |
| 106 |
|
| 107 |
#. type: Plain text |
| 108 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 109 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 110 |
msgid "" |
| 111 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 112 |
msgstr "" |
| 113 |
|
| 114 |
#. type: Plain text |
| 115 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 116 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 117 |
msgid "B<fchown>(), B<lchown>():" |
| 118 |
msgstr "" |
| 119 |
|
| 120 |
#. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED |
| 121 |
#. type: Plain text |
| 122 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 123 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 124 |
#, no-wrap |
| 125 |
msgid "" |
| 126 |
" /* Since glibc 2.12: */ _POSIX_C_SOURCE E<gt>= 200809L\n" |
| 127 |
" || _XOPEN_SOURCE E<gt>= 500\n" |
| 128 |
" || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n" |
| 129 |
msgstr "" |
| 130 |
|
| 131 |
#. type: Plain text |
| 132 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 133 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 134 |
msgid "B<fchownat>():" |
| 135 |
msgstr "" |
| 136 |
|
| 137 |
#. type: Plain text |
| 138 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 139 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 140 |
#, no-wrap |
| 141 |
msgid "" |
| 142 |
" Since glibc 2.10:\n" |
| 143 |
" _POSIX_C_SOURCE E<gt>= 200809L\n" |
| 144 |
" Before glibc 2.10:\n" |
| 145 |
" _ATFILE_SOURCE\n" |
| 146 |
msgstr "" |
| 147 |
|
| 148 |
#. type: SH |
| 149 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 150 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 151 |
#, no-wrap |
| 152 |
msgid "DESCRIPTION" |
| 153 |
msgstr "" |
| 154 |
|
| 155 |
#. type: Plain text |
| 156 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 157 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 158 |
msgid "" |
| 159 |
"These system calls change the owner and group of a file. The B<chown>(), " |
| 160 |
"B<fchown>(), and B<lchown>() system calls differ only in how the file is " |
| 161 |
"specified:" |
| 162 |
msgstr "" |
| 163 |
|
| 164 |
#. type: IP |
| 165 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 166 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 167 |
#, no-wrap |
| 168 |
msgid "\\[bu]" |
| 169 |
msgstr "" |
| 170 |
|
| 171 |
#. type: Plain text |
| 172 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 173 |
#: opensuse-tumbleweed |
| 174 |
msgid "" |
| 175 |
"B<chown>() changes the ownership of the file specified by I<path>, which is " |
| 176 |
"dereferenced if it is a symbolic link." |
| 177 |
msgstr "" |
| 178 |
|
| 179 |
#. type: Plain text |
| 180 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 181 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 182 |
msgid "" |
| 183 |
"B<fchown>() changes the ownership of the file referred to by the open file " |
| 184 |
"descriptor I<fd>." |
| 185 |
msgstr "" |
| 186 |
|
| 187 |
#. type: Plain text |
| 188 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 189 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 190 |
msgid "" |
| 191 |
"B<lchown>() is like B<chown>(), but does not dereference symbolic links." |
| 192 |
msgstr "" |
| 193 |
|
| 194 |
#. type: Plain text |
| 195 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 196 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 197 |
msgid "" |
| 198 |
"Only a privileged process (Linux: one with the B<CAP_CHOWN> capability) may " |
| 199 |
"change the owner of a file. The owner of a file may change the group of the " |
| 200 |
"file to any group of which that owner is a member. A privileged process " |
| 201 |
"(Linux: with B<CAP_CHOWN>) may change the group arbitrarily." |
| 202 |
msgstr "" |
| 203 |
|
| 204 |
#. type: Plain text |
| 205 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 206 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 207 |
msgid "" |
| 208 |
"If the I<owner> or I<group> is specified as -1, then that ID is not changed." |
| 209 |
msgstr "" |
| 210 |
|
| 211 |
#. In Linux 2.0 kernels, superuser was like everyone else |
| 212 |
#. In Linux 2.2, up to Linux 2.2.12, these bits were not cleared for superuser. |
| 213 |
#. Since Linux 2.2.13, superuser is once more like everyone else. |
| 214 |
#. type: Plain text |
| 215 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 216 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 217 |
msgid "" |
| 218 |
"When the owner or group of an executable file is changed by an unprivileged " |
| 219 |
"user, the B<S_ISUID> and B<S_ISGID> mode bits are cleared. POSIX does not " |
| 220 |
"specify whether this also should happen when root does the B<chown>(); the " |
| 221 |
"Linux behavior depends on the kernel version, and since Linux 2.2.13, root " |
| 222 |
"is treated like other users. In case of a non-group-executable file (i.e., " |
| 223 |
"one for which the B<S_IXGRP> bit is not set) the B<S_ISGID> bit indicates " |
| 224 |
"mandatory locking, and is not cleared by a B<chown>()." |
| 225 |
msgstr "" |
| 226 |
|
| 227 |
#. type: Plain text |
| 228 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 229 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 230 |
msgid "" |
| 231 |
"When the owner or group of an executable file is changed (by any user), all " |
| 232 |
"capability sets for the file are cleared." |
| 233 |
msgstr "" |
| 234 |
|
| 235 |
#. type: SS |
| 236 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 237 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 238 |
#, no-wrap |
| 239 |
msgid "fchownat()" |
| 240 |
msgstr "" |
| 241 |
|
| 242 |
#. type: Plain text |
| 243 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 244 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 245 |
msgid "" |
| 246 |
"The B<fchownat>() system call operates in exactly the same way as " |
| 247 |
"B<chown>(), except for the differences described here." |
| 248 |
msgstr "" |
| 249 |
|
| 250 |
#. type: Plain text |
| 251 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 252 |
#: opensuse-tumbleweed |
| 253 |
msgid "" |
| 254 |
"If I<path> is relative, then it is interpreted relative to the directory " |
| 255 |
"referred to by the file descriptor I<dirfd> (rather than relative to the " |
| 256 |
"current working directory of the calling process, as is done by B<chown>() " |
| 257 |
"for a relative pathname)." |
| 258 |
msgstr "" |
| 259 |
|
| 260 |
#. type: Plain text |
| 261 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 262 |
#: opensuse-tumbleweed |
| 263 |
msgid "" |
| 264 |
"If I<path> is relative and I<dirfd> is the special value B<AT_FDCWD>, then " |
| 265 |
"I<path> is interpreted relative to the current working directory of the " |
| 266 |
"calling process (like B<chown>())." |
| 267 |
msgstr "" |
| 268 |
|
| 269 |
#. type: Plain text |
| 270 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 271 |
#: opensuse-tumbleweed |
| 272 |
msgid "If I<path> is absolute, then I<dirfd> is ignored." |
| 273 |
msgstr "" |
| 274 |
|
| 275 |
#. type: Plain text |
| 276 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 277 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 278 |
msgid "" |
| 279 |
"The I<flags> argument is a bit mask created by ORing together 0 or more of " |
| 280 |
"the following values;" |
| 281 |
msgstr "" |
| 282 |
|
| 283 |
#. type: TP |
| 284 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 285 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 286 |
#, no-wrap |
| 287 |
msgid "B<AT_EMPTY_PATH> (since Linux 2.6.39)" |
| 288 |
msgstr "" |
| 289 |
|
| 290 |
#. commit 65cfc6722361570bfe255698d9cd4dccaf47570d |
| 291 |
#. Before glibc 2.16, defining _ATFILE_SOURCE sufficed |
| 292 |
#. type: Plain text |
| 293 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 294 |
#: opensuse-tumbleweed |
| 295 |
msgid "" |
| 296 |
"If I<path> is an empty string, operate on the file referred to by I<dirfd> " |
| 297 |
"(which may have been obtained using the B<open>(2) B<O_PATH> flag). In " |
| 298 |
"this case, I<dirfd> can refer to any type of file, not just a directory. If " |
| 299 |
"I<dirfd> is B<AT_FDCWD>, the call operates on the current working " |
| 300 |
"directory. This flag is Linux-specific; define B<_GNU_SOURCE> to obtain its " |
| 301 |
"definition." |
| 302 |
msgstr "" |
| 303 |
|
| 304 |
#. type: TP |
| 305 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 306 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 307 |
#, no-wrap |
| 308 |
msgid "B<AT_SYMLINK_NOFOLLOW>" |
| 309 |
msgstr "" |
| 310 |
|
| 311 |
#. type: Plain text |
| 312 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 313 |
#: opensuse-tumbleweed |
| 314 |
msgid "" |
| 315 |
"If I<path> is a symbolic link, do not dereference it: instead operate on the " |
| 316 |
"link itself, like B<lchown>(). (By default, B<fchownat>() dereferences " |
| 317 |
"symbolic links, like B<chown>().)" |
| 318 |
msgstr "" |
| 319 |
|
| 320 |
#. type: Plain text |
| 321 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 322 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 323 |
msgid "See B<openat>(2) for an explanation of the need for B<fchownat>()." |
| 324 |
msgstr "" |
| 325 |
|
| 326 |
#. type: SH |
| 327 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 328 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 329 |
#, no-wrap |
| 330 |
msgid "RETURN VALUE" |
| 331 |
msgstr "" |
| 332 |
|
| 333 |
#. type: Plain text |
| 334 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 335 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 336 |
msgid "" |
| 337 |
"On success, zero is returned. On error, -1 is returned, and I<errno> is set " |
| 338 |
"to indicate the error." |
| 339 |
msgstr "" |
| 340 |
|
| 341 |
#. type: SH |
| 342 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 343 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 344 |
#, no-wrap |
| 345 |
msgid "ERRORS" |
| 346 |
msgstr "" |
| 347 |
|
| 348 |
#. type: Plain text |
| 349 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 350 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 351 |
msgid "" |
| 352 |
"Depending on the filesystem, errors other than those listed below can be " |
| 353 |
"returned." |
| 354 |
msgstr "" |
| 355 |
|
| 356 |
#. type: Plain text |
| 357 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 358 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 359 |
msgid "The more general errors for B<chown>() are listed below." |
| 360 |
msgstr "" |
| 361 |
|
| 362 |
#. type: TP |
| 363 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 364 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 365 |
#, no-wrap |
| 366 |
msgid "B<EACCES>" |
| 367 |
msgstr "" |
| 368 |
|
| 369 |
#. type: Plain text |
| 370 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 371 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 372 |
msgid "" |
| 373 |
"Search permission is denied on a component of the path prefix. (See also " |
| 374 |
"B<path_resolution>(7).)" |
| 375 |
msgstr "" |
| 376 |
|
| 377 |
#. type: TP |
| 378 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 379 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 380 |
#, no-wrap |
| 381 |
msgid "B<EBADF>" |
| 382 |
msgstr "" |
| 383 |
|
| 384 |
#. type: Plain text |
| 385 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 386 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 387 |
msgid "(B<fchown>()) I<fd> is not a valid open file descriptor." |
| 388 |
msgstr "" |
| 389 |
|
| 390 |
#. type: Plain text |
| 391 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 392 |
#: opensuse-tumbleweed |
| 393 |
msgid "" |
| 394 |
"(B<fchownat>()) I<path> is relative but I<dirfd> is neither B<AT_FDCWD> nor " |
| 395 |
"a valid file descriptor." |
| 396 |
msgstr "" |
| 397 |
|
| 398 |
#. type: TP |
| 399 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 400 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 401 |
#, no-wrap |
| 402 |
msgid "B<EFAULT>" |
| 403 |
msgstr "" |
| 404 |
|
| 405 |
#. type: Plain text |
| 406 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 407 |
#: opensuse-tumbleweed |
| 408 |
msgid "I<path> points outside your accessible address space." |
| 409 |
msgstr "" |
| 410 |
|
| 411 |
#. type: TP |
| 412 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 413 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 414 |
#, no-wrap |
| 415 |
msgid "B<EINVAL>" |
| 416 |
msgstr "" |
| 417 |
|
| 418 |
#. type: Plain text |
| 419 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 420 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 421 |
msgid "(B<fchownat>()) Invalid flag specified in I<flags>." |
| 422 |
msgstr "" |
| 423 |
|
| 424 |
#. type: TP |
| 425 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 426 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 427 |
#, no-wrap |
| 428 |
msgid "B<EIO>" |
| 429 |
msgstr "" |
| 430 |
|
| 431 |
#. type: Plain text |
| 432 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 433 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 434 |
msgid "" |
| 435 |
"(B<fchown>()) A low-level I/O error occurred while modifying the inode." |
| 436 |
msgstr "" |
| 437 |
|
| 438 |
#. type: TP |
| 439 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 440 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 441 |
#, no-wrap |
| 442 |
msgid "B<ELOOP>" |
| 443 |
msgstr "" |
| 444 |
|
| 445 |
#. type: Plain text |
| 446 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 447 |
#: opensuse-tumbleweed |
| 448 |
msgid "Too many symbolic links were encountered in resolving I<path>." |
| 449 |
msgstr "" |
| 450 |
|
| 451 |
#. type: TP |
| 452 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 453 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 454 |
#, no-wrap |
| 455 |
msgid "B<ENAMETOOLONG>" |
| 456 |
msgstr "" |
| 457 |
|
| 458 |
#. type: Plain text |
| 459 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 460 |
#: opensuse-tumbleweed |
| 461 |
msgid "I<path> is too long." |
| 462 |
msgstr "" |
| 463 |
|
| 464 |
#. type: TP |
| 465 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 466 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 467 |
#, no-wrap |
| 468 |
msgid "B<ENOENT>" |
| 469 |
msgstr "" |
| 470 |
|
| 471 |
#. type: Plain text |
| 472 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 473 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 474 |
msgid "The file does not exist." |
| 475 |
msgstr "" |
| 476 |
|
| 477 |
#. type: TP |
| 478 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 479 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 480 |
#, no-wrap |
| 481 |
msgid "B<ENOMEM>" |
| 482 |
msgstr "" |
| 483 |
|
| 484 |
#. type: Plain text |
| 485 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 486 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 487 |
msgid "Insufficient kernel memory was available." |
| 488 |
msgstr "" |
| 489 |
|
| 490 |
#. type: TP |
| 491 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 492 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 493 |
#, no-wrap |
| 494 |
msgid "B<ENOTDIR>" |
| 495 |
msgstr "" |
| 496 |
|
| 497 |
#. type: Plain text |
| 498 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 499 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 500 |
msgid "A component of the path prefix is not a directory." |
| 501 |
msgstr "" |
| 502 |
|
| 503 |
#. type: Plain text |
| 504 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 505 |
#: opensuse-tumbleweed |
| 506 |
msgid "" |
| 507 |
"(B<fchownat>()) I<path> is relative and I<dirfd> is a file descriptor " |
| 508 |
"referring to a file other than a directory." |
| 509 |
msgstr "" |
| 510 |
|
| 511 |
#. type: TP |
| 512 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 513 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 514 |
#, no-wrap |
| 515 |
msgid "B<EPERM>" |
| 516 |
msgstr "" |
| 517 |
|
| 518 |
#. type: Plain text |
| 519 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 520 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 521 |
msgid "" |
| 522 |
"The calling process did not have the required permissions (see above) to " |
| 523 |
"change owner and/or group." |
| 524 |
msgstr "" |
| 525 |
|
| 526 |
#. type: Plain text |
| 527 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 528 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 529 |
msgid "" |
| 530 |
"The file is marked immutable or append-only. (See " |
| 531 |
"B<FS_IOC_SETFLAGS>(2const).)" |
| 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<EROFS>" |
| 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 "The named file resides on a read-only filesystem." |
| 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 |
#. chown(): |
| 555 |
#. SVr4 documents EINVAL, EINTR, ENOLINK and EMULTIHOP returns, but no |
| 556 |
#. ENOMEM. POSIX.1 does not document ENOMEM or ELOOP error conditions. |
| 557 |
#. fchown(): |
| 558 |
#. SVr4 documents additional EINVAL, EIO, EINTR, and ENOLINK |
| 559 |
#. error conditions. |
| 560 |
#. type: Plain text |
| 561 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 562 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 563 |
msgid "" |
| 564 |
"The 4.4BSD version can be used only by the superuser (that is, ordinary " |
| 565 |
"users cannot give away files)." |
| 566 |
msgstr "" |
| 567 |
|
| 568 |
#. type: SH |
| 569 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 570 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 571 |
#, no-wrap |
| 572 |
msgid "STANDARDS" |
| 573 |
msgstr "" |
| 574 |
|
| 575 |
#. type: Plain text |
| 576 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 577 |
#: opensuse-tumbleweed |
| 578 |
msgid "POSIX.1-2024." |
| 579 |
msgstr "" |
| 580 |
|
| 581 |
#. type: SH |
| 582 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 583 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 584 |
#, no-wrap |
| 585 |
msgid "HISTORY" |
| 586 |
msgstr "" |
| 587 |
|
| 588 |
#. type: TP |
| 589 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 590 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 591 |
#, no-wrap |
| 592 |
msgid "B<chown>()" |
| 593 |
msgstr "" |
| 594 |
|
| 595 |
#. type: Plain text |
| 596 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 597 |
#: opensuse-tumbleweed |
| 598 |
msgid "SVr4, POSIX.1-1988, 4.4BSD." |
| 599 |
msgstr "" |
| 600 |
|
| 601 |
#. #-#-#-#-# archlinux: chown.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 602 |
#. type: TP |
| 603 |
#. #-#-#-#-# debian-trixie: chown.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 604 |
#. type: TQ |
| 605 |
#. #-#-#-#-# debian-unstable: chown.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 606 |
#. type: TP |
| 607 |
#. #-#-#-#-# fedora-44: chown.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 608 |
#. type: TQ |
| 609 |
#. #-#-#-#-# fedora-rawhide: chown.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 610 |
#. type: TQ |
| 611 |
#. #-#-#-#-# mageia-cauldron: chown.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 612 |
#. type: TP |
| 613 |
#. #-#-#-#-# opensuse-leap-16-1: chown.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 614 |
#. type: TP |
| 615 |
#. #-#-#-#-# opensuse-tumbleweed: chown.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 616 |
#. type: TP |
| 617 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 618 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 619 |
#, no-wrap |
| 620 |
msgid "B<fchown>()" |
| 621 |
msgstr "" |
| 622 |
|
| 623 |
#. type: Plain text |
| 624 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 625 |
#: opensuse-tumbleweed |
| 626 |
msgid "SVr4, 4.4BSD, SUSv1, POSIX.1-2001." |
| 627 |
msgstr "" |
| 628 |
|
| 629 |
#. #-#-#-#-# archlinux: chown.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 630 |
#. type: TP |
| 631 |
#. #-#-#-#-# debian-trixie: chown.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 632 |
#. type: TQ |
| 633 |
#. #-#-#-#-# debian-unstable: chown.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 634 |
#. type: TP |
| 635 |
#. #-#-#-#-# fedora-44: chown.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 636 |
#. type: TQ |
| 637 |
#. #-#-#-#-# fedora-rawhide: chown.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 638 |
#. type: TQ |
| 639 |
#. #-#-#-#-# mageia-cauldron: chown.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 640 |
#. type: TP |
| 641 |
#. #-#-#-#-# opensuse-leap-16-1: chown.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 642 |
#. type: TP |
| 643 |
#. #-#-#-#-# opensuse-tumbleweed: chown.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 644 |
#. type: TP |
| 645 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 646 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 647 |
#, no-wrap |
| 648 |
msgid "B<lchown>()" |
| 649 |
msgstr "" |
| 650 |
|
| 651 |
#. type: Plain text |
| 652 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 653 |
#: opensuse-tumbleweed |
| 654 |
msgid "SVr4, 4.4BSD, SUSv1, POSIX.1-2001 XSI, POSIX.1-2008." |
| 655 |
msgstr "" |
| 656 |
|
| 657 |
#. type: TP |
| 658 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 659 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 660 |
#, no-wrap |
| 661 |
msgid "B<fchownat>()" |
| 662 |
msgstr "" |
| 663 |
|
| 664 |
#. type: Plain text |
| 665 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 666 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 667 |
msgid "POSIX.1-2008. Linux 2.6.16, glibc 2.4." |
| 668 |
msgstr "" |
| 669 |
|
| 670 |
#. type: SH |
| 671 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 672 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 673 |
#, no-wrap |
| 674 |
msgid "NOTES" |
| 675 |
msgstr "" |
| 676 |
|
| 677 |
#. type: SS |
| 678 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 679 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 680 |
#, no-wrap |
| 681 |
msgid "Ownership of new files" |
| 682 |
msgstr "" |
| 683 |
|
| 684 |
#. type: Plain text |
| 685 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 686 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 687 |
msgid "" |
| 688 |
"When a new file is created (by, for example, B<open>(2) or B<mkdir>(2)), " |
| 689 |
"its owner is made the same as the filesystem user ID of the creating " |
| 690 |
"process. The group of the file depends on a range of factors, including the " |
| 691 |
"type of filesystem, the options used to mount the filesystem, and whether or " |
| 692 |
"not the set-group-ID mode bit is enabled on the parent directory. If the " |
| 693 |
"filesystem supports the B<-o\\ grpid> (or, synonymously B<-o\\ bsdgroups>) " |
| 694 |
"and B<-o\\ nogrpid> (or, synonymously B<-o\\ sysvgroups>) B<mount>(8) " |
| 695 |
"options, then the rules are as follows:" |
| 696 |
msgstr "" |
| 697 |
|
| 698 |
#. type: Plain text |
| 699 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 700 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 701 |
msgid "" |
| 702 |
"If the filesystem is mounted with B<-o\\ grpid>, then the group of a new " |
| 703 |
"file is made the same as that of the parent directory." |
| 704 |
msgstr "" |
| 705 |
|
| 706 |
#. type: Plain text |
| 707 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 708 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 709 |
msgid "" |
| 710 |
"If the filesystem is mounted with B<-o\\ nogrpid> and the set-group-ID bit " |
| 711 |
"is disabled on the parent directory, then the group of a new file is made " |
| 712 |
"the same as the process's filesystem GID." |
| 713 |
msgstr "" |
| 714 |
|
| 715 |
#. type: Plain text |
| 716 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 717 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 718 |
msgid "" |
| 719 |
"If the filesystem is mounted with B<-o\\ nogrpid> and the set-group-ID bit " |
| 720 |
"is enabled on the parent directory, then the group of a new file is made the " |
| 721 |
"same as that of the parent directory." |
| 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 |
"As at Linux 4.12, the B<-o\\ grpid> and B<-o\\ nogrpid> mount options are " |
| 729 |
"supported by ext2, ext3, ext4, and XFS. Filesystems that don't support " |
| 730 |
"these mount options follow the B<-o\\ nogrpid> rules." |
| 731 |
msgstr "" |
| 732 |
|
| 733 |
#. type: SS |
| 734 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 735 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 736 |
#, no-wrap |
| 737 |
msgid "glibc notes" |
| 738 |
msgstr "" |
| 739 |
|
| 740 |
#. type: Plain text |
| 741 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 742 |
#: opensuse-tumbleweed |
| 743 |
msgid "" |
| 744 |
"On older kernels where B<fchownat>() is unavailable, the glibc wrapper " |
| 745 |
"function falls back to the use of B<chown>() and B<lchown>(). When I<path> " |
| 746 |
"is relative, glibc constructs a pathname based on the symbolic link in I</" |
| 747 |
"proc/self/fd> that corresponds to the I<dirfd> argument." |
| 748 |
msgstr "" |
| 749 |
|
| 750 |
#. type: SS |
| 751 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 752 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 753 |
#, no-wrap |
| 754 |
msgid "NFS" |
| 755 |
msgstr "" |
| 756 |
|
| 757 |
#. type: Plain text |
| 758 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 759 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 760 |
msgid "" |
| 761 |
"The B<chown>() semantics are deliberately violated on NFS filesystems which " |
| 762 |
"have UID mapping enabled. Additionally, the semantics of all system calls " |
| 763 |
"which access the file contents are violated, because B<chown>() may cause " |
| 764 |
"immediate access revocation on already open files. Client side caching may " |
| 765 |
"lead to a delay between the time where ownership have been changed to allow " |
| 766 |
"access for a user and the time where the file can actually be accessed by " |
| 767 |
"the user on other clients." |
| 768 |
msgstr "" |
| 769 |
|
| 770 |
#. type: SS |
| 771 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 772 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 773 |
#, no-wrap |
| 774 |
msgid "Historical details" |
| 775 |
msgstr "" |
| 776 |
|
| 777 |
#. type: Plain text |
| 778 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 779 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 780 |
msgid "" |
| 781 |
"The original Linux B<chown>(), B<fchown>(), and B<lchown>() system calls " |
| 782 |
"supported only 16-bit user and group IDs. Subsequently, Linux 2.4 added " |
| 783 |
"B<chown32>(), B<fchown32>(), and B<lchown32>(), supporting 32-bit IDs. The " |
| 784 |
"glibc B<chown>(), B<fchown>(), and B<lchown>() wrapper functions " |
| 785 |
"transparently deal with the variations across kernel versions." |
| 786 |
msgstr "" |
| 787 |
|
| 788 |
#. type: Plain text |
| 789 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 790 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 791 |
msgid "" |
| 792 |
"Before Linux 2.1.81 (except 2.1.46), B<chown>() did not follow symbolic " |
| 793 |
"links. Since Linux 2.1.81, B<chown>() does follow symbolic links, and " |
| 794 |
"there is a new system call B<lchown>() that does not follow symbolic " |
| 795 |
"links. Since Linux 2.1.86, this new call (that has the same semantics as " |
| 796 |
"the old B<chown>()) has got the same syscall number, and B<chown>() got " |
| 797 |
"the newly introduced number." |
| 798 |
msgstr "" |
| 799 |
|
| 800 |
#. type: SH |
| 801 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 802 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 803 |
#, no-wrap |
| 804 |
msgid "EXAMPLES" |
| 805 |
msgstr "" |
| 806 |
|
| 807 |
#. type: Plain text |
| 808 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 809 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 810 |
msgid "" |
| 811 |
"The following program changes the ownership of the file named in its second " |
| 812 |
"command-line argument to the value specified in its first command-line " |
| 813 |
"argument. The new owner can be specified either as a numeric user ID, or as " |
| 814 |
"a username (which is converted to a user ID by using B<getpwnam>(3) to " |
| 815 |
"perform a lookup in the system password file)." |
| 816 |
msgstr "" |
| 817 |
|
| 818 |
#. type: SS |
| 819 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 820 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 821 |
#, no-wrap |
| 822 |
msgid "Program source" |
| 823 |
msgstr "" |
| 824 |
|
| 825 |
#. type: Plain text |
| 826 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 827 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 828 |
#, no-wrap |
| 829 |
msgid "" |
| 830 |
"#include E<lt>pwd.hE<gt>\n" |
| 831 |
"#include E<lt>stdio.hE<gt>\n" |
| 832 |
"#include E<lt>stdlib.hE<gt>\n" |
| 833 |
"#include E<lt>sys/types.hE<gt>\n" |
| 834 |
"#include E<lt>unistd.hE<gt>\n" |
| 835 |
"\\&\n" |
| 836 |
"int\n" |
| 837 |
"main(int argc, char *argv[])\n" |
| 838 |
"{\n" |
| 839 |
" char *endptr;\n" |
| 840 |
" uid_t uid;\n" |
| 841 |
" struct passwd *pwd;\n" |
| 842 |
"\\&\n" |
| 843 |
" if (argc != 3 || argv[1][0] == \\[aq]\\[rs]0\\[aq]) {\n" |
| 844 |
" fprintf(stderr, \"%s E<lt>ownerE<gt> E<lt>fileE<gt>\\[rs]n\", argv[0]);\n" |
| 845 |
" exit(EXIT_FAILURE);\n" |
| 846 |
" }\n" |
| 847 |
"\\&\n" |
| 848 |
" uid = strtol(argv[1], &endptr, 10); /* Allow a numeric string */\n" |
| 849 |
"\\&\n" |
| 850 |
" if (*endptr != \\[aq]\\[rs]0\\[aq]) { /* Was not pure numeric string */\n" |
| 851 |
" pwd = getpwnam(argv[1]); /* Try getting UID for username */\n" |
| 852 |
" if (pwd == NULL) {\n" |
| 853 |
" perror(\"getpwnam\");\n" |
| 854 |
" exit(EXIT_FAILURE);\n" |
| 855 |
" }\n" |
| 856 |
"\\&\n" |
| 857 |
" uid = pwd-E<gt>pw_uid;\n" |
| 858 |
" }\n" |
| 859 |
"\\&\n" |
| 860 |
" if (chown(argv[2], uid, -1) == -1) {\n" |
| 861 |
" perror(\"chown\");\n" |
| 862 |
" exit(EXIT_FAILURE);\n" |
| 863 |
" }\n" |
| 864 |
"\\&\n" |
| 865 |
" exit(EXIT_SUCCESS);\n" |
| 866 |
"}\n" |
| 867 |
msgstr "" |
| 868 |
|
| 869 |
#. SRC END |
| 870 |
#. type: SH |
| 871 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 872 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 873 |
#, no-wrap |
| 874 |
msgid "SEE ALSO" |
| 875 |
msgstr "" |
| 876 |
|
| 877 |
#. type: Plain text |
| 878 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 879 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 880 |
msgid "" |
| 881 |
"B<chgrp>(1), B<chown>(1), B<chmod>(2), B<flock>(2), B<path_resolution>(7), " |
| 882 |
"B<symlink>(7)" |
| 883 |
msgstr "" |
| 884 |
|
| 885 |
#. type: TH |
| 886 |
#: debian-trixie |
| 887 |
#, no-wrap |
| 888 |
msgid "2024-06-15" |
| 889 |
msgstr "" |
| 890 |
|
| 891 |
#. type: TH |
| 892 |
#: debian-trixie |
| 893 |
#, no-wrap |
| 894 |
msgid "Linux man-pages 6.9.1" |
| 895 |
msgstr "" |
| 896 |
|
| 897 |
#. type: Plain text |
| 898 |
#: debian-trixie |
| 899 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 900 |
msgstr "" |
| 901 |
|
| 902 |
#. type: Plain text |
| 903 |
#: debian-trixie fedora-44 fedora-rawhide |
| 904 |
#, no-wrap |
| 905 |
msgid "" |
| 906 |
"B<int chown(const char *>I<pathname>B<, uid_t >I<owner>B<, gid_t >I<group>B<);>\n" |
| 907 |
"B<int fchown(int >I<fd>B<, uid_t >I<owner>B<, gid_t >I<group>B<);>\n" |
| 908 |
"B<int lchown(const char *>I<pathname>B<, uid_t >I<owner>B<, gid_t >I<group>B<);>\n" |
| 909 |
msgstr "" |
| 910 |
|
| 911 |
#. type: Plain text |
| 912 |
#: debian-trixie fedora-44 fedora-rawhide |
| 913 |
#, no-wrap |
| 914 |
msgid "" |
| 915 |
"B<int fchownat(int >I<dirfd>B<, const char *>I<pathname>B<,>\n" |
| 916 |
"B< uid_t >I<owner>B<, gid_t >I<group>B<, int >I<flags>B<);>\n" |
| 917 |
msgstr "" |
| 918 |
|
| 919 |
#. type: Plain text |
| 920 |
#: debian-trixie fedora-44 fedora-rawhide |
| 921 |
msgid "" |
| 922 |
"B<chown>() changes the ownership of the file specified by I<pathname>, " |
| 923 |
"which is dereferenced if it is a symbolic link." |
| 924 |
msgstr "" |
| 925 |
|
| 926 |
#. type: Plain text |
| 927 |
#: debian-trixie fedora-44 fedora-rawhide |
| 928 |
msgid "" |
| 929 |
"If the pathname given in I<pathname> is relative, then it is interpreted " |
| 930 |
"relative to the directory referred to by the file descriptor I<dirfd> " |
| 931 |
"(rather than relative to the current working directory of the calling " |
| 932 |
"process, as is done by B<chown>() for a relative pathname)." |
| 933 |
msgstr "" |
| 934 |
|
| 935 |
#. type: Plain text |
| 936 |
#: debian-trixie fedora-44 fedora-rawhide |
| 937 |
msgid "" |
| 938 |
"If I<pathname> is relative and I<dirfd> is the special value B<AT_FDCWD>, " |
| 939 |
"then I<pathname> is interpreted relative to the current working directory of " |
| 940 |
"the calling process (like B<chown>())." |
| 941 |
msgstr "" |
| 942 |
|
| 943 |
#. type: Plain text |
| 944 |
#: debian-trixie fedora-44 fedora-rawhide |
| 945 |
msgid "If I<pathname> is absolute, then I<dirfd> is ignored." |
| 946 |
msgstr "" |
| 947 |
|
| 948 |
#. commit 65cfc6722361570bfe255698d9cd4dccaf47570d |
| 949 |
#. Before glibc 2.16, defining _ATFILE_SOURCE sufficed |
| 950 |
#. type: Plain text |
| 951 |
#: debian-trixie fedora-44 fedora-rawhide |
| 952 |
msgid "" |
| 953 |
"If I<pathname> is an empty string, operate on the file referred to by " |
| 954 |
"I<dirfd> (which may have been obtained using the B<open>(2) B<O_PATH> " |
| 955 |
"flag). In this case, I<dirfd> can refer to any type of file, not just a " |
| 956 |
"directory. If I<dirfd> is B<AT_FDCWD>, the call operates on the current " |
| 957 |
"working directory. This flag is Linux-specific; define B<_GNU_SOURCE> to " |
| 958 |
"obtain its definition." |
| 959 |
msgstr "" |
| 960 |
|
| 961 |
#. type: Plain text |
| 962 |
#: debian-trixie fedora-44 fedora-rawhide |
| 963 |
msgid "" |
| 964 |
"If I<pathname> is a symbolic link, do not dereference it: instead operate on " |
| 965 |
"the link itself, like B<lchown>(). (By default, B<fchownat>() dereferences " |
| 966 |
"symbolic links, like B<chown>().)" |
| 967 |
msgstr "" |
| 968 |
|
| 969 |
#. type: Plain text |
| 970 |
#: debian-trixie fedora-44 fedora-rawhide |
| 971 |
msgid "" |
| 972 |
"(B<fchownat>()) I<pathname> is relative but I<dirfd> is neither B<AT_FDCWD> " |
| 973 |
"nor a valid file descriptor." |
| 974 |
msgstr "" |
| 975 |
|
| 976 |
#. type: Plain text |
| 977 |
#: debian-trixie fedora-44 fedora-rawhide |
| 978 |
msgid "I<pathname> points outside your accessible address space." |
| 979 |
msgstr "" |
| 980 |
|
| 981 |
#. type: Plain text |
| 982 |
#: debian-trixie fedora-44 fedora-rawhide |
| 983 |
msgid "Too many symbolic links were encountered in resolving I<pathname>." |
| 984 |
msgstr "" |
| 985 |
|
| 986 |
#. type: Plain text |
| 987 |
#: debian-trixie fedora-44 fedora-rawhide |
| 988 |
msgid "I<pathname> is too long." |
| 989 |
msgstr "" |
| 990 |
|
| 991 |
#. type: Plain text |
| 992 |
#: debian-trixie fedora-44 fedora-rawhide |
| 993 |
msgid "" |
| 994 |
"(B<fchownat>()) I<pathname> is relative and I<dirfd> is a file descriptor " |
| 995 |
"referring to a file other than a directory." |
| 996 |
msgstr "" |
| 997 |
|
| 998 |
#. type: Plain text |
| 999 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1000 |
msgid "POSIX.1-2008." |
| 1001 |
msgstr "" |
| 1002 |
|
| 1003 |
#. type: Plain text |
| 1004 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1005 |
msgid "4.4BSD, SVr4, POSIX.1-2001." |
| 1006 |
msgstr "" |
| 1007 |
|
| 1008 |
#. type: Plain text |
| 1009 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1010 |
msgid "" |
| 1011 |
"On older kernels where B<fchownat>() is unavailable, the glibc wrapper " |
| 1012 |
"function falls back to the use of B<chown>() and B<lchown>(). When " |
| 1013 |
"I<pathname> is a relative pathname, glibc constructs a pathname based on the " |
| 1014 |
"symbolic link in I</proc/self/fd> that corresponds to the I<dirfd> argument." |
| 1015 |
msgstr "" |
| 1016 |
|
| 1017 |
#. type: TH |
| 1018 |
#: fedora-44 fedora-rawhide |
| 1019 |
#, no-wrap |
| 1020 |
msgid "2024-07-23" |
| 1021 |
msgstr "" |
| 1022 |
|
| 1023 |
#. type: TH |
| 1024 |
#: fedora-44 fedora-rawhide |
| 1025 |
#, no-wrap |
| 1026 |
msgid "Linux man-pages 6.13" |
| 1027 |
msgstr "" |
| 1028 |
|
| 1029 |
#. type: TH |
| 1030 |
#: mageia-cauldron |
| 1031 |
#, no-wrap |
| 1032 |
msgid "Linux man-pages 6.17" |
| 1033 |
msgstr "" |
| 1034 |
|
| 1035 |
#. type: TH |
| 1036 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1037 |
#, no-wrap |
| 1038 |
msgid "Linux man-pages (unreleased)" |
| 1039 |
msgstr "" |