tldr/pages/linux/newgrp.md
2019-04-29 22:52:33 +02:00

197 B

newgrp

Switch primary group membership.

  • Change user's primary group membership:

newgrp {{group_name}}

  • Reset primary group membership to user's default group in /etc/passwd:

newgrp