2

If I create a new user test1 using the adduser/useradd command, how much space does Ubuntu assign to the test1 user?

What happens when I have 10 users on my system? Do all of them use the same amount of space?

Fabby
  • 35,017

2 Answers2

6

The minimum amount of space a user needs is:

fab-root@fab-ux-predator:/home/test_user
$ du --human .
36K .

The maximum amount of space a user can take is 95% of the entire partition unless you set disk quotas per user or unless you change the number of reserved blocks to allow them to take more or less than 95%...

Fabby
  • 35,017
3

The standard setup is that the size of the directory /home/test1 is only limited by the size of the partition and its file system and the space allowed for standard users to access.

5% of the space in an ext4 file system is reserved for the system and for running tasks with elevated permissions.

See man mkfs.ext4,

-m reserved-blocks-percentage

Specify the percentage of the filesystem blocks reserved for the super-user. This avoids fragmentation, and allows root-owned daemons, such as syslogd(8), to continue to function correctly after non-privileged processes are prevented from writing to the filesystem. The default percentage is 5%.

sudodus
  • 47,684