01-21-2009
allocate user quota using perl script
Hi
I'm a student who is studying system administration. I need to write a perl script to allocate disk quota to users. I'm using ubuntu and When I try to run edquota command in command line it says that Can't find file system with quota. pls help me. I tried to edit fstab. but didn't work.
Piumali
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
how can I check mail quota, and then how can I send mail to user whose quota get full??? :confused:
For this which script must I use? (8 Replies)
Discussion started by: emreatlier
8 Replies
2. Linux
I've a redhat 9.0 and I want to set a user quota.
but the question is where should I start from and
How ???
:confused: :confused: :confused: :confused: (2 Replies)
Discussion started by: KaiXiang
2 Replies
3. UNIX for Advanced & Expert Users
Hi Guru,
Need some advice on the PROs and CONs between setting up user quota with NAS and Nis.
Thanks
Regards. YLL (1 Reply)
Discussion started by: yll
1 Replies
4. UNIX for Dummies Questions & Answers
hi!
i would like to enable user quota on my system (FreeBSD 6.2)
i've check on enabling user quota here but i still confuse with fstab
it shows there:
/dev/da1s2g /home ufs rw,userquota 1 2
but my current /etc/fstab :
# Device Mountpoint FStype Options ... (1 Reply)
Discussion started by: rdns
1 Replies
5. Red Hat
Hi,
I want to apply the user quota, but i am unable to apply the quota to user.
Kindly provide the guide line, so that i can sortout the problem.
Step 1: Create partion on device
#fdisk /dev/sda (because hard disk is scsi)
#n (new partition table) i.e /dev/sda8.
#p ( to print the partition... (2 Replies)
Discussion started by: sahu.tapan
2 Replies
6. UNIX for Advanced & Expert Users
Whats the best method of setting lvm user quota? I saw both of these and I am not sure which to use.
Linux File System Quotas
Howtos Linux-Vserver With LVM And Quotas - 5dollarwhitebox.org Media Wiki (1 Reply)
Discussion started by: cokedude
1 Replies
7. Linux
I have setup a group quota for better disk usage.
What i am doing is to setup a quota with Samba share. I created user1,user2 and group project1 which belongs to /home/project1 dir. Quota is implemented on project1 group to write 100 MB on this share and This is working fine if a user1 and user2... (3 Replies)
Discussion started by: sunnysthakur
3 Replies
8. Red Hat
Hi,
I would like to know wheather we can increase the quota for particular user automatically?
I am having requirement to increase the quota only for 2 days in a week. but that shoule be automatically instead of manualy modification.
is it possible? (3 Replies)
Discussion started by: manoj.solaris
3 Replies
9. Shell Programming and Scripting
Hi
I am looking to automate the process in PERL of allocating IP addresses from a set range of addresses (for example a /22 network 10.10.224.1 - 10.10.227.254)
I am able to query the IP addresses that are already in use in the above range, which will produce me a list like this for example... (3 Replies)
Discussion started by: hcclnoodles
3 Replies
10. Shell Programming and Scripting
How the User Quota query from an SSH access to Linux Shell. (5 Replies)
Discussion started by: Linuxmann
5 Replies
QUOTA(1) BSD General Commands Manual QUOTA(1)
NAME
quota -- display disk usage and limits
SYNOPSIS
quota [-ghu] [-v | -q]
quota [-hu] [-v | -q] user
quota [-gh] [-v | -q] group
quota -d [-gh] [-v | -q]
DESCRIPTION
quota displays users' disk usage and limits. By default only the user quotas are printed.
Options:
-d Query the kernel for default user or group quota instead of a specific user or group.
-g Print group quotas for the group of which the user is a member. The optional -u flag is equivalent to the default.
-h Numbers are displayed in a human readable format.
-q Print a more terse message, containing only information on file systems where usage is over quota.
-v quota will display quotas on file systems where no storage is allocated.
Specifying both -g and -u displays both the user quotas and the group quotas (for the user).
Only the super-user may use the -u flag and the optional user argument to view the limits of other users. Non-super-users can use the -g
flag and optional group argument to view only the limits of groups of which they are members.
Only the super-user may use the -d flag.
The -q flag takes precedence over the -v flag.
quota tries to report the quotas of all mounted file systems. If the file system is mounted via NFS it will attempt to contact the
rpc.rquotad(8) daemon on the NFS server. If quota exits with a non-zero status, one or more file systems are over quota.
SEE ALSO
libquota(3), fstab(5), edquota(8), quotacheck(8), quotaon(8), repquota(8), rpc.rquotad(8)
HISTORY
The quota command appeared in 4.2BSD.
BSD
May 12, 2012 BSD