| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 
 | .\" -*- nroff -*-
.\" Copyright (C) 1995, Thomas K. Dyas <tdyas@eden.rutgers.edu>
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one
.\" 
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date.  The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" the use of the information contained herein.  The author(s) may not
.\" have taken the same level of care in the production of this manual,
.\" which is licensed free of charge, as they might when working
.\" professionally.
.\" 
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\" Created   Sun Aug  6 1995      Thomas K. Dyas <tdyas@eden.rutgers.edu>
.\"
.TH SETFSUID 2 "06/08/1995" "Linux 1.3.15" "Manual do Programador Linux"
.SH NOME
setfsuid \- seleciona a identidade do usurio para controle do sistema de arquivo set
.SH SINOPSE
.B #include <unistd.h>
/* glibc uses <sys/fsuid.h> */
.sp
.BI "int setfsuid(uid_t " fsuid )
.SH DESCRIO
.B setfsuid
seleciona a ID do usurio que o kernel do Linux usa para controlar todos
acessos ao sistema de arquivos. Normalmente, o valor de
.I fsuid
sombrear o valor efetivo da ID do usurio. Na realidade, a ID
efetiva do usurio  alterada a qualquer hora,
.I fsuid
Tambm alterar para o novo valor da ID efetiva do usurio.
Uma chamada explicita para
.B setfsuid
, usualmente, usada por programas com o servidor NFS que
precisa alterar a ID do usurio que  usada para acessar arquivos sem a
correspondente alterao nas IDs real e efetiva do usurio. Uma alterao na
ID normal do usurio por um programa como o servidor NFS  um falha de segurana
que pode exp-lo a sinais no desejados vindos de outras IDs de usurios.
.B setfsuid
suceder somente se o solicitante  o superusurio ou se
.I fsuid
casa com uma das: ID real, efetiva, guardada do usurio, ou
com o valor atual de
.IR fsuid .
.SH "VALORES RETORNADOS"
Em caso de sucesso, o valor anterior de
.I fsuid
 retornado. Caso contrrio, o valor atual de
.I fsuid
 retornado.
.SH "DE ACORDO COM"
.B setfsuid
Esta chamada  especfica do Linux e no deveria ser usadas em programas que pretendem ser portveis.
.SH PROBLEMAS
Sem mensagens de erros de qualquer espcie  retornada para o solicitante. No menor
grau, 
.B EPERM
Precisaria ser retornada quando a chamada falha.
.SH NOTA
Quando a glibc determinar que o argumento no  uma uid vlida,
ela ir retorna \-1 e selecionar \fIerrno\fP para EINVAL sem tentar
a chamada de sistema.
.SH "VEJA TAMBM"
.BR setfsgid (2)
.SH TRADUZIDO POR LDP-BR em 21/08/2000.
\&\fR\&\f(CWAndr L. Fassone Canova <lonelywolf@blv.com.br> (traduo)\fR
\&\fR\&\f(CWxxxxxxxxxxxxxxxxxxxxxxxxx <xxx@xxxxxx.xxx.xx> (reviso)\fR
 |