home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!seven-up.East.Sun.COM!sungy!stasys!huedv!thu
- From: thu@huedv.hu.sub.org (Thomas Huppertz)
- Newsgroups: comp.unix.sysv386
- Subject: ISC / Posix-Features (many groups)
- Message-ID: <3491@huedv.hu.sub.org>
- Date: 21 Dec 92 04:28:00 GMT
- Sender: news@stasys.sta.sub.org
- Reply-To: thu@huedv.hu.sub.org
- Organization: HUPPERTZ EDV-Beratung, Thererstr. 10, 8083 Mammendorf, Germany
- Lines: 49
-
-
- Hello,
-
- has anyone from you experiences with the Posix-Mode in the ISC-Unix?
- (I use Version 3.0)
-
- I build a little programm (call it "posix"), gave it root/root and
- set the s-bit on it. I wanted to test the feature of beeing in more than
- one group.
- But when I start it as a usual user, it will not give the posix-groups.
- Other posix-functions seem to work (disallowing longer filenames,
- disallowing chmod, etc.)
-
- When I start the same program as root, and afterwards 'su' to a
- user, I have my posix-groups as a usual user, too.
-
- What is going wrong (with me - or the programm - or the ISC?) :-)
-
- Now the programm 'posix.c'
- ----------------------------------------------------------------------
- main ()
- {
- int user_nr;
- int grp_nr;
-
- __setostype(0);
-
- user_nr = getuid();
- grp_nr = getgid();
-
- setuid(0); setgid(0);
- __setostype (1);
-
- setgid(grp_nr);
- setuid(user_nr);
- system ("/usr/local/bin/tcsh");
- }
- ----------------------------------------------------------------------
-
- Any ideas?
-
- Merry Christmas,
- Thomas
-
- --
- ==================== Gruss: === Thomas === Huppertz ========================
- HUPPERTZ EDV-Beratung, Thererstr. 10, 8083 Mammendorf, Germany
- Tel. ++49-8145-1569, Fax. ++49-8145-8286
- ==================== EMail:== thu@huedv.hu.sub.org ==========================
-