Question

Share 50 GB of space with a friend

  • Posted August 21, 2014

Hey!

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

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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

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