[Sunhelp] Disk quota by group.
John Kennedy
jkennedy at orent.com
Thu Jul 22 08:06:17 CDT 1999
Leon,
Thanks for the suggestion. The problem we are having is that we do not
want a user quota at all. We are a Graphic Arts company. As a result
there are several large graphic files that will be worked on by several
people. If one user is working on a large page of graphics we can't
have a quota for this user stopping them from working. The only way we
can do this right now is to have each department log on with only 1 user
ID (up to 40 people using the same Logon ID is not quite my idea of
secure) and set the user quota that way.
I want to give everyone their own ID for obvious security reasons but
can't figure out the quota's.
John
Leon Halford - Open Systems Solutions Ltd wrote:
>
> Try the following..
> > Date: Wed, 21 Jul 1999 14:09:27 -0500
> > From: John Kennedy <jkennedy at orent.com>
> > Subject: [Sunhelp] Disk quota by group.
> >
> > I am looking for a script or app that will allow me to set disk quotas
> > by group instead of by user.
>
> Try something like the following.. it all comes down to using the (edquota -p
> command though). I'm assuming use of /etc/passwd, swap for ypcat passwd if using
> NIS.
>
> GROUPNAME="lp"
> groups `cat /etc/passwd | awk '{FS=":";print $1}'` | grep " $GROUPNAME" | awk
> '{print $1}' | xargs edquota -p template_user
>
> Where template_user is a quota profile previously defined for a typical user of
> the group.
>
> For more information, man edquota (-p option)
>
> Leon Halford.
>
> _______________________________________________
> SunHELP maillist - SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
More information about the SunHELP
mailing list