Security related questions
    jim at southernuniform.com 
    jim at southernuniform.com
       
    Tue Mar 30 09:27:54 PST 2004
    
    
  
> could anyone explain some examples of setting up a restricted group for
> limiting users?  using chmod and chown.. i\'ve had a little luck, but not
> overall.
Is this what you\'re asking for?
   #echo \"jamesgroup:*:5000:james,me\" >> /etc/group
   #touch /home/me/james-file
   #chgrp jamesgroup /home/me/james-file
   #chmod 770 /home/me/james-file
Note that \"5000\" was an arbitrary choice.  At the
very least, it should be a gid that isn\'t already
present ;-)
If you\'ve never played with /etc/group before, be
sure you have a backup copy before you start ...
Kevin Kinsey
DaleCo, S.P.
    
    
More information about the freebsd-questions
mailing list