OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / man2 / setgid.2
1 .\" Copyright (C), 1994, Graeme W. Wilford. (Wilf.)
2 .\"
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.
6 .\"
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.
11 .\"
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
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" Fri Jul 29th 12:56:44 BST 1994  Wilf. <G.Wilford@ee.surrey.ac.uk>
24 .\" Modified 1997-01-31 by Eric S. Raymond <esr@thyrsus.com>
25 .\" Modified 2002-03-09 by aeb
26 .\"
27 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
28 .\"         all rights reserved.
29 .\" Translated Sat Mar  1 16:31:56 JST 1997
30 .\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
31 .\" Updated Fri Feb  7 JST 2003 by Kentaro Shirakata <argrath@ub32.org>
32 .\"
33 .\"WORD:        identity                ¼±ÊÌ
34 .\"WORD:        effective group ID      ¼Â¸ú¥°¥ë¡¼¥×ID
35 .\"WORD:        real group ID           ¼Â¥°¥ë¡¼¥×ID
36 .\"WORD:        saved set-group-ID      Êݸ¥»¥Ã¥È¥°¥ë¡¼¥×ID
37 .\"WORD:        implement               ¼ÂÁõ
38 .\"WORD:        superuser               ¥¹¡¼¥Ñ¡¼¡¦¥æ¡¼¥¶¡¼
39 .\"
40 .TH SETGID 2 2009-10-17 "Linux" "Linux Programmer's Manual"
41 .SH Ì¾Á°
42 setgid \- ¥°¥ë¡¼¥×¼±ÊÌ(identity)¤òÀßÄꤹ¤ë
43 .SH ½ñ¼°
44 .B #include <sys/types.h>
45 .br
46 .B #include <unistd.h>
47 .sp
48 .BI "int setgid(gid_t " gid );
49 .SH ÀâÌÀ
50 .BR setgid ()
51 ¤Ï¸Æ¤Ó½Ð¤·¸µ¤Î¥×¥í¥»¥¹¤Î¼Â¸ú (effective) ¥°¥ë¡¼¥×ID ¤òÀßÄꤹ¤ë¡£
52 ¤â¤·¥¹¡¼¥Ñ¡¼¡¦¥æ¡¼¥¶¡¼¤Ë¤è¤Ã¤Æ¸Æ¤Ó½Ð¤µ¤ì¤¿¾ì¹ç¤Ï¡¢
53 ¼Â (real) ¥°¥ë¡¼¥×ID ¤ÈÊݸ (saved) set-group-ID ¤âÀßÄꤵ¤ì¤ë¡£
54
55 Linux ¤Ë¤ª¤¤¤Æ¡¢
56 .BR setgid ()
57 ¤Ï
58 .B _POSIX_SAVED_IDS
59 ¤ò¤â¤Ã¤¿ POSIX ÈǤΤ褦¤Ë¼ÂÁõ¤µ¤ì¤Æ¤¤¤ë¡£
60 ¤³¤ì¤Ï set-user-ID-root ¤Ç¤Ê¤¤ set-group-ID ¥×¥í¥°¥é¥à¤Ë¤½¤Î¥°¥ë¡¼¥×¤Î
61 Æø¢¤ÎÁ´¤ÆÍî¤È¤·¡¢Æø¢¤ÎɬÍפʤ¤»Å»ö¤ò¤·¡¢ËÜÍè¤Î¼Â¸ú¥°¥ë¡¼¥×ID ¤Ë
62 °ÂÁ´¤ÊÊýË¡¤ÇºÆ¤ÓÌ᤹¤³¤È¤òµö¤¹¡£
63 .SH ÊÖ¤êÃÍ
64 À®¸ù¤·¤¿¾ì¹ç¤Ï¥¼¥í¤¬ÊÖ¤µ¤ì¤ë¡£¥¨¥é¡¼¤Î¾ì¹ç¤Ï \-1 ¤¬ÊÖ¤µ¤ì¡¢
65 .I errno
66 ¤¬Å¬ÀÚ¤ËÀßÄꤵ¤ì¤ë¡£
67 .SH ¥¨¥é¡¼
68 .TP
69 .B EPERM
70 ¸Æ¤Ó½Ð¤·¸µ¤Î¥×¥í¥»¥¹¤Ë¸¢¸Â¤¬¤Ê¤¯ (\fBCAP_SETGID\fP ¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£¤¬¤Ê¤¯)¡¢¤«¤Ä
71 .I gid
72 ¤¬¸Æ¤Ó½Ð¤·¸µ¤Î¥×¥í¥»¥¹¤Î¼Â¥°¥ë¡¼¥×ID ¤ÈÊݸ¥»¥Ã¥È¥°¥ë¡¼¥×ID
73 ¤Î¤É¤Á¤é¤È¤â°ìÃפ·¤Ê¤¤¡£
74 .SH ½àµò
75 SVr4, POSIX.1-2001.
76 .SH ´ØÏ¢¹àÌÜ
77 .BR getgid (2),
78 .BR setegid (2),
79 .BR setregid (2),
80 .BR capabilities (7),
81 .BR credentials (7)