Path: utzoo!utgpu!attcan!uunet!auspex!guy From: guy@auspex.UUCP (Guy Harris) Newsgroups: comp.unix.wizards Subject: Re: Need to use newgrp or equivalent Message-ID: <403@auspex.UUCP> Date: 4 Nov 88 18:57:06 GMT References: <514@voodoo.UUCP> <1843@cbnews.ATT.COM> Reply-To: guy@auspex.UUCP (Guy Harris) Distribution: na Organization: Auspex Systems, Santa Clara Lines: 10 >Assuming you are using the standard /bin/sh, turning on the setuid bit >of /bin/newgrp is unlikely to have any impact since the newgrp command >is a built-in command (also built-in in ksh). A built-in command that "exec"s "newgrp" as its last act; unless your shell is itself set-UID, it's unlikely to be able to change your effective group ID (unless your OS lets you do this without root privileges, and most UNIX versions will, at most, let you change it to match your real group ID or, in systems that support it, your saved set-group ID). So turning on the set-UID bit *could* have an impact.