Dino Geek, try to help you

How to configure disk quotas for SFTP users?


To configure disk quotas for SFTP users, follow the below steps:

1. Enable quotas on your system by editing the “fstab” file and adding “usrquota” and “grpquota” to the mounted hard drive. For example:

/dev/sda1 /home ext4 defaults,usrquota,grpquota 0 2

1. Install the “quota” package on your system:

sudo apt-get install quota

1. Create a quota database file for each file system you want to monitor:

sudo quotacheck -cug /home

1. Turn on disk quotas on the file system:

sudo quotaon /home

1. Set the soft and hard quotas for each user:

sudo edquota -u username

1. Restart the SFTP server:

sudo service ssh restart

1. Test the quotas by logging in as a user and trying to upload a file that exceeds their quota limit. The system should deny the upload and inform the user of the limit.

Note: The above steps may vary depending on the Linux distribution you are using.


Simply generate articles to optimize your SEO
Simply generate articles to optimize your SEO





DinoGeek offers simple articles on complex technologies

Would you like to be quoted in this article? It's very simple, contact us at dino@eiki.fr

CSS | NodeJS | DNS | DMARC | MAPI | NNTP | htaccess | PHP | HTTPS | Drupal | WEB3 | LLM | Wordpress | TLD | Domain name | IMAP | TCP | NFT | MariaDB | FTP | Zigbee | NMAP | SNMP | SEO | E-Mail | LXC | HTTP | MangoDB | SFTP | RAG | SSH | HTML | ChatGPT API | OSPF | JavaScript | Docker | OpenVZ | ChatGPT | VPS | ZIMBRA | SPF | UDP | Joomla | IPV6 | BGP | Django | Reactjs | DKIM | VMWare | RSYNC | Python | TFTP | Webdav | FAAS | Apache | IPV4 | LDAP | POP3 | SMTP

| Whispers of love (API) | Déclaration d'Amour |






Legal Notice / General Conditions of Use