Stefan H.
Stefan H.

Share 50 GB of space with a friend

August 21, 2014 886 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

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
by Jan Stevens
Quotas are used to limit the amount of disk space a user or group can use on the server. There are generally two different methods of managing quotas: first, an empty file system can be created and mounted for a specific user. An advantage of this method is that no additional package is required. Second, the quota tool can be used to dynamically manage the disk quota of a user or a group. A big advantage is the possibility to change quotas on the fly without any complicated disk resizing. This guide mainly focuses on the creation of user specific quotas; however, all the commands are exactly the same for group quotas. Instead of a user name, a group name can be used in the described commands.

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

Have another answer? Share your knowledge.