Welcome, Guest
Please Login or Register.
Lost Password?
Re:Webmin/Virtualmin User Data Storage Method (1 viewing)
Post Reply

TOPIC: Re:Webmin/Virtualmin User Data Storage Method

#12539
4drbtech (User)
Posts: 11
graphgraph
Webmin/Virtualmin User Data Storage Method 2008/05/14 14:24  
I'd like to have a look at and possibly edit the raw user data files for webmin myself. How does webmin store user data? I tried looking through MySQL already, so I know that's not it. I've toyed with the Linux /etc/passwd too to see if that was the method to no avail. Where should I be looking?

Thanks
  The administrator has disabled public write access.
#12541
Joe (Admin)
Posts: 3642
graph
Re:Webmin/Virtualmin User Data Storage Method 2008/05/14 14:35  
We use the Webmin user management functionality found in web-lib.pl (and all of its various modules). This puts user data into files found in /etc/webmin/

The files are simple key=value configuration files. Nothing complicated at all.

What are you trying to achieve? There might already be some functions you can call in the Webmin::API Perl module, or in one of the various command line tools we provide. Obviously, this also depends on the language you're building your tools in...I wrote a blog post to In The Box a few months back about parsing Webmin config files in several languages (perl, shell, PHP, Ruby and Python) here:

http://inthebox.webmin.com/one-config-file-to-rule-them-all
  The administrator has disabled public write access.
#12809
martin.taleski (User)
Posts: 1
graphgraph
Re:Webmin/Virtualmin User Data Storage Method 2008/05/23 04:08  
Hi,

I have been having a problem with Webmin, for the past couple of days on this subject...

I was trying to allow access for the admin user, only from a specific IP address, and I messed up something. I managed to disable access from my own IP address, and now i can not login with the administrator.

I've noticed that the data was stored in /usr/local/etc/webmin/miniserv.users, and i have edited the file manually (removed the allow <IP Address>), and than restarted webmin.

But still, i can not login since i get Error - Access denied for <My IP> after i type the user and password.

Do you know where can change this manually?
  The administrator has disabled public write access.
#12812
Joe (Admin)
Posts: 3642
graph
Re:Webmin/Virtualmin User Data Storage Method 2008/05/23 09:53  
You probably also need to edit miniserv.conf though I don't recall off-hand what the directive is...probably "deny" and "allow" or similar.
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.