Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Home directory quotas




On Sep 27, 2004, at 9:19 AM, email@hidden wrote:

Does anyone know how to do lots of users at once if your users exist in
and AD domain?
You can do it via WGM if the users have been dragged over into an OD
group from AD

I tried
edquota -p 'templateuser'  *


Because that took the contents of your current working dir and passed them to edquota.


The easiest thing is something like:

#!/bin/sh
for i in `dscl /Active\ Directory/yourdomain.com -list /Users`
do
	edquota -p 'template' $i
done

If you exceed the search limits of your AD, though, you'll have to fall back to using ldapsearch, and retrieving users alphabetically.

http://www.4am-media.com
Mac OS X Consulting and Training
Michael Bartosh
email@hidden
303.517.0272
Denver, CO


"The surest way to corrupt a youth is to instruct him to hold in higher regard those who think alike than those who think differently."

- -- Nietzsche

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden
References: 
 >RE: Home directory quotas (From: <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.