I have with Webmin installed on an Ubuntu 16.04.2 server. I have MariaDB installed on a separate Ubuntu 16.04.1 server. On the Webmin server, I have the /home directories mounted on a Gluster filesystem. The bricks for the Gluster filesystem are all provided on separate systems.
On the Webmin server, I can manually create a user and create a home directory for it:
root@lamphost4-virtualmin:/etc# ll /home
total 8
drwxr-xr-x 10 root root 10 Apr 4 11:49 ./
drwxr-xr-x 23 root root 4096 Feb 27 15:22 ../
drwxr-xr-x 2 root root 3 Nov 10 11:14 .ctdb/
drwxr-xr-x 7 curtisb curtisb 25 Mar 1 16:17 curtisb/
drwxr-xr-x 2 jackie jackie 5 Oct 13 04:53 jackie/
drwxr-xr-x 2 jcizek jcizek 5 Oct 13 04:53 jcizek/
drwxr-xr-x 2 jzwack jzwack 5 Oct 13 04:53 jzwack/
drwxr-xr-x 2 kevins kevins 5 Oct 13 04:53 kevins/
drwxr-xr-x 3 root root 3 Oct 19 13:19 .trashcan/
root@lamphost4-virtualmin:/etc# useradd racktables -b /home -m
root@lamphost4-virtualmin:/etc# ll /home
total 9
drwxr-xr-x 11 root root 11 Apr 4 12:24 ./
drwxr-xr-x 23 root root 4096 Feb 27 15:22 ../
drwxr-xr-x 2 root root 3 Nov 10 11:14 .ctdb/
drwxr-xr-x 7 curtisb curtisb 25 Mar 1 16:17 curtisb/
drwxr-xr-x 2 jackie jackie 5 Oct 13 04:53 jackie/
drwxr-xr-x 2 jcizek jcizek 5 Oct 13 04:53 jcizek/
drwxr-xr-x 2 jzwack jzwack 5 Oct 13 04:53 jzwack/
drwxr-xr-x 2 kevins kevins 5 Oct 13 04:53 kevins/
drwxr-xr-x 2 racktables racktables 5 Apr 4 2017 racktables/
drwxr-xr-x 3 root root 3 Oct 19 13:19 .trashcan/
root@lamphost4-virtualmin:/etc# userdel -r racktables
userdel: racktables mail spool (/var/mail/racktables) not found
root@lamphost4-virtualmin:/etc#
I try to create a virtualmin server called racktables.colostate.edu and force set a customer username of racktables. Several minutes later, I see:
Creating administration group racktables ..
.. done
Creating administration user racktables ..
.. done
Failed to create virtual server : Quota command /usr/local/sbin/user-quota-set.bash racktables 1048576 1048576 failed :
quota command failed : Failed to get trusted.gfid attribute on path /home/racktables. Reason : No such file or directory
please enter the path relative to the volume
I have been trying to tail the contents of /var/webmin/miniserv.error, but all I see from it is:
Use of uninitialized value $minsize in numeric lt (<) at /usr/share/webmin/acl/acl-lib.pl line 1758.
Use of uninitialized value in split at /usr/share/webmin/acl/acl-lib.pl line 1761.
Error: Quota command /usr/local/sbin/user-quota-set.bash racktables 1048576 1048576 failed : quota command failed : Failed to get trusted.gfid attribute on path /home/racktables. Reason : No such file or directory
please enter the path relative to the volume
When I look in the /home directory, there's no racktables directory. But there's a racktables user listed in /etc/passwd. So, the best I can tell is, the racktables user is getting created but the home directory is not.
How can I tell what are the OS-level steps Virtualmin is taking? Are there Webmin/Virtualmin settings somewhere I have to tell it to specifically create home dirs? Thanks in advance for any insight.
Comments
Submitted by andreychek on Tue, 04/04/2017 - 18:40 Comment #1
Howdy -- thanks for contacting us!
It looks like you're using a custom quota command there, "/usr/local/sbin/user-quota-set.bash".
It's that quota script that's failing.
You may need to do some debugging with that particular script to determine why it isn't working.
Was this server setup by your provider? If so, you may want to work with them to sort out what's going on there.
If this is something you've setup on your own, and you're not quite sure what's going awry with the quota script there, you'd probably need to use the Forums for support.
The Forums are the best place for support for Virtualmin GPL users, but even if you were a Pro user, that might be a bit outside the scope of what we could assist with. Sorry!
Submitted by curtisb on Thu, 04/06/2017 - 09:05 Pro Licensee Comment #2
I can work on debugging the custom quota script. But I'm not understanding how the script would succeed if the user's home directory isn't getting created to begin with. Is the quota command supposed create home directories? I thought the useradd command was supposed to do that.
Submitted by JamieCameron on Thu, 04/06/2017 - 23:17 Comment #3
The regular Linux quota command will succeed regardless of whether the user has a home directory or not.