text
stringlengths 0
234
|
---|
.br sin (3), |
.br tan (3) |
.sh colophon |
this page is part of release 5.13 of the linux |
.i man-pages |
project. |
a description of the project, |
information about reporting bugs, |
and the latest version of this page, |
can be found at |
\%https://www.kernel.org/doc/man\-pages/. |
.so man3/tailq.3 |
.\" copyright (c) 1983, 1991 the regents of the university of california. |
.\" and copyright (c) 2009, 2010, 2014, 2015, michael kerrisk <[email protected]> |
.\" all rights reserved. |
.\" |
.\" %%%license_start(bsd_4_clause_ucb) |
.\" redistribution and use in source and binary forms, with or without |
.\" modification, are permitted provided that the following conditions |
.\" are met: |
.\" 1. redistributions of source code must retain the above copyright |
.\" notice, this list of conditions and the following disclaimer. |
.\" 2. redistributions in binary form must reproduce the above copyright |
.\" notice, this list of conditions and the following disclaimer in the |
.\" documentation and/or other materials provided with the distribution. |
.\" 3. all advertising materials mentioning features or use of this software |
.\" must display the following acknowledgement: |
.\" this product includes software developed by the university of |
.\" california, berkeley and its contributors. |
.\" 4. neither the name of the university nor the names of its contributors |
.\" may be used to endorse or promote products derived from this software |
.\" without specific prior written permission. |
.\" |
.\" this software is provided by the regents and contributors ``as is'' and |
.\" any express or implied warranties, including, but not limited to, the |
.\" implied warranties of merchantability and fitness for a particular purpose |
.\" are disclaimed. in no event shall the regents or contributors be liable |
.\" for any direct, indirect, incidental, special, exemplary, or consequential |
.\" damages (including, but not limited to, procurement of substitute goods |
.\" or services; loss of use, data, or profits; or business interruption) |
.\" however caused and on any theory of liability, whether in contract, strict |
.\" liability, or tort (including negligence or otherwise) arising in any way |
.\" out of the use of this software, even if advised of the possibility of |
.\" such damage. |
.\" %%%license_end |
.\" |
.\" @(#)setregid.2 6.4 (berkeley) 3/10/91 |
.\" |
.\" modified sat jul 24 09:08:49 1993 by rik faith <[email protected]> |
.\" portions extracted from linux/kernel/sys.c: |
.\" copyright (c) 1991, 1992 linus torvalds |
.\" may be distributed under the gnu general public license |
.\" changes: 1994-07-29 by wilf <[email protected]> |
.\" 1994-08-02 by wilf due to change in kernel. |
.\" 2004-07-04 by aeb |
.\" 2004-05-27 by michael kerrisk |
.\" |
.th setreuid 2 2021-03-22 "linux" "linux programmer's manual" |
.sh name |
setreuid, setregid \- set real and/or effective user or group id |
.sh synopsis |
.nf |
.b #include <unistd.h> |
.pp |
.bi "int setreuid(uid_t " ruid ", uid_t " euid ); |
.bi "int setregid(gid_t " rgid ", gid_t " egid ); |
.fi |
.pp |
.rs -4 |
feature test macro requirements for glibc (see |
.br feature_test_macros (7)): |
.re |
.pp |
.br setreuid (), |
.br setregid (): |
.nf |
_xopen_source >= 500 |
.\" || _xopen_source && _xopen_source_extended |
|| /* since glibc 2.19: */ _default_source |
|| /* glibc <= 2.19: */ _bsd_source |
.fi |
.sh description |
.br setreuid () |
sets real and effective user ids of the calling process. |
.pp |
supplying a value of \-1 for either the real or effective user id forces |
the system to leave that id unchanged. |
.pp |
unprivileged processes may only set the effective user id to the real user id, |
the effective user id, or the saved set-user-id. |
.pp |
unprivileged users may only set the real user id to |
the real user id or the effective user id. |
.pp |
if the real user id is set (i.e., |
.i ruid |
is not \-1) or the effective user id is set to a value |
not equal to the previous real user id, |
Subsets and Splits