Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Mar 2004 11:26:29 -0600 (CST)
From:      jim@southernuniform.com
To:        lag@ipwatchers.net
Cc:        questions@freebsd.org
Subject:   Re: Re: Security related questions
Message-ID:  <200403301726.i2UHQTd3050683@archangel.daleco.biz>

next in thread | raw e-mail | index | archive | help
> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403301726.i2UHQTd3050683>