FTP user acount

Once again i am having trouble with virtualmin.

Just a little question. I am trying to implementâ

But i must use Qmail+VPOPMail... Any ideias to overcome this problem?

At the moment, not in the UI…and since so few people use the QMail VPOPMail stuff, I wouldn’t bet on it coming soon. By using VPOPMail, you lose all of the “real user” benefits–and FTP users have to be “real users”, they can’t be just some user data in a database somewhere.

But, you can always create them manually on the command line using useradd or adduser.

It’d also be possible to add a custom command that can create that kind of user. Just be very careful letting untrusted users have access to that command–and make sure it checks all inputs and only creates a user with sanitized data. It’d only take a few lines of shell script to make something like that.

it’s 3 AM where i live and right now it’s not clear what you have writen…

I configured proftpd to use mysql in hope it will do the trick.
But it didn’t…

But, you can always create them manually on the command line using useradd or adduser.
Impossible unfortunatly... It is a machine to be delivered to a guy that dont know how to use linux and it is supposed to do everyting via GUI. He is selling housing in that machine.
It'd only take a few lines of shell script to make something like that.
It was ask for too mutch if you drop me those lines?

Thanks

Pedro Simões

Impossible unfortunatly... It is a machine to be delivered to a guy that dont know how to use linux and it is supposed to do everyting via GUI. He is selling housing in that machine.

And you’re giving him qmail and vpopmail to deal with??? That seems like it’s just asking for disaster (not that it’s unstable…it’s just so much more complicated to maintained and keep running…not to mention if any bugs need patching you’re handing him a randomly patched up pile of software that isn’t available from a well-known trustworthy source, like Red Hat, CentOS, Debian, or us), so updates will be very difficult for someone who is new to Linux. I can’t recommend it.

I’ll see about whipping up a script for you that’ll do what you want. (But, while I work on that, please rethink handing a qmail+vpopmail system to an amateur…it’s making me really nervous thinking about that situation, because our software is going to get the blame when something inevitably goes wrong.)

The qmail+vpopmail is supplied in another machine. And i will be the admin of it. The management i will delegate.

Be relaxed, the problem will always be qmail and friends guilty! The management layer will not be blamed! :slight_smile:

I tried to run create-user.pl by hand and tried to force the creation fo a ftp user.

[code:1]perl create-user.pl --domain pplware.com --user psim --pass psim --ftp --no-creation-mail[/code:1]

But it keeps on creating an email account with no ftp permitions…

Another possibility is to automaticly create a ftp user, but i will not have admin for that…

I think i’m going to separate the functions.

Email in another machine with management via QmailAdmin web interface.
And web hosting management via webmin and virtualmin.

Some coding to sincronize the domains in the machines and its done.

I’l whait for that script and cook some more ideias.

A small question… Im virtualmin Pro this problem exists?

I’m one stepp closer.

With Custom Fields and System Settings -> Module Config -> Actions upon server and user creation -> Command to run after making changes to a server.

There i added the line
/usr/sbin/useradd -s /bin/false -d $VIRTUALSERVER_PUBLIC_HTML_PATH -p $VIRTUALSERVER_FIELD_FTPPASSWORD -g $VIRTUALSERVER_GID $VIRTUALSERVER_FIELD_FTPUSER.$VIRTUALSERVER_DOM

It creates the ftp user like i wanted.

The problem now is that wen i delete the ftp user it removes the public_html directory in the domain.

Any ideias?

A small question... Im virtualmin Pro this problem exists?

Probably. I can’t think of why it would be any different. The “problem” is simply that the Mail and FTP Users code creates users in your database, when you are using vpopmail…it’s not a “problem” in Virtualmin, per se…it’s just that those users can’t do real user stuff, like FTP access. So, it’s a problem with that kind of user. :wink:

With Custom Fields and System Settings -> Module Config -> Actions upon server and user creation -> Command to run after making changes to a server.

There i added the line
/usr/sbin/useradd -s /bin/false -d $VIRTUALSERVER_PUBLIC_HTML_PATH -p $VIRTUALSERVER_FIELD_FTPPASSWORD -g $VIRTUALSERVER_GID $VIRTUALSERVER_FIELD_FTPUSER.$VIRTUALSERVER_DOM

