ispCP - Board - Support
proftpd Problem - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: proftpd Problem (/thread-1426.html)

Pages: 1 2


proftpd Problem - fulltilt - 09-30-2007 02:38 AM

migrated ispCP Users from sarge to Etch.
Now i have Problems with Proftpd some User cant login:

log:
Code:
USER ftp@xxxxxx.de: Login successful.
Preparing to chroot to directory '/var/www/virtual/xxxxx.de'
ftp@xxxxx.de chdir("/"): Permission denied
FTP session closed.



RE: proftpd Problem - BeNe - 09-30-2007 02:55 AM

Check the Permissions on the Folder. Looks like there are not correct for this User.

Greez BeNe


RE: proftpd Problem - fulltilt - 09-30-2007 04:12 AM

thanks BeNe,

thats right - the DB table ftp_users is differnt then the www folders.
I have set the permissions with this script:

Code:
#!/bin/sh
CHOWN=`cat /etc/passwd | grep "vu2"`
for i in $CHOWN
do
OWNER=$(echo $i | cut -d ":" -f -1)
PFAD=$(echo $i | cut -d ":" -f 6)
GROUP=www-data
chown $OWNER:$GROUP $PFAD/ -R
echo $OWNER:$GROUP $PFAD/
done

Is it possible to change the DB entrys for ftp_users again from /etc/passwd ? I mean at once ...

Regards


BeNe Wrote:Check the Permissions on the Folder. Looks like there are not correct for this User.

Greez BeNe



RE: proftpd Problem - BeNe - 09-30-2007 04:39 AM

I´m not really sure about it.
Maybe the "ispcp-mbox-mngr" script in the engine does it.
But you should take a look in the scipt before.

If this does not work - i have no soultion.
But we are no alone here Wink

Greez BeNe


RE: proftpd Problem - fulltilt - 09-30-2007 05:07 AM

thanks BeNe[/code],

maybe the mail permissions are wrong ...
which group, user and permisions is right for /var/mail/virtual/*

and for ftp_users ...
is this the right way?

Code:
UPDATE domain SET domain_gid = "0";
UPDATE domain SET domain_uid = "0";
UPDATE ftp_users SET gid = "0";
UPDATE ftp_users SET uid = "0";
UPDATE ftp_group SET gid = "0";
UPDATE ftp_users SET uid = "0";
UPDATE domain SET domain_status = "toadd";
UPDATE subdomain SET subdomain_status = "toadd";
UPDATE domain_aliasses SET alias_status = "toadd";
update mail_users set status = "toadd";
and then ispcp-rqst-mngr

BeNe Wrote:I´m not really sure about it.
Maybe the "ispcp-mbox-mngr" script in the engine does it.
But you should take a look in the scipt before.

If this does not work - i have no soultion.
But we are no alone here Wink

Greez BeNe



RE: proftpd Problem - rbtux - 09-30-2007 05:14 AM

when its just about the mails:

chown -R vmail:mail /var/mail/virtual/*


I don't know about the ftp users...


RE: proftpd Problem - joximu - 09-30-2007 06:06 AM

The ftp users are stored in the mysql database (ispcp.ftp_users):
the permissions are vuxxxx:vuxxxx - the same as the respective domain folders/users in /etc/passwd.

/Joximu


RE: proftpd Problem - fulltilt - 09-30-2007 11:40 PM

FTP is working now.
I copy the old user order from passwd and groups after i run ispcp-rqst-mngr.

But Webmail is not working ...
Code:
ERROR: Connection dropped by IMAP server

Did i need to copy also aliases.db, sasldb2 and /etc/courier user files from old system to the new server - and is it working with Etch?

> migration from sarge to etch.


RE: proftpd Problem - joximu - 09-30-2007 11:45 PM

IMAP -> Courier.
So, if POP3 is working, then IMAP should too...

Courier get's the user infos from /etc/courier/userdb* - they are generated/updated by ispcp.

The sasldb2 file is needed by postfix if you want to give your customers a SMTP service... it's also maintained by isccp.

Normally it's ok if you set the status of all mail_users to "change" and run the request manager... or maybe you need "to_add" - I'm not sure... :-)

/J


RE: proftpd Problem - fulltilt - 10-01-2007 12:48 AM

thanks joximu,

did that mean when i change after fix my user in passwd a:
Code:
update mail_users set status = "toadd";
and ispcp-rqst-mngr -set's the right users from passwd?

But this error is strange by webmail login:
Code:
ERROR: Connection dropped by IMAP server

joximu Wrote:IMAP -> Courier.
So, if POP3 is working, then IMAP should too...

Courier get's the user infos from /etc/courier/userdb* - they are generated/updated by ispcp.

The sasldb2 file is needed by postfix if you want to give your customers a SMTP service... it's also maintained by isccp.

Normally it's ok if you set the status of all mail_users to "change" and run the request manager... or maybe you need "to_add" - I'm not sure... :-)

/J