Bash-Linux.com : Le SHELL pour les nuls

  Actuellement 50 lignes de commande et 1472 man disponibles
login as: root
root@213.186.33.18's password:
Last login: Sun Feb 12 8:26:52 2012 from 38.107.179.229
[root@bash-linux ~] # echo "Bienvenue sur Bash-Linux.com"_
 Manuel des commandes UNIX (man) Version anglaise

Indiquez la fonction :

Man Setreuid en anglais

SETREUID(2) Linux Programmer's Manual SETREUID(2)
 
NAME


setreuid, setregid - set real and/or effective user or group ID
 
SYNOPSIS


#include #include int setreuid(uid_t ruid, uid_t euid); int setregid(gid_t rgid, gid_t egid); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): setreuid(), setregid(): _BSD_SOURCE || _XOPEN_SOURCE >= 500
 
DESCRIPTION


setreuid() sets real and effective user IDs of the calling process. Supplying a value of -1 for either the real or effective user ID forces the system to leave that ID unchanged. Unprivileged processes may only set the effective user ID to the real user ID, the effective user ID or the saved set-user-ID. POSIX: It is unspecified whether unprivileged processes may set the real user ID to the real user ID, the effective user ID or the saved set-user-ID. Linux: Unprivileged users may only set the real user ID to the real user ID or the effective user ID. Linux: If the real user ID is set or the effective user ID is set to a value not equal to the previous real user ID, the saved set-user-ID will be set to the new effective user ID. Completely analogously, setregid() sets real and effective group ID's of the calling process, and all of the above holds with "group" instead of "user".
 
RETURN VALUE


On success, zero is returned. On error, -1 is returned, and errno is set appropriately.
 
ERRORS


EPERM The calling process is not privileged (Linux: does not have the CAP_SETUID capability in the case of setreuid(), or the CAP_SET- GID capability in the case of setregid()) and a change other than (i) swapping the effective user (group) ID with the real user (group) ID, or (ii) setting one to the value of the other or (iii) setting the effective user (group) ID to the value of the saved set-user-ID (saved set-group-ID) was specified.
 
CONFORMING TO


POSIX.1-2001, 4.3BSD (the setreuid() and setregid() function calls first appeared in 4.2BSD).
 
NOTES


Setting the effective user (group) ID to the saved set-user-ID (saved set-group-ID) is possible since Linux 1.1.37 (1.1.38).
 
SEE ALSO


getgid(2), getuid(2), seteuid(2), setgid(2), setresuid(2), setuid(2), capabilities(7)
 
COLOPHON


This page is part of release 3.05 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. Linux 2007-07-26 SETREUID(2)


 Dernières recherches
Man  en anglais Man setreuid en anglaisMan  en français Man setreuid en français
Man  en anglais Man clearerr en anglaisMan  en français Man clearerr en français
Man  en anglais Man sem_open en anglaisMan  en français Man sem_open en français
Man  en anglais Man iptables en anglaisMan  en français Man iptables en français
Man  en anglais Man runlevel en anglaisMan  en français Man runlevel en français
Man  en anglais Man modprobe en anglaisMan  en français Man modprobe en français
Man  en anglais Man shutdown en anglaisMan  en français Man shutdown en français
Man  en anglais Man groupadd en anglaisMan  en français Man groupadd en français
Man  en anglais Man sendmail en anglaisMan  en français Man sendmail en français
Man  en anglais Man setregid en anglaisMan  en français Man setregid en français
Man  en anglais Man vfprintf en anglaisMan  en français Man vfprintf en français
Man  en anglais Man timezone en anglaisMan  en français Man timezone en français
Man  en anglais Man mkrescue en anglaisMan  en français Man mkrescue en français
Man  en anglais Man networks en anglaisMan  en français Man networks en français
Man  en anglais Man mq_close en anglaisMan  en français Man mq_close en français

 Recherche

Dans ce moteur de recherche, vous pouvez taper directement votre besoin, en une phrase normale, humaine.
Exemple : vous cherchez comment remplacer un mot par un autre dans tous les fichiers d'un certain dossier. Vous pouvez écrire "Comment remplacer un mot par un autre dans tous les fichiers d'un dossier". Le moteur vous ramenera les résultats en fonction de leur pertinence.
Vous pouvez bien sûr ne chercher qu'un seul mot-clé, par exemple "find".
 Toutes les lignes de code
Par popularité
Par fonction
Recherche avancée
 Les logiciels SHELL/SSH
Putty
Astuces Bash
Faire du SHELL avec PHP!
 La doc officielle
Les man Linux en français
Les man Linux en anglais
 Proposer vos bash
Partagez vos lignes!
 Les requêtes
Déposer une requête
Voir/répondre à une requête
 Quelques sites interessants
Bons sites pour apprendre
 Rechercher