These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for custom command user ftp on the new forum.
hi i want to know if is possible and how if i create a custum command to creating an user ftp using bin/false shell with somme variable like current server and folder permission and execute this command with remote rpc for virtualmin
i am using qmail+vpopmail thanks and sorry for my english
I'm not sure exactly what you're asking...but, maybe something like:
virtualmin create-user --domain domain.name --user username --pass password --shell /bin/false
And to make that happen on a remote machine, you'd just use a web client. So, you could use wget or whatever PHP or Perl or Python or Ruby or whatever web client library you like to make a request like this:
https://yourserver:10000/virtual-server/remote.cgi?program=create-user&a...
I think you'll have to escape the slashes (/) in the URL, but it probably depends on the language and web client library you're using. You'll also have to authenticate, of course. You can see more examples of using the remote API here:
http://www.virtualmin.com/documentation/id,remote_http_api/
And the command line API (which the remote API is merely a wrapper for, so has all the same commands and the same usage) is fully documented here:
http://www.virtualmin.com/documentation/id,command_line_api/
--
Check out the forum guidelines!
i am using qmail+ vpopmail it s impossible to add a user ftp with this command cause virtualmin use qmail+vpopmail
I must to make a custum command to be able to create a user ftp