It creates the ftp user like i wanted.

Wait! You’re wanting to create a single FTP user at domain creation time? All this time, we’ve been trying to figure out how to do something that is automatic! :wink:

You already get an FTP user when you create a domain virtual server–a Virtualmin virtual server account, by default, will have FTP access (as long as their shell is listed in /etc/shells). I thought you wanted additional FTP users that could be created by your users (so they could delegate website maintenance to others without granting them mailbox or other privileges). Or am I misunderstanding you?

Not that simple…

As i don’t want to pay for Pro (sorry, not that rich) i have created a way of implement a reseller in GPL.

I create a virtual server with nothing but the minimum and below that i can create sub-virtual server or subdomains.

For that i need to create an FTP account per domain.

Not that simple...

As i don’t want to pay for Pro (sorry, not that rich) i have created a way of implement a reseller in GPL.

Oh my! No need to apologize for not buying Pro.

But this is crazy talk. There are too many holes in the sub-server model to make this work sanely for full-features hosting for those users (security being a major issue, since sub-servers get group membership in the virtual server, and so would be able to write all over everybody else). :wink:

Jamie and I have been discussing moving reseller support down into GPL. We’re hesitant to do so, since it is clearly a “makes money with Virtualmin” feature, but we also don’t want folks going to great lengths to do weird (and dangerous) things because the feature doesn’t exist.

How soon are you launching?

The pseudo-reseler will be responsable for managing the agregated domains, and so, the security problem exists but it’s not that important. People have been informed of that. I am aware of that problem…

Moving the reseller to GPL will be a major boost to virtalmin, but i understand your economical point of view. Never the less it wold make a big diference in virtualmin.

How soon are you launching?
Some time last week. It is in a beta fase and we are already giving access to a small number of users. But we are always available to upgrade to new versions and to try new features. Count me in as a beta tester.

I was able to produce the desired script… But the problem was that wen i remove a ftp user it would remove the pibli_html directory.

So i have change things a litle bit and it works now. I’m using a script with the folowing code.

[code:1]
#/bin/bash

/usr/sbin/useradd -s /bin/false -d $VIRTUALSERVER_HOME/homes/$VIRTUALSERVER_FIELD_FTPUSER-$VIRTUALSERVER_DOM -p $VIRTUALSERVER_FIELD_FTPPASSWORD -g $VIRTUALSERVER_GID $VIRTUALSERVER_FIELD_FTPUSER-$VIRTUALSERVER_DOM
rm -rf $VIRTUALSERVER_HOME/homes/$VIRTUALSERVER_FIELD_FTPUSER-$VIRTUALSERVER_DOM
ln -s $VIRTUALSERVER_HOME/public_html $VIRTUALSERVER_HOME/homes/$VIRTUALSERVER_FIELD_FTPUSER-$VIRTUALSERVER_DOM
[/code:1]

And invoque the bash script in ustom Fields and System Settings -> Module Config -> Actions upon server and user creation -> Command to run after making changes to a server.

I can think of some problems in the future, but i dont want to burn my head right now… For example, if i want to give virtualmin access to a child domain it wold be impossible…

Apart from that, i wish to thank your major suport to my problem.

And remember, you have here a god beta tester to the GPL version of Virtualmin with Reseller functionality.

If you ever come to Lisbon, Portugal, drop me a line and i will gladly buy a barril of beer! Many thank

Just found out what the problem is.
I’m using Qmail+VPOPMail.

If i disable this, the "Add a website FTP access user.â

Just found out what the problem is.
I’m using Qmail+VPOPMail.

If i disable this, the "Add a website FTP access user.â

Just found out what the problem is.
I’m using Qmail+VPOPMail.

If i disable this, the "Add a website FTP access user.â

Just found out what the problem is.
I’m using Qmail+VPOPMail.

If i disable this, the "Add a website FTP access user.â

Just found out what the problem is.
I’m using Qmail+VPOPMail.

If i disable this, the "Add a website FTP access user.â