Low Orbit Flux Logo 2 F

Linux Command - newgrp

The Linux command newgrp can be used to change the primary group membership of a user for a session.

Change primary group membership to this group:



newgrp  group1

Reinitialize env as if user just logged in ( using a dash ):



newgrp - group1

Reset primary group to users default group:



newgrp