.\" Copyright (C) 1995, Thomas K. Dyas .\" .\" 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 .\" .\" Traducción de Urko Lusa el 27/01/98 .\" Translation revised Sat Jan 29 2000 by Juan Piernas .\" .TH SETFSUID 2 "6 agosto 1995" "Linux 1.3.15" "Manual del programador de Linux" .SH NOMBRE setfsuid \- establece la identidad del usuario que accede al sistema de ficheros .SH SINOPSIS .BI "int setfsuid(uid_t " fsuid ) .SH DESCRIPCIÓN .B setfsuid establece el identificador de usuario que el núcleo de Linux usa para comprobar todos los accesos al sistema de ficheros. Normalmente, el valor de .I fsuid cambiará según el valor del usuario efectivo. De hecho, cada vez que el usuario efectivo cambie, .I fsuid también cambiará al nuevo valor del usuario efectivo. Las llamadas explícitas a .B setfsuid normalmente sólo se usan en programas como el servidor NFS de Linux, que necesitan cambiar el identificador de usuario para acceder a un fichero, pero sin cambiar los identificadores real y efectivo. Un cambio en el identificador real del usuario para un programa como el servidor NFS supondría un agujero de seguridad, al quedar expuesto a otras señales no deseadas desde otros identificadores de usuario. .B setfsuid sólo tendrá éxito si quien lo invoca es el superusuario o si .I fsuid coincide con el identificador de usuario real, con el identificador de usuario efectivo, con el setuid guardado o con el valor actual de .IR fsuid . .SH "VALOR DEVUELTO" En caso de éxito, se devolverá el valor anterior de .IR fsuid . En caso de error, se devolverá el valor actual de .IR fsuid . .SH "CONFORME A" .B setfsuid es específico de Linux y no debería usarse en programas que se pretende sean portables. .SH ERRORES No se devuelve ningún mensaje de error a quien lo invoca. Al menos, debería devolverse .B EPERM cuando todas las llamadas fallen. .SH "VÉASE TAMBIÉN" .BR setfsgid (2)