Share 50 GB of space with a friend

Posted August 21, 2014 2k views


I have a friend i would like to share 50GB to on a server i have, but how can i share the 50GB and no more then 50GB ?

OS is debian

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

Check out this tutorial for info on how to limit the user to a specific amount of disk space:

How To Enable User and Group Quotas

Then if you want to limit the user to only accessing their home directory over SFTP, you can edit /etc/ssh/sshd_config to include:

Match User username
    ChrootDirectory %h
    AllowTCPForwarding no
    X11Forwarding no
    ForceCommand internal-sftp

Thanks, i’ll have a look at that :)