useradd to automatically create btrfs subvolume
Hi,
Is there any way that useradd can be coerced to create a new btrfs subvolume for the new user instead of simply a new directory?
As of now I do it 'manually' :
create subvolume, copy /etc/skel stuff, create user, chown subvolume.
Wrapping useradd in a custom script is an option too, but is not preferred.
Thanks.
Serafean.
|