Ftp Users

Community support for Plesk, CPanel, WebMin and others with insight from two of the founders of Plesk. Ask for help here! No question is too simple or complicated. :-)
nobody
Forum Regular
Forum Regular
Posts: 349
Joined: Sun Mar 29, 2009 6:52 pm

Ftp Users

Unread post by nobody »

Hello

I want to create for a client a space with a specific quota and multiple ftp user accounts with access to only specific folders.
Only the master ftp user would be able to access all folders.

How could you do that in plesk, if you can ?

I do not wish webhosting on this account. Just ftp access for users.

Thanks in advance for the help.
Hello IT.
Phone : Blah Blah ....
Have you tried turning it on and off again ?
Phone : Blah Blah ....
....
I'm sorry, are you from the Past ?!
http://www.youtube.com/watch?v=-E4fm4Wqego
nobody
Forum Regular
Forum Regular
Posts: 349
Joined: Sun Mar 29, 2009 6:52 pm

Re: Ftp Users

Unread post by nobody »

Ah mmm .... Basically ...

What would be even better would be since the main ftp user has access to the private folder to create users even if I do it manually that will only have access to read and write inside specific folders in the private directory.

But how could you do such a thing ?

----

Basically I wouldnt mind creating a totally different account with ftp users outside plesk if I could. The only reason I want to do so is in order to be sure that plesk will automatically every night backup the data.

---

