Unable to add a user to a server/domain

Error i get when i try to add a user to a server from the web: Failed to lock file /etc/group after 5 minutes. Last error was :

Status: 
Active

Comments

Howdy -- it sounds like there are some lock files present on your filesystem.

First, I would make sure that you don't have a user who is using Virtualmin at the moment in a way that could be holding open those files.

If not, what I would suggest is first, restart Webmin.

Then, run this command:

find /etc -name "*.lock"

What is the output of the above "find" command?

[root@g hostlawn]# find /etc -name "*.lock" /etc/.pwd.lock /etc/group.lock /etc/shadow.lock /etc/gshadow.lock /etc/dovecot/dovecot.conf.lock /etc/webmin/virtual-server/names/hostlawn.com.lock /etc/webmin/virtual-server/names/giftinaw.com.lock /etc/webmin/virtual-server/names/g.hostlawn.com.lock /etc/webmin/virtual-server/everyone/145937631832072.lock

Deleting this lock files (or killing the process whose PID is in one of them) should fix this.