| 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:43+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 "setreuid" |
| 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 "setreuid, setregid - set real and/or effective user or group ID" |
| 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-trixie debian-unstable fedora-44 fedora-rawhide |
| 81 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 82 |
#, no-wrap |
| 83 |
msgid "" |
| 84 |
"B<int setreuid(uid_t >I<ruid>B<, uid_t >I<euid>B<);>\n" |
| 85 |
"B<int setregid(gid_t >I<rgid>B<, gid_t >I<egid>B<);>\n" |
| 86 |
msgstr "" |
| 87 |
|
| 88 |
#. type: Plain text |
| 89 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 90 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 91 |
msgid "" |
| 92 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 93 |
msgstr "" |
| 94 |
|
| 95 |
#. type: Plain text |
| 96 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 97 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 98 |
msgid "B<setreuid>(), B<setregid>():" |
| 99 |
msgstr "" |
| 100 |
|
| 101 |
#. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED |
| 102 |
#. type: Plain text |
| 103 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 104 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 105 |
#, no-wrap |
| 106 |
msgid "" |
| 107 |
" _XOPEN_SOURCE E<gt>= 500\n" |
| 108 |
" || /* Since glibc 2.19: */ _DEFAULT_SOURCE\n" |
| 109 |
" || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n" |
| 110 |
msgstr "" |
| 111 |
|
| 112 |
#. type: SH |
| 113 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 114 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 115 |
#, no-wrap |
| 116 |
msgid "DESCRIPTION" |
| 117 |
msgstr "" |
| 118 |
|
| 119 |
#. type: Plain text |
| 120 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 121 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 122 |
msgid "B<setreuid>() sets real and effective user IDs of the calling process." |
| 123 |
msgstr "" |
| 124 |
|
| 125 |
#. type: Plain text |
| 126 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 127 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 128 |
msgid "" |
| 129 |
"Supplying a value of -1 for either the real or effective user ID forces the " |
| 130 |
"system to leave that ID unchanged." |
| 131 |
msgstr "" |
| 132 |
|
| 133 |
#. type: Plain text |
| 134 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 135 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 136 |
msgid "" |
| 137 |
"Unprivileged processes may only set the effective user ID to the real user " |
| 138 |
"ID, the effective user ID, or the saved set-user-ID." |
| 139 |
msgstr "" |
| 140 |
|
| 141 |
#. type: Plain text |
| 142 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 143 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 144 |
msgid "" |
| 145 |
"Unprivileged users may only set the real user ID to the real user ID or the " |
| 146 |
"effective user ID." |
| 147 |
msgstr "" |
| 148 |
|
| 149 |
#. type: Plain text |
| 150 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 151 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 152 |
msgid "" |
| 153 |
"If the real user ID is set (i.e., I<ruid> is not -1) or the effective user " |
| 154 |
"ID is set to a value not equal to the previous real user ID, the saved set-" |
| 155 |
"user-ID will be set to the new effective user ID." |
| 156 |
msgstr "" |
| 157 |
|
| 158 |
#. type: Plain text |
| 159 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 160 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 161 |
msgid "" |
| 162 |
"Completely analogously, B<setregid>() sets real and effective group ID's of " |
| 163 |
"the calling process, and all of the above holds with \"group\" instead of " |
| 164 |
"\"user\"." |
| 165 |
msgstr "" |
| 166 |
|
| 167 |
#. type: SH |
| 168 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 169 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 170 |
#, no-wrap |
| 171 |
msgid "RETURN VALUE" |
| 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 |
"On success, zero is returned. On error, -1 is returned, and I<errno> is set " |
| 179 |
"to indicate the error." |
| 180 |
msgstr "" |
| 181 |
|
| 182 |
#. type: Plain text |
| 183 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 184 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 185 |
msgid "" |
| 186 |
"I<Note>: there are cases where B<setreuid>() can fail even when the caller " |
| 187 |
"is UID 0; it is a grave security error to omit checking for a failure return " |
| 188 |
"from B<setreuid>()." |
| 189 |
msgstr "" |
| 190 |
|
| 191 |
#. type: SH |
| 192 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 193 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 194 |
#, no-wrap |
| 195 |
msgid "ERRORS" |
| 196 |
msgstr "" |
| 197 |
|
| 198 |
#. type: TP |
| 199 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 200 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 201 |
#, no-wrap |
| 202 |
msgid "B<EAGAIN>" |
| 203 |
msgstr "" |
| 204 |
|
| 205 |
#. type: Plain text |
| 206 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 207 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 208 |
msgid "" |
| 209 |
"The call would change the caller's real UID (i.e., I<ruid> does not match " |
| 210 |
"the caller's real UID), but there was a temporary failure allocating the " |
| 211 |
"necessary kernel data structures." |
| 212 |
msgstr "" |
| 213 |
|
| 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 |
"I<ruid> does not match the caller's real UID and this call would bring the " |
| 219 |
"number of processes belonging to the real user ID I<ruid> over the caller's " |
| 220 |
"B<RLIMIT_NPROC> resource limit. Since Linux 3.1, this error case no longer " |
| 221 |
"occurs (but robust applications should check for this error); see the " |
| 222 |
"description of B<EAGAIN> in B<execve>(2)." |
| 223 |
msgstr "" |
| 224 |
|
| 225 |
#. type: TP |
| 226 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 227 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 228 |
#, no-wrap |
| 229 |
msgid "B<EINVAL>" |
| 230 |
msgstr "" |
| 231 |
|
| 232 |
#. type: Plain text |
| 233 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 234 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 235 |
msgid "" |
| 236 |
"One or more of the target user or group IDs is not valid in this user " |
| 237 |
"namespace." |
| 238 |
msgstr "" |
| 239 |
|
| 240 |
#. type: TP |
| 241 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 242 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 243 |
#, no-wrap |
| 244 |
msgid "B<EPERM>" |
| 245 |
msgstr "" |
| 246 |
|
| 247 |
#. type: Plain text |
| 248 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 249 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 250 |
msgid "" |
| 251 |
"The calling process is not privileged (on Linux, does not have the necessary " |
| 252 |
"capability in its user namespace: B<CAP_SETUID> in the case of " |
| 253 |
"B<setreuid>(), or B<CAP_SETGID> in the case of B<setregid>()) and a change " |
| 254 |
"other than (i) swapping the effective user (group) ID with the real user " |
| 255 |
"(group) ID, or (ii) setting one to the value of the other or (iii) setting " |
| 256 |
"the effective user (group) ID to the value of the saved set-user-ID (saved " |
| 257 |
"set-group-ID) was specified." |
| 258 |
msgstr "" |
| 259 |
|
| 260 |
#. type: SH |
| 261 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 262 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 263 |
#, no-wrap |
| 264 |
msgid "VERSIONS" |
| 265 |
msgstr "" |
| 266 |
|
| 267 |
#. type: Plain text |
| 268 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 269 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 270 |
msgid "" |
| 271 |
"POSIX.1 does not specify all of the UID changes that Linux permits for an " |
| 272 |
"unprivileged process. For B<setreuid>(), the effective user ID can be made " |
| 273 |
"the same as the real user ID or the saved set-user-ID, and it is unspecified " |
| 274 |
"whether unprivileged processes may set the real user ID to the real user ID, " |
| 275 |
"the effective user ID, or the saved set-user-ID. For B<setregid>(), the " |
| 276 |
"real group ID can be changed to the value of the saved set-group-ID, and the " |
| 277 |
"effective group ID can be changed to the value of the real group ID or the " |
| 278 |
"saved set-group-ID. The precise details of what ID changes are permitted " |
| 279 |
"vary across implementations." |
| 280 |
msgstr "" |
| 281 |
|
| 282 |
#. type: Plain text |
| 283 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 284 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 285 |
msgid "" |
| 286 |
"POSIX.1 makes no specification about the effect of these calls on the saved " |
| 287 |
"set-user-ID and saved set-group-ID." |
| 288 |
msgstr "" |
| 289 |
|
| 290 |
#. type: SH |
| 291 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 292 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 293 |
#, no-wrap |
| 294 |
msgid "STANDARDS" |
| 295 |
msgstr "" |
| 296 |
|
| 297 |
#. type: Plain text |
| 298 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 299 |
#: opensuse-tumbleweed |
| 300 |
msgid "POSIX.1-2024." |
| 301 |
msgstr "" |
| 302 |
|
| 303 |
#. type: SH |
| 304 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 305 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 306 |
#, no-wrap |
| 307 |
msgid "HISTORY" |
| 308 |
msgstr "" |
| 309 |
|
| 310 |
#. type: Plain text |
| 311 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 312 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 313 |
msgid "POSIX.1-2001, 4.3BSD (first appeared in 4.2BSD)." |
| 314 |
msgstr "" |
| 315 |
|
| 316 |
#. type: Plain text |
| 317 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 318 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 319 |
msgid "" |
| 320 |
"Setting the effective user (group) ID to the saved set-user-ID (saved set-" |
| 321 |
"group-ID) is possible since Linux 1.1.37 (1.1.38)." |
| 322 |
msgstr "" |
| 323 |
|
| 324 |
#. type: Plain text |
| 325 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 326 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 327 |
msgid "" |
| 328 |
"The original Linux B<setreuid>() and B<setregid>() system calls supported " |
| 329 |
"only 16-bit user and group IDs. Subsequently, Linux 2.4 added " |
| 330 |
"B<setreuid32>() and B<setregid32>(), supporting 32-bit IDs. The glibc " |
| 331 |
"B<setreuid>() and B<setregid>() wrapper functions transparently deal with " |
| 332 |
"the variations across kernel versions." |
| 333 |
msgstr "" |
| 334 |
|
| 335 |
#. type: SS |
| 336 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 337 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 338 |
#, no-wrap |
| 339 |
msgid "C library/kernel differences" |
| 340 |
msgstr "" |
| 341 |
|
| 342 |
#. type: Plain text |
| 343 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 344 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 345 |
msgid "" |
| 346 |
"At the kernel level, user IDs and group IDs are a per-thread attribute. " |
| 347 |
"However, POSIX requires that all threads in a process share the same " |
| 348 |
"credentials. The NPTL threading implementation handles the POSIX " |
| 349 |
"requirements by providing wrapper functions for the various system calls " |
| 350 |
"that change process UIDs and GIDs. These wrapper functions (including those " |
| 351 |
"for B<setreuid>() and B<setregid>()) employ a signal-based technique to " |
| 352 |
"ensure that when one thread changes credentials, all of the other threads in " |
| 353 |
"the process also change their credentials. For details, see B<nptl>(7)." |
| 354 |
msgstr "" |
| 355 |
|
| 356 |
#. type: SH |
| 357 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 358 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 359 |
#, no-wrap |
| 360 |
msgid "SEE ALSO" |
| 361 |
msgstr "" |
| 362 |
|
| 363 |
#. type: Plain text |
| 364 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 365 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 366 |
msgid "" |
| 367 |
"B<getgid>(2), B<getuid>(2), B<seteuid>(2), B<setgid>(2), B<setresuid>(2), " |
| 368 |
"B<setuid>(2), B<capabilities>(7), B<credentials>(7), B<user_namespaces>(7)" |
| 369 |
msgstr "" |
| 370 |
|
| 371 |
#. type: TH |
| 372 |
#: debian-trixie |
| 373 |
#, no-wrap |
| 374 |
msgid "2024-05-02" |
| 375 |
msgstr "" |
| 376 |
|
| 377 |
#. type: TH |
| 378 |
#: debian-trixie |
| 379 |
#, no-wrap |
| 380 |
msgid "Linux man-pages 6.9.1" |
| 381 |
msgstr "" |
| 382 |
|
| 383 |
#. type: Plain text |
| 384 |
#: debian-trixie |
| 385 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 386 |
msgstr "" |
| 387 |
|
| 388 |
#. type: Plain text |
| 389 |
#: debian-trixie fedora-44 fedora-rawhide |
| 390 |
msgid "POSIX.1-2008." |
| 391 |
msgstr "" |
| 392 |
|
| 393 |
#. type: TH |
| 394 |
#: fedora-44 fedora-rawhide |
| 395 |
#, no-wrap |
| 396 |
msgid "2024-07-23" |
| 397 |
msgstr "" |
| 398 |
|
| 399 |
#. type: TH |
| 400 |
#: fedora-44 fedora-rawhide |
| 401 |
#, no-wrap |
| 402 |
msgid "Linux man-pages 6.13" |
| 403 |
msgstr "" |
| 404 |
|
| 405 |
#. type: TH |
| 406 |
#: mageia-cauldron |
| 407 |
#, no-wrap |
| 408 |
msgid "Linux man-pages 6.17" |
| 409 |
msgstr "" |
| 410 |
|
| 411 |
#. type: TH |
| 412 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 413 |
#, no-wrap |
| 414 |
msgid "Linux man-pages (unreleased)" |
| 415 |
msgstr "" |