Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!sun-barr!ames!rex!ginosko!uunet!visdc!jiii From: jiii@visdc.UUCP (John E Van Deusen III) Newsgroups: comp.unix.questions Subject: Re: newgrp in shell programs Summary: Any anomalous "gotcha" behavior with newgrp(1)? Message-ID: <604@visdc.UUCP> Date: 21 Jul 89 22:24:57 GMT References: <124@sdcc10.ucsd.EDU> Reply-To: jiii@visdc.UUCP (John E Van Deusen III) Organization: VI Software Development, Boise, Idaho Lines: 17 I have always wanted to ask this, and since Mr. Mohler has brought up the subject: What if you login, su (one or more times) to another id that belongs to some other group, and then invoke newgrp with no options? Do you end up in with the gid of the original login and the uid of the latest su? With respect to article <124@sdcc10.ucsd.EDU> bruno@sdcc10.ucsd.EDU (Bruce W. Mohler), I believe the couth way to invoke a command from crontab is to use su -c. -- John E Van Deusen III, PO Box 9283, Boise, ID 83707, (208) 343-1865 uunet!visdc!jiii