Hello!
I used to use virtualmin all the time, but a while ago I switched VPS hosting providers, and now I reinstalled virtualmin. Although now, It doesn't seem to work. When I "Recheck the Configuration" It Gives a single warning, The module could not find the mount point for your home directories filesystem /home. Quotas editing has been disabled.
Now, I admit I have modified Virtualmin slightly, but nothing that should affect quotas. See https://github.com/webmin/webmin/compare/master...kkprince1998:cloudflar...
I also added some of my own security (not virtualmin related), that could affect virtualmin. I have it setup that when I login as a certain user on SSH it mounts an encfs (Encrypted fuse Filesys.) from /home/myuser.enc
to /home/myuser
, as well as SSH dual auth with pubkey and passwd.
I have looked this up and seen https://www.virtualmin.com/node/9437, but not much else.
Below are some stuff that may help debug this issue.
Webmin version 1.760
Virtualmin version 4.18.gpl
Virtualized on OpenVZ with Fuse enabled.
mount #when logged in as myuser in SSH
/dev/ploop45048p1 on / type ext4 (rw,relatime,barrier=1,data=ordered,balloon_ino=12,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /dev type devtmpfs (rw,nosuid,noexec,relatime,mode=755)
none on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
none on /sys/fs/cgroup type tmpfs (rw,relatime,size=4k,mode=755)
tmpfs on /tmp type tmpfs (rw,relatime)
none on /run type tmpfs (rw,nosuid,noexec,relatime,size=419432k,mode=755)
tmpfs on /var/tmp type tmpfs (rw,nosuid,noexec,relatime)
none on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
none on /run/shm type tmpfs (rw,relatime)
none on /run/user type tmpfs (rw,nosuid,nodev,noexec,relatime,size=102400k,mode=755)
encfs on /home/myuser type fuse.encfs (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000,default_permissions,allow_other)
mount #from root when mysuser isn't logged in
/dev/ploop45048p1 on / type ext4 (rw,relatime,barrier=1,data=ordered,balloon_ino=12,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /dev type devtmpfs (rw,nosuid,noexec,relatime,mode=755)
none on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
none on /sys/fs/cgroup type tmpfs (rw,relatime,size=4k,mode=755)
tmpfs on /tmp type tmpfs (rw,relatime)
none on /run type tmpfs (rw,nosuid,noexec,relatime,size=419432k,mode=755)
tmpfs on /var/tmp type tmpfs (rw,nosuid,noexec,relatime)
none on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
none on /run/shm type tmpfs (rw,relatime)
none on /run/user type tmpfs (rw,nosuid,nodev,noexec,relatime,size=102400k,mode=755)
repquota /home
repquota: Mountpoint (or device) /home not found or has no quota enabled.
repquota: Not all specified mountpoints are using quota.
repquota /
*** Report for user quotas on device /dev/ploop45048p1
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------
root -- 1805680 0 0 107435 0 0
man -- 1980 0 0 144 0 0
www-data -- 16 0 0 4 0 0
list -- 52 0 0 13 0 0
nobody -- 4 0 0 1 0 0
libuuid -- 24 0 0 2 0 0
syslog -- 1088 0 0 7 0 0
bind -- 4 0 0 1 0 0
postfix -- 80 0 0 47 0 0
colord -- 8 0 0 2 0 0
tmp -- 28 0 0 8 0 0
myuser -- 56 0 0 16 0 0
clamav -- 157632 0 0 9 0 0
postgres -- 35884 0 0 793 0 0
ftp -- 4 0 0 1 0 0
debian-spamd -- 1596 0 0 26 0 0
mysql -- 29952 0 0 100 0 0
/etc/mtab
/dev/ploop45048p1 / ext4 rw,relatime,barrier=1,data=ordered,balloon_ino=12,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /dev devtmpfs rw,nosuid,noexec,relatime,mode=755 0 0
none /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0
none /sys/fs/cgroup tmpfs rw,relatime,size=4k,mode=755 0 0
tmpfs /tmp tmpfs rw,relatime 0 0
none /run tmpfs rw,nosuid,noexec,relatime,size=419432k,mode=755 0 0
tmpfs /var/tmp tmpfs rw,nosuid,noexec,relatime 0 0
none /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
none /run/shm tmpfs rw,relatime 0 0
none /run/user tmpfs rw,nosuid,nodev,noexec,relatime,size=102400k,mode=755 0 0
encfs /home/myuser fuse.encfs rw,nosuid,nodev,relatime,user_id=1000,group_id=1000,default_permissions,allow_other 0 0
The last line of mtab is only existent when I am logged in on SSH
EDIT: added mtab
Howdy,
Hmm, what does your /etc/mtab file look like?
-Eric
I have included it in the original post.
/etc/mtab
/dev/ploop45048p1 / ext4 rw,relatime,barrier=1,data=ordered,balloon_ino=12,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /dev devtmpfs rw,nosuid,noexec,relatime,mode=755 0 0
none /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0
none /sys/fs/cgroup tmpfs rw,relatime,size=4k,mode=755 0 0
tmpfs /tmp tmpfs rw,relatime 0 0
none /run tmpfs rw,nosuid,noexec,relatime,size=419432k,mode=755 0 0
tmpfs /var/tmp tmpfs rw,nosuid,noexec,relatime 0 0
none /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
none /run/shm tmpfs rw,relatime 0 0
none /run/user tmpfs rw,nosuid,nodev,noexec,relatime,size=102400k,mode=755 0 0
encfs /home/myuser fuse.encfs rw,nosuid,nodev,relatime,user_id=1000,group_id=1000,default_permissions,allow_other 0 0
The last line of mtab is only existent when I am logged in on SSH
Howdy,
Ah, that may be the source of the issue... the /etc/mtab is what's used to determine where /home is.
If you're logged in via SSH (and when that /home entry is in /etc/mtab), are you then able to enable the quotas?
-ERic
No,
The automatic mount mounts /home/myuser.enc to /home/myuser.
/home is a subdir of / (root)
Also, this funny little automount will only mount when I am under myuser on SSH.
I doubt that that is the problem