a user is involved in 3 groups x,y,z
whenever the user try to execute a script, script should ask for the group as input from user ,assume the group he wants to change as Y and the rest of the scripts command should go fine,once it done.
if i check my shell prompt,
$id
$
i dont get any o/p, and id command does noot work, but when i exit from the shell the id command works and the group is not getting changed.
what is the right way to execute newgrp cmd inside shell or perl script?
On id not giving output. id could be an alias or something. Try some of these commands:
type id
\id
/usr/bin/id
newgrp varies quite a bit between the various OS flavours and versions, so we need you environment before going on. Also it would be worth describing why you think you need to use newgrp as other options may work better.
Sunos 5.10 is the version, i want to create a clearcase object throuh my script with the relevant group of clearcase admin. so that the clearcase object i create will belong to that group of the id,