Created FTP user and his home directory, cant FTP

16 posts / 0 new
Last post
#1 Sat, 03/21/2009 - 05:25

Created FTP user and his home directory, cant FTP

In Mail and FTP Users, I "Added a user to this server", with e-mail and FTP.

Defined "Subdirectory of server's home" as /home/domain_name/public_html/user_folder

Using the username.domain and the password, I should be able to log into his directory for him, right?

I have tried both and as the hostname in FTP.

When I try to log into the Usermin for that user, I get Failed to create /home/subsim//home/domain/public_html/user_folder/.usermin : No such file or directory

I checked my public_html directory for the domain and there is a folder called user_folder there for the FTP user.

What am I doing wrong? Thanks<br><br>Post edited by:, at: 2009/03/21 05:36

Sat, 03/21/2009 - 11:56

Has anyone else set up directories for users with Virtualmin?

Sat, 03/21/2009 - 18:39 (Reply to #2)

Well, if you tell it to create a user with email rights, and you later try to log into Usermin and you get an error, that's likely a bug of some sort.

So -- the first thing I would do is install the version of Usermin that just came out today, delete the user, and re-add it.

If that doesn't solve the issue, I'd go ahead and file a bug report, using the Bugs and Issues link below.


Sun, 03/22/2009 - 11:50 (Reply to #3)

The only thing I can find in the documentation is:

<div class='quote'>Another way, which I believe is the best option (saving the best for last!) and most closely matches what you're currently used to without the security implications, is the Automatically create alias domain option (found in every Server Template, though to keep it simple you can just edit the Default template). Just select the radio button beside &quot;Create under&quot; and fill in the domain under which you'd like all of your customer domains to appear.

This option will cause Virtualmin to create a subdomain under your domain for every new domain you create--this will be immediately accessible with a name like &quot;newdomain.mydomain.tld&quot;. Easy to remember for the user (because it's their domain name, plus the name of the company they're hosting with), and it isn't a path-based automatic thing, so non-virtual host home directories won't be potentially exposed in any way, as with the Automatic virtual hosts method above (as used by Ensim, cPanel, and others, I reckon). If you need public access to sites, this is the method you really want. Note that this method also does not break SuExec, as the automatic hosts option does, so CGI scripts (and PHP once we get FastCGI+SuExec working) will run as the user that owns the domain...this is safer.

Where is the option to &quot;Automatically create alias domain option&quot; located in the Virtualmin CP??

Bah, I paid $200 for a 50 domain license for this and there is no other means of support than this forum.

Sun, 03/22/2009 - 12:02 (Reply to #4)
Joe's picture

<div class='quote'>Where is the option to &quot;Automatically create alias domain option&quot; located in the Virtualmin CP??</div>

Server Templates-&gt;Default-&gt;Virtual server creation

<div class='quote'>Bah, I paid $200 for a 50 domain license for this and there is no other means of support than this forum. </div>

Where did you get that idea?

This link is in the menu on every page. We have a support ticket system for Virtualmin Professional users, and response time is usually less than 24 hours (usually much less during business hours).


Check out the forum guidelines!

Sun, 03/22/2009 - 12:08 (Reply to #5)

Argh, it says bug tracker, I didn't want to spam it with hand-holding requests :(

thanks, I'll see if I can get a little farther down this road.

Sun, 03/22/2009 - 12:15 (Reply to #6)
Joe's picture

<div class='quote'>Argh, it says bug tracker, I didn't want to spam it with hand-holding requests</div>

&quot;Bugs and Issues&quot;. You've got issues, and we want to help. ;-)

I'll try to make it more apparent on the new website that the tracker is for both bugs and support issues. (We used to have two tracker instances, one for support and one for bugs, but it was hard for us to keep up with and maintain both, and folks were often filing in the wrong one anyway.)


Check out the forum guidelines!

Sun, 03/22/2009 - 12:53 (Reply to #7)

The Virtualmin folks do watch the forums though, and we try to help out here as well as well as in the Support Tracker... it's just that Sunday afternoon isn't always the best for getting timely responses :-)

Personally, I just got an RC airplane, and boy, it's been hard to stay inside lately!

As for connecting to FTP in a browser, I would use a URL like so:

And that should prompt you for a password, where you can enter the FTP account into.

Sun, 03/22/2009 - 08:31

Thanks, Andy, I guess it is a bug, this is a pretty simple thing I used all the time witn Ensim. I will report it.

Sun, 03/22/2009 - 11:02

Ok, it turns out

<div class='quote'>Defined &quot;Subdirectory of server's home&quot; as /home/domain_name/public_html/user_folder

is incorrect, it should just be


Now, I have the folder, still trying to connect with FTP and figure out what the URL is to connect with browser.

Thu, 03/26/2009 - 06:43

Ok, here's my status (and it's mostly good).

I was not trying to set up

I wanted to create users with their own folder, and viewers could see webpages via

Hallelujah, I got it to work! For other n00bs who read this, here is how I did it (andy, joe, read the next post for my question).


get the domain in the dropdown list that you want to create a user in

&gt;Edit Mail and FTP,
&gt;Add a user to this server.
&gt;Add username and password,
&gt;In Quota and home directory settings, check the &quot;Subdirectory of server's home&quot;: public_html/user3
;subsitutue the name of your user for &quot;user3&quot;. in this case, folder is named &quot;public_html/user3&quot;

This will create the user3 folder in public_html

username: user3.domain
password: xxxxxxxxxxxx

Upload an index.htm page

In web browser:

Thu, 03/26/2009 - 06:45

I created 4 users this way and everything worked fine.

My problem: I selected another domain in Virtualmin to create a user in the same fashion. Everything worked except, I cannot view the index page in my browser:

The website declined to show this webpage
HTTP 403
Most likely causes:
This website requires you to log in.

What am I missing? Thanks!

Thu, 03/26/2009 - 15:05 (Reply to #12)

What URL are you using to try and access it?

Thu, 03/26/2009 - 15:15

The URL is

I have no problem with the other folders I've set up under the other domain:


Thu, 03/26/2009 - 19:02 (Reply to #14)

Okay, so it looks like you're getting a good 'ol permission denied error.

You might look in the Apache error_log for an exact cause, but I'd make sure that you have an index file in the public_html folder (sometimes not having one can cause an error like you're seeing).

I'd also make sure the permissions on the public_html folder and files inside it are readable by the virtual server owner.

Tue, 03/31/2009 - 17:42

There is an index file in the folder, just like the folders on the other domain. I'm giving up on using Virtualmin to create user folders. It works &quot;some&quot; of the time, but like this case, even though I follow the same steps, I cannot get it to work properly.

Topic locked