From owner-FreeBSD-users-jp@jp.freebsd.org  Mon Dec  7 22:49:11 1998
Received: by jaz.jp.freebsd.org (8.9.1+3.1W/8.7.3) id WAA08940;
	Mon, 7 Dec 1998 22:49:11 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from quartz.ocn.ne.jp (quartz.ocn.ne.jp [203.139.160.169])
	by jaz.jp.freebsd.org (8.9.1+3.1W/8.7.3) with ESMTP id WAA08934
	for <FreeBSD-users-jp@jp.freebsd.org>; Mon, 7 Dec 1998 22:49:10 +0900 (JST)
	(envelope-from dai@quartz.ocn.ne.jp)
Received: from x01j70o4 by quartz.ocn.ne.jp (8.8.8/8.8.8) id WAA15201; Mon, 7 Dec 1998 22:49:07 +0900 (JST)
Message-Id: <199812071349.WAA15201@quartz.ocn.ne.jp>
From: "DAISUKE" <dai@quartz.ocn.ne.jp>
To: <FreeBSD-users-jp@jp.freebsd.org>
Date: Mon, 7 Dec 1998 22:48:34 +0900
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1157
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-2022-JP
Content-Transfer-Encoding: 8bit
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+981115
X-Sequence: FreeBSD-users-jp 36188
Subject: [FreeBSD-users-jp 36188] su + su- + GID + UID
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org

Hama@OCN$B$G$9!#(J

su$B$H(Jsu -$B$N(JGID$B$H(JUID$B$K4X$7$F$4;XF3$r2<$5$$!#(J
/etc/passwd$B$NFbMF$O!$(J

root:*:0:0:Charlie &:/root:/bin/csh
toor:*:0:0:Bourne-again Superuser:/root:
daemon:*:1:1:Owner of many system processes:/root:/nonexistent
operator:*:2:20:System &:/usr/guest/operator:/bin/csh
bin:*:3:7:Binaries Commands and Source,,,:/:/nonexistent
games:*:7:13:Games pseudo-user:/usr/games:/nonexistent
news:*:8:8:News Subsystem:/:/nonexistent
man:*:9:9:Mister Man Pages:/usr/share/man:/nonexistent
uucp:*:66:66:UUCP
pseudo-user:/var/spool/uucppublic:/usr/libexec/uucp/uucico
xten:*:67:67:X-10 daemon:/usr/local/xten:/nonexistent
nobody:*:65534:65534:Unprivileged user:/nonexistent:/nonexistent
ftp:*:14:5:Anonymous FTP Admin:/var/ftp:/nonexistent
wnn:*:50:50:wnn kana kanji:/home/wnn:/bin/csh
hama:*:1001:1001:HamaDesu:/home/hama:/bin/csh
pop:*:68:1:Post Office Owner:/nonexistent:/nonexistent
ftp:*:2002:40::0:0:anonymous ftp:/home/ftp:/nonexistent

$B$H$J$C$F$$$^$9!#(J/etc/group$B$NFbMF$O!$(J

wheel:*:0:root,hama
daemon:*:1:daemon
kmem:*:2:root
sys:*:3:root
tty:*:4:root
operator:*:5:root,hama
bin:*:7:
news:*:8:
man:*:9:
games:*:13:
staff:*:20:root
guest:*:31:root
wnn:*:50:
uucp:*:66:
xten:*:67:xten
dialer:*:68:
hama:*:1001:
nogroup:*:65533:
nobody:*:65534:
ftp:*:400:ftp

$B$H$J$C$F$$$k4D6-$G2<5-$N%3%^%s%I$r<B9T$7$^$9!#(J

%su
#tar xvfz xsnow-1.40.tar.Z
#exit
%su -
#cd /home/hama
#tar xvfz xearth-1.0.tar.Z
#exit
%ls -al
total 7734
drwxr-xr-x  10 hama   hama      1024 Dec  5 01:59 .
drwxr-xr-x  10 hama   hama      1024 Dec  5 01:43 ..
drwxr-xr-x   2 11587  100       1024 Sep 30  1995 xearth-1.0
-rw-r--r--   1 hama   hama    153162 Nov  3 20:57 xearth-1.0.tar.gz
drwxr-xr-x   2 1002   staff     1024 Dec  1  1995 xsnow-1.40
-rw-r--r--   1 hama   hama     61007 Nov  3 20:57 xsnow-1.40.tar.Z

$B$G!"(JUID=11587 GID=100$B$H$J$C$F$7$^$&$N$O(Jgroup$B$K(J11587$B$,L5$/!"(Jpasswd$B$K$b(J
100$B$,L5$$$?$a$G!$(Jsu - $B4D6-$G:n$C$?(JDirectrory$B$d(JFile$B$OA4$F?t;z$K$J$C$F(J
$B$7$^$$$^$9!#$=$3$G!$(Jsu $B$H$9$k$H(J UID$B$,(J1002$B$H$J$C$F$7$^$$$^$9!#$3$N>l9g$O(J
UID$B$N$_$G$9!#(J

group$B$H(Jpasswd$B%U%!%$%k$K$=$l$>$l$N(JGID$B$H(JUID$B$,B8:_$7$J$$$?$a!$?t;zI=5-$K(J
$B$J$C$F$7$^$&$N$@$H;W$&$N$G$9$,!$$3$l$r=$@5$9$k$3$H$O=PMh$J$$$N$G$7$g$&$+!)(J

FreeBSD-2.2.1R$B$r;H$C$F$$$F(JOS$B$N4D6-$OKX$I%$%s%9%H!<%k$7$?$^$^$G$9!#(J
$B$b$7$+$7$?$i!$<jF0$G(Jsu su -$B$N0Y$K(JGID$B$H(JUID$B$r:n@.$7$F(Jgroup$B$H(Jpasswd$B%U%!%$%k$r(J
$B=$@5$7$J$/$F$O$$$1$J$$$N$G$7$g$&$+!)(J
$B$b$7!$=$@5$7$J$/$F$O$$$1$J$+$C$?$i$I$NHV9f$r;H$($P$h$$$N$G$9$+!)(J

$B$_$J$5$s$O$I$&$7$F$^$9$+!)(J
$B59$7$/$4;XF3$*4j$$CW$7$^$9!#(J



