The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 12-02-2005
rhfrommn rhfrommn is offline
Registered User
 

Join Date: Nov 2003
Location: Minnesota
Posts: 387
There are a couple things going on here. First, when you change your group in /etc/password it changes which group you belong to, but that won't have any effect on files that are already created. From now on, all files you create will have group try, but anything from before won't change.

That is why in your second post you needed to do the chgrp. When you did the chgrp try /user/abc, that will change the group for JUST /user/abc. If you want it to change the group for everything below you need to tell the chgrp command that. In Solaris it would be:

chgrp -R try /user/abc

If you are using a different Unix version just check the manpage for chgrp to verify that the switch is -R for you as well.

Hope that clears it up for you.

Last edited by rhfrommn; 12-02-2005 at 08:10 AM. Reason: Added more information
Reply With Quote