quota editing

Place to discuss Fedora and/or Red Hat

quota editing

Postby Stryker » Sun Mar 20, 2005 5:38 pm

does anyone know of a command line utility for editing quotas? I don't mean like edquota. I would like to do something like:
./setquota -u testuser --hard 10000

if possible.

Any ideas?



If not i'm thinking of something like:
EDITOR=echo edquota -u testuser | while read item; do sed 's/0\t0/10000\t0/g' $item > $item; done

but thats messy and probably wouldn't work
Stryker
scripter
scripter
 
Posts: 98
Joined: Thu Jan 23, 2003 8:50 pm

Postby Void Main » Sun Mar 20, 2005 6:24 pm

Doesn't setquota work for you? Here's the man page:

$ man setquota
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Stryker » Sun Mar 20, 2005 6:26 pm

yeah i just found that before you posted, feel kinda dumb considering setquota was my example...

I got it now tho. Thanks.
Stryker
scripter
scripter
 
Posts: 98
Joined: Thu Jan 23, 2003 8:50 pm

Postby Void Main » Sun Mar 20, 2005 6:31 pm

I got a little tip (well, maybe it's a tip). If I am wondering what commands are included with a package I just "rpm -qil packagename". Look for the files listed in /bin, /sbin, /usr/bin, /usr/sbin, etc. Then do a man on those commands.

e.g. rpm -qil quota | grep bin
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Stryker » Mon Mar 21, 2005 2:49 pm

Well, everything's working perfectly now. I used it as part of a script for the signup process of a new shell account service i'm creating. People can customize how much ram, process, logins, and disk space they want to pick their own price, pay with paypal, and have it create their account.

There's my cheap advertisement, http://noobify.com/

thanks again.
Stryker
scripter
scripter
 
Posts: 98
Joined: Thu Jan 23, 2003 8:50 pm


Return to Fedora/Red Hat

Who is online

Users browsing this forum: No registered users and 0 guests

cron