newgrp in shell programs

John E Van Deusen III jiii at visdc.UUCP
Sat Jul 22 08:24:57 AEST 1989


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 at sdcc10.ucsd.EDU> bruno at 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



More information about the Comp.unix.questions mailing list