You are not logged in.
There are two special options to disallow users which aren't in a particular group to execute newgrp command: -r and -R.
What is the difference, if any, between them?
Both works absolutely equally for me.
Thanks.
Offline
-r
Remove the password from the named group. Only group members will be allowed to use
newgrp to join the named group.
-R
Restrict the access to the named group. Only group members will be allowed to use newgrp
to join the named group.
Offline
Removing the password from the named group restricts the access to the named group. Both these options have the same effect: users who aren't in the group will not be able to use newgrp to change gid.
Offline