You are not logged in.

#1 2008-06-24 11:47:23

Myav
Member
Registered: 2007-05-07
Posts: 58

"gpasswd -R" vs "gpasswd -r": what is the difference?

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

#2 2008-06-24 12:01:11

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: "gpasswd -R" vs "gpasswd -r": what is the difference?

-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

#3 2008-06-24 12:11:38

Myav
Member
Registered: 2007-05-07
Posts: 58

Re: "gpasswd -R" vs "gpasswd -r": what is the difference?

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

Board footer

Powered by FluxBB