1 .\" Copyright (C) 1995, Thomas K. Dyas <tdyas@eden.rutgers.edu>
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date. The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein. The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" Created Sun Aug 6 1995 Thomas K. Dyas <tdyas@eden.rutgers.edu>
24 .\" Translated to German Sun Oct 06 1996 by Patrick Rother <krd@gulu.net>
26 .TH SETFSGID 2 "6. Oktober 1996" "Linux 1.3.15" "Systemaufrufe"
28 setfsgid \- setze Gruppenidentität für Dateisystemzugriff
30 .BI "int setfsgid(uid_t " fsgid )
33 setzt die Gruppenkennung (Group ID), die der Linuxkernel bei
34 Dateisystemzugriffen prüft. Normalerweise stimmt der Wert von
36 mit der effektiven Gruppenkennung überein. Jedenfalls wird immer, wenn
37 die effektive Gruppenkennung geändert wird,
39 auch geändert auf den neuen Wert der effektiven Gruppenkennung.
41 Ein expliziter Aufruf von
43 ist gewöhnlich nur nötig in Programmen wie dem Linux NFS Server, der
44 die Gruppenkennung ändern muss, die für Dateizugriffe benutzt wird,
45 ohne die echte oder effektive Gruppenkennung zu ändern. Ändern der normalen
46 Gruppenkennung bei Programmen wie dem NFS Server ist eine Sicherheitslücke,
47 die es ungewünschten Signalen von anderen Gruppenkennungen aussetzen kann.
50 wird nur erfolgreich sein wenn der Aufrufer der Superuser ist oder wenn
52 der realen, effektiven oder gesicherten Gruppenkennung gleichkommt, oder
53 dem aktuellen Wert von
57 Bei Erfolg wird der frühere Wert von
59 zurückgegeben. Im Fehlerfall wird der aktuelle Wert von
66 Es wird dem Aufrufer keine Fehlermeldung zurückgegeben. Zumindest müsste
68 zurückgegeben werden wenn der Aufruf fehlschlägt.