• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Plesk FTP-User Manager

C

Crazy X

Guest
Hi there,

after i get the nice Plesk Subdomain Manager addon here , i write a addon for managing FTP-Accounts an Plesk.

Plesk_Addon_FtpUserEdit_sample.gif


Download (version 0.0.2 :p ):
FTP-User Manager

Big Thanks to Haggy for the base of this addon.

Cya
Crazy X
 
There is a new version online because of a mistake in the INSTALL.txt
 
Hi,
i did install, but i'm not sure if it works.
I now can add a user with path ans it says "user added", but i don't see it anywhere in the list.
I also can not login via this new ftp account.

in the install.txt you wrote: "-edit the file config.inc.php"
But what to edit/change there? only language?

for next version a back-link to the admin panel would help, too :)


Thanks, Olli
 
hi X,
i tried you addon on my suse plesk 8.0.1, just no luck at all, same problem as upper, no added user and edit/delete button displayed, any comments are highly welcomed, thanks :D
 
Originally posted by meiohmei
Hi,
i did install, but i'm not sure if it works.
I now can add a user with path ans it says "user added", but i don't see it anywhere in the list.
I also can not login via this new ftp account.

in the install.txt you wrote: "-edit the file config.inc.php"
But what to edit/change there? only language?

for next version a back-link to the admin panel would help, too :)


Thanks, Olli

Hi,

i have the same problem!
use plesk 7.5.4 / SUSE Linux 9.3

any solution?

Thanks
 
many be the wrapper problem.

hi,
i studied the files, the code looks ok. i guess the different linux version plesk gets the different permission for folders/files. the hacking should be in wrapper file, but it is encrypted.

my linux version is suse 10.0 and plesk 8.01, then where that wrapper file come from?:confused:

thanks lot for kindly help!:) :)
 
Sorry, but i'm a looser in linux :)
Just ask Haggy, he write the

Plesk Subdomain Manager 0.0.2 Beta

I only write the little php-code... and i have less time for support, because of my work, sorry. :(




But i have make a test-file to test the "wrapper": WrapperTest.zip

please follow this steps:

I use the programs WinSCP and Putty...

- WinSCP & Putty: Change into your Plesk Admin htdocs directory (e.g. "cd /opt/psa/admin/htdocs")
- WinSCP: Make a directory WrapperTest
- Putty: Set chown of the dir WrapperTest to root:psaadm ("chown -R root:psaadm WrapperTest")
- WinSCP: Set the permissions of the dir WrapperTest to 0755
- WinSCP: Put the 3 files from the zip in the dir
- Putty: Set chown of the 3 files to root:psaadm ("chown -R root:psaadm *")
- Putty: Set chown of the file "wrapper" to root:root ("chown -R root:root wrapper")
- Putty: Set the permissions of the file "wrapper" to 4755
- Putty: Set the permissions of the file "vhost_writer.sh" to 0755
- login to plesk and start the test.php with your browser (e.g. "https://xx.xx.x.xxx:8443/WrapperTest/test.php")

there a 2 numbers... like :

1:

total 9
drwxr-xr-x 2 root psaadm 1024 Sep 7 15:34 .
drwxr-xr-x 24 root root 1024 Sep 7 15:39 ..
-rw-r--r-- 1 root psaadm 147 Sep 7 14:42 test.php
-rwxr-xr-x 1 root psaadm 47 Sep 7 14:31 vhost_writer.sh
-rwsr-xr-x 1 root root 5004 Aug 20 12:43 wrapper

2:

total 9
drwxr-xr-x 2 root psaadm 1024 Sep 7 15:34 .
drwxr-xr-x 24 root root 1024 Sep 7 15:39 ..
-rw-r--r-- 1 root psaadm 147 Sep 7 14:42 test.php
-rwxr-xr-x 1 root psaadm 47 Sep 7 14:31 vhost_writer.sh
-rwsr-xr-x 1 root root 5004 Aug 20 12:43 wrapper

If you see listing on 1: your php supports executing shell-command. (save-mode must be off!)
And if you see listing on 2: too, your wrapper file is OK.
 
Hi,

i can only see 1:

1:
total 15
drwxr-xr-x 2 root psaadm 4096 Sep 7 16:29 .
drwxr-xr-x 23 root root 4096 Sep 7 16:28 ..
-rw-r--r-- 1 root psaadm 155 Sep 7 15:42 test.php
-rw-r--r-- 1 root psaadm 51 Sep 7 15:31 vhost_writer.sh
-rwsr-xr-x 1 root root 5004 Aug 20 13:43 wrapper

2:

what can i do now?

Thanks!

I really need this addon urgently!

Patt
 
Originally posted by Patt
1:
total 15
drwxr-xr-x 2 root psaadm 4096 Sep 7 16:29 .
drwxr-xr-x 23 root root 4096 Sep 7 16:28 ..
-rw-r--r-- 1 root psaadm 155 Sep 7 15:42 test.php
-rw-r--r-- 1 root psaadm 51 Sep 7 15:31 vhost_writer.sh
-rwsr-xr-x 1 root root 5004 Aug 20 13:43 wrapper


-rw-r--r-- 1 root psaadm 51 Sep 7 15:31 vhost_writer.sh

false permissions... try 0755...
 
Hi,

does not work!

-rwxr-xr-x 1 root psaadm 51 Sep 7 15:31 vhost_writer.sh


any other idea?

Thanks!

Patt
 
You had to ask Haggy, because from him i have this wrapper-file. And he's not a linux newbe like me. :)
 
Hi,

just remembered to this thread.

i want to solve my problems but still have no success.
THe userinfo is written to etc/passwd and to etc/shadow

but i always get an error : 530 login incorrect.

Where is the problem?

Please help.

Need this tool.

Thanks.
 
if i set a new user also to the root directory i can log in!

only if i set a subfolder it doesn't work!?

Ideas?
 
the patch worked for me on Debian and Ubuntu, thanks heap!

I have one correction to the patch - currently it checks for the sublogins.

I.e. if there is user "ftpuser" and you will try to add "user" then patch will refuse to add it because user matches ftpuser as a substring and patch thinks that user already exists.

Adding ^ in the beginning of the regexp helps:

# diff doit.php doit.php.backup
13c13
< if($user == $ftp_user || !preg_match("/^[a-zA-Z0-9_]*$/" , $user) || strlen($_POST["ftppass"]) < 6 || strlen(shell_exec("cat /etc/passwd | grep '^".$user.":x:'")) > 0)
---
> if($user == $ftp_user || !preg_match("/^[a-zA-Z0-9_]*$/" , $user) || strlen($_POST["ftppass"]) < 6 || strlen(shell_exec("cat /etc/passwd | grep '".$user.":x:'")) > 0)
 
Brilliant!

Thanks for this simple - elegant script!!

"Everything should be made as simple as possible, but not simpler" AE
 
Back
Top