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:17:31 2012 from 38.107.179.227
[root@bash-linux ~] # echo "Bienvenue sur Bash-Linux.com"_
 Manuel des commandes UNIX (man) Version anglaise

Indiquez la fonction :

Man Setuid en anglais

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


setuid - set user identity
 
SYNOPSIS


#include #include int setuid(uid_t uid);
 
DESCRIPTION


setuid() sets the effective user ID of the calling process. If the effective UID of the caller is root, the real UID and saved set-user-ID are also set. Under Linux, setuid() is implemented like the POSIX version with the _POSIX_SAVED_IDS feature. This allows a set-user-ID (other than root) program to drop all of its user privileges, do some un-privileged work, and then re-engage the original effective user ID in a secure manner. If the user is root or the program is set-user-ID-root, special care must be taken. The setuid() function checks the effective user ID of the caller and if it is the superuser, all process-related user ID's are set to uid. After this has occurred, it is impossible for the pro- gram to regain root privileges. Thus, a set-user-ID-root program wishing to temporarily drop root priv- ileges, assume the identity of a non-root user, and then regain root privileges afterwards cannot use setuid(). You can accomplish this with the (non-POSIX, BSD) call seteuid(2).
 
RETURN VALUE


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


EAGAIN The uid does not match the current uid and uid brings process over its RLIMIT_NPROC resource limit. EPERM The user is not privileged (Linux: does not have the CAP_SETUID capability) and uid does not match the real UID or saved set- user-ID of the calling process.
 
CONFORMING TO


SVr4, POSIX.1-2001. Not quite compatible with the 4.4BSD call, which sets all of the real, saved, and effective user IDs.
 
NOTES


Linux Notes Linux has the concept of file system user ID, normally equal to the effective user ID. The setuid() call also sets the file system user ID of the calling process. See setfsuid(2). If uid is different from the old effective uid, the process will be forbidden from leaving core dumps.
 
SEE ALSO


getuid(2), seteuid(2), setfsuid(2), setreuid(2), capabilities(7), cre- dentials(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 2004-05-27 SETUID(2)


 Dernières recherches
Man  en anglais Man setuid en anglaisMan  en français Man setuid en français
Man  en anglais Man putenv en anglaisMan  en français Man putenv en français
Man  en anglais Man strtok en anglaisMan  en français Man strtok en français
Man  en anglais Man wcsstr en anglaisMan  en français Man wcsstr en français
Man  en anglais Man reboot en anglaisMan  en français Man reboot en français
Man  en anglais Man fdopen en anglaisMan  en français Man fdopen en français
Man  en anglais Man chattr en anglaisMan  en français Man chattr en français
Man  en anglais Man memchr en anglaisMan  en français Man memchr en français
Man  en anglais Man verify en anglaisMan  en français Man verify en français
Man  en anglais Man packet en anglaisMan  en français Man packet en français
Man  en anglais Man isatty en anglaisMan  en français Man isatty en français
Man  en anglais Man locale en anglaisMan  en français Man locale en français
Man  en anglais Man ioperm en anglaisMan  en français Man ioperm en français
Man  en anglais Man ecvt_r en anglaisMan  en français Man ecvt_r en français
Man  en anglais Man ulimit en anglaisMan  en français Man ulimit 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