I am really strugling with this thing ... :(
Hello IT.
Phone : Blah Blah ....
Have you tried turning it on and off again ?
Phone : Blah Blah ....
....
I'm sorry, are you from the Past ?!
http://www.youtube.com/watch?v=-E4fm4Wqego
BruceLee
Forum Regular
Forum Regular
Posts: 879
Joined: Sat Mar 28, 2009 6:58 pm
Location: Germany

Re: Ftp Users

Unread post by BruceLee »

you can give FTP User Manager a try. It's from haggybear.com
I use it. It's quite simple, but quotas are only set on the domain account once.
All users under this domain share the disk quota.
nobody
Forum Regular
Forum Regular
Posts: 349
Joined: Sun Mar 29, 2009 6:52 pm

Re: Ftp Users

Unread post by nobody »

Thanks for the reply. I went to the webpage but it has minimum information about what this module does plus many stuff are in deutsch and I can't understand them.

Also what happens if you then upgrade plesk ?

regards
Hello IT.
Phone : Blah Blah ....
Have you tried turning it on and off again ?
Phone : Blah Blah ....
....
I'm sorry, are you from the Past ?!
http://www.youtube.com/watch?v=-E4fm4Wqego
BruceLee
Forum Regular
Forum Regular
Posts: 879
Joined: Sat Mar 28, 2009 6:58 pm
Location: Germany

Re: Ftp Users

Unread post by BruceLee »

there is not much to say about. You can create extra ftp users for a domain with a custom folder for each.
grant shell access or not.set the limit how many extra ftp users the domain user can create.
a plesk upgrade doesn't bother it at all as long there is no version upgrade like 8>9 and the wrapper doesn't work.
Then you need to take another wrapper file, thats all.

If you download the file there should be an installation tutorial in english in the readme.
If you have any trouble just write a post and I will do my best to help you.
nobody
Forum Regular
Forum Regular
Posts: 349
Joined: Sun Mar 29, 2009 6:52 pm

Re: Ftp Users

Unread post by nobody »

Thank you for your feedback.

Ok it wont let me create first of all a user with a - e.g some-user

Also when it does not generate an error for the username even if the folder exists it gives me that the chosen directory does not exiswt please create it first even if the directory is allready created !

Regards
Hello IT.
Phone : Blah Blah ....
Have you tried turning it on and off again ?
Phone : Blah Blah ....
....
I'm sorry, are you from the Past ?!
http://www.youtube.com/watch?v=-E4fm4Wqego
BruceLee
Forum Regular
Forum Regular
Posts: 879
Joined: Sat Mar 28, 2009 6:58 pm
Location: Germany

Re: Ftp Users

Unread post by BruceLee »

Which version of Plesk do you use?
Check the permissions twice, especially the wrapper with the sticky bit.
Recheck you have the correct wrapper:
http://haggybear.com/de/downloads/
nobody
Forum Regular
Forum Regular
Posts: 349
Joined: Sun Mar 29, 2009 6:52 pm

Re: Ftp Users

Unread post by nobody »

With the default wrapper and with the one I downloaded as well from the haggybear I have the same effect.

Even if I try to edit an existin user that I have created by hand it won't let me and it says directory does not exist !
Always talking about folders in /private.

Also when i try to create an ftp user on a folder under httpdocs it wont return any errors but it does nothig at all ...

Any ideas ?
Hello IT.
Phone : Blah Blah ....
Have you tried turning it on and off again ?
Phone : Blah Blah ....
....
I'm sorry, are you from the Past ?!
http://www.youtube.com/watch?v=-E4fm4Wqego
BruceLee
Forum Regular
Forum Regular
Posts: 879
Joined: Sat Mar 28, 2009 6:58 pm
Location: Germany

Re: Ftp Users

Unread post by BruceLee »

One thing: It's not intended to run with a user using a folder under /private.
It could run, but I'm not sure.

First I would try to make it run the intended way.
Usually these error do occure with bad permissions. I have seen peeple getting mad and telling they checked them
5 times and during 6th check they made the correct ones.
The other problem could be the wrapper.
When you downloaded the correct wrapper file from the link I provided you have to compile it via:

Code: Select all

gcc wrapper.c -o wrapper
strip wrapper
Did you get any any errors? And is the sticky bit set?

After compiling copy it and set permissions via:

Code: Select all

chown root.root wrapper
chmod 4755 wrapper
nobody
Forum Regular
Forum Regular
Posts: 349
Joined: Sun Mar 29, 2009 6:52 pm

Re: Ftp Users

Unread post by nobody »

It worked for httpdocs ! Thanks ! But it doesnt work for private :(
BruceLee wrote:One thing: It's not intended to run with a user using a folder under /private.
It could run, but I'm not sure.

First I would try to make it run the intended way.
Usually these error do occure with bad permissions. I have seen peeple getting mad and telling they checked them
5 times and during 6th check they made the correct ones.
The other problem could be the wrapper.
When you downloaded the correct wrapper file from the link I provided you have to compile it via:

Code: Select all

gcc wrapper.c -o wrapper
strip wrapper
Did you get any any errors? And is the sticky bit set?

After compiling copy it and set permissions via:

Code: Select all

chown root.root wrapper
chmod 4755 wrapper
Hello IT.
Phone : Blah Blah ....
Have you tried turning it on and off again ?
Phone : Blah Blah ....
....
I'm sorry, are you from the Past ?!
http://www.youtube.com/watch?v=-E4fm4Wqego
BruceLee
Forum Regular
Forum Regular
Posts: 879
Joined: Sat Mar 28, 2009 6:58 pm
Location: Germany

Re: Ftp Users

Unread post by BruceLee »

have you tried changing the following in the config.inc.php:

Code: Select all

define("DOMS","/var/www/vhosts/");
to

Code: Select all

define("DOMS","/private/");
other permissions might be necessary since ftp user manager creates for every domain in the domain root directory
with domain admin credentials.
/private folder permissions are different.
What benefit do you have by taking /private?
It's not included in backups and it's another place to look after since you start to split domain relevant stuff.
You can only create accounts for domains you host, so having the accounts corresponding to your domain
in domain root is much more convenient than somewhere else.
nobody
Forum Regular
Forum Regular
Posts: 349
Joined: Sun Mar 29, 2009 6:52 pm

Re: Ftp Users

Unread post by nobody »

BruceLee wrote:have you tried changing the following in the config.inc.php:

Code: Select all

define("DOMS","/var/www/vhosts/");
to

Code: Select all

define("DOMS","/private/");
other permissions might be necessary since ftp user manager creates for every domain in the domain root directory
with domain admin credentials.
/private folder permissions are different.
What benefit do you have by taking /private?
It's not included in backups and it's another place to look after since you start to split domain relevant stuff.
You can only create accounts for domains you host, so having the accounts corresponding to your domain
in domain root is much more convenient than somewhere else.
Are you sure /private is not included in the backups ? I just checked my backups from plesk 9 servers and private folder in the vhost zip for each domain is there with the files it contains !!!
Well the reason is because I have a client who only wants ftp backup for 100 ftp users and I want his data to be safe and inaccessible by system services as far as this can be done and also I don't want their data to be server by apache ! These are confidential data of this client.
Hello IT.
Phone : Blah Blah ....
Have you tried turning it on and off again ?
Phone : Blah Blah ....
....
I'm sorry, are you from the Past ?!
http://www.youtube.com/watch?v=-E4fm4Wqego
BruceLee
Forum Regular
Forum Regular
Posts: 879
Joined: Sat Mar 28, 2009 6:58 pm
Location: Germany

Re: Ftp Users

Unread post by BruceLee »

you are right, sorry. /var/www/vhosts/DOMAIN/private is backuped.
Mixed it with something different.

But the "solution" is the same. You need to change the permissions.
e.g. I have created a folder called ftpusers with 0755 domainuser:psaserv.

How secure it is in this context must be decided by you.
Maybe Scott or Mike can give an idea how to make it more secure.
You could make a group with all the ftp users and set this group only.
But then you have to trigger the creation of a user and add the user to the correct group.
If the users are set only once this would be an solution. otherwise scripting is necessary.

For testing try to set it. You can always set it back.
Post Reply