HostOnNet Blog

Editing User Quota in Linux

Looking for Linux Server Admin or WordPress Expert? We can help.

Today i created a user on Linux server for using as FTP backup.
 
After creating the user, i checked its quota and found it is 1 GB
 
# adduser backup
# passwd backup
 
# quota backup
Disk quotas for user backup (uid 32373):
Filesystem blocks quota limit grace files quota limit grace
/dev/sda3 52 1024000 1024000 7 0 0
#
 
The server have lot of free space, so i need to make 10 GB backup space.
 
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 229G 9.6G 207G 5% /
/dev/sda1 99M 17M 78M 18% /boot
none 1010M 0 1010M 0% /dev/shm
/usr/tmpDSK 485M 11M 449M 3% /tmp
/tmp 485M 11M 449M 3% /var/tmp
#
 
This can be done with edquota command. edquota will open in vi text editor or the editor specified in VISUAL, if you use pico, you cn change it to vi with
 
# export VISUAL=vi
 
To change quota of user backup
 
# edquota backup
Disk quotas for user backup (uid 32373):
Filesystem blocks soft hard inodes soft hard
/dev/sda3 52 1024000 1024000 7 0 0
 
Then add a ZERO to end of soft and hard limits, that is it will become
 
 
# edquota backup
Disk quotas for user backup (uid 32373):
Filesystem blocks soft hard inodes soft hard
/dev/sda3 52 10240000 10240000 7 0 0
 
You can change quota with command line using quotatool available at
 
 

Posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.