* ADVFs & quotas
@ 1998-08-19 15:10 Jonathan Nicholson
0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Nicholson @ 1998-08-19 15:10 UTC (permalink / raw)
To: tru64-unix-managers
Hi, we just had an ADVFS file set complain that a quota had been exceeded,
quotas are not being used on this file set.
I've been told previously by Digital that there is a known bug and there
is a work around...
I can't remember what it was though!
Any one heard of this?
Regards,
Jonathan
----------------------------------------------------------------------------
= Jonathan Nicholson - System Administrator +44 1223 494987 (internal 4987) =
= The Sanger Centre, Wellcome Trust Genome Campus, Hinxton, Cambs, CB10 1SA =
= Email: jjn@sanger.ac.uk (Work) (finger jjn@byron.sanger.ac.uk for PGP Key) =
----------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
* advfs quotas
@ 2003-01-14 15:37 vms unix
0 siblings, 0 replies; 5+ messages in thread
From: vms unix @ 2003-01-14 15:37 UTC (permalink / raw)
I have quotas working perfectly in my /usr/users/$USERNAME. However it would be nice
for the recipient or the sender to get an email notfiying that the recipient has
exceeded its disk space. Is that possible with advfs. Share your comments, thanks.
Vishu
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* advfs quotas
@ 2002-10-02 18:38 Rodney Simioni
0 siblings, 0 replies; 5+ messages in thread
From: Rodney Simioni @ 2002-10-02 18:38 UTC (permalink / raw)
Original Question:THANKS to ALL; overall, edquota command is not
interactive, will need to write script.
I have parsed out my huge /etc/passwd file so that I have a file containing
the usernames. Now, I want to use the edquota
command so that I can set advfs quotas. The advfs manual did not indicate
setting quotas on a file containing usernames was possible. Can Advfs allow
me to set quotas on a file containing user names? I'm trying to avoid
setting quotas on many individual users separately or groups.
TIA
Rod
================================================
Replies:
simon.g.millard
Create a quota for a user - we'll call him default_user.
Then do this:
for i in `cat listofnames`
do
edquota -p default_user -u $i
===============================================
you could do something like
awk '{system("edquota -p proto_user -u " $1)}' userfile
this runs the edquota on each user in the userfile and copies proto_user's
settings to the user.
This assumes that userfile is a file with one username per line.
-charlie
===============================================
How about scripting it. As the edquota man page says, set 1 user and
use that user as the template. Then set all the users in a simple
shell loop like this:
for i in `cat parsedusersfrompasswd` ; do edquota -t templateuser $i ;
done
Short and sweet.
--
Jay R. Wren
===============================================
Nothing in the "edquota" reference page implies that it doesn't
expect to be interactive, but I suspect that if you made your
editor be "cat" and used the "apply a prototype allocation to
the named user" variation, you could write a script to run it
all for you. I'd try it on a few test cases first.
Tom
===============================================
If your usernames are in a file called "usernames", you can:
#ksh
#cat usernames |while read newuser; do /usr/sbin/edquota -p prueba
$newuser;done
So the quota of "prueba" user (a user you had created before and
has quota) is copied to all the users you have in your file "usernames".
Jo
===============================================
Not exactly what you want, but I've done something similar... On our
system, any given user's quota is dependent upon what group they're in.
So I created a prototype user for each group; dummy IDs with no real
login. Once the prototypes are set up, it's relatively easy to change a
bunch of users or create new users using the prototype:
vedquota -p prototype -u user
This does not pop you into an editor to change values, it just makes
everything the same as the prototype user! Put that in a script loop, and
you can do your entire userbase in a relatively short time!
Pablo
^ permalink raw reply [flat|nested] 5+ messages in thread* Advfs Quotas
@ 2002-09-30 19:54 Rodney Simioni
0 siblings, 0 replies; 5+ messages in thread
From: Rodney Simioni @ 2002-09-30 19:54 UTC (permalink / raw)
I have parsed out my huge /etc/passwd file so that I have a file containing
the usernames. Now, I want to use the edquota
command so that I can set advfs quotas. The advfs manual did not indicate
setting quotas on a file containing usernames was possible. Can Advfs allow
me to set quotas on a file containing user names? I'm trying to avoid
setting quotas on many individual users separately or groups.
TIA
Rod
^ permalink raw reply [flat|nested] 5+ messages in thread
* advfs quotas
@ 1996-07-08 16:11 pcwood
0 siblings, 0 replies; 5+ messages in thread
From: pcwood @ 1996-07-08 16:11 UTC (permalink / raw)
To: tru64-unix-managers
Hello,
We need to create a program for use by our help desk to allow them to
change disk quotas on users accounts. There is a system function call
(quotactl) but it says it only works on ufs type file systems. There
is also some mention of supporting advfs, but my 4.0T beta version
doesn't have anything. I am very curious if the actual 4.0 will
work correctly.
Summary will be posted. Thanks.
--
-=( Paul Wood http://thunder.temple.edu/~pcwood)=-
-=( pcwood@uniblab.ocis.temple.edu Temple University Computer Services)=-
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-01-14 15:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-19 15:10 ADVFs & quotas Jonathan Nicholson
-- strict thread matches above, loose matches on Subject: below --
2003-01-14 15:37 advfs quotas vms unix
2002-10-02 18:38 Rodney Simioni
2002-09-30 19:54 Advfs Quotas Rodney Simioni
1996-07-08 16:11 advfs quotas pcwood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox