Current time: 04-27-2024, 11:25 AM Hello There, Guest! (LoginRegister)


Post Reply 
proftpd Problem
Author Message
fulltilt Offline
Member
***

Posts: 1,225
Joined: Apr 2007
Reputation: 5
Post: #1
proftpd Problem
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.
(This post was last modified: 09-30-2007 02:40 AM by fulltilt.)
09-30-2007 02:38 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: proftpd Problem
Check the Permissions on the Folder. Looks like there are not correct for this User.

Greez BeNe
09-30-2007 02:55 AM
Visit this user's website Find all posts by this user Quote this message in a reply
fulltilt Offline
Member
***

Posts: 1,225
Joined: Apr 2007
Reputation: 5
Post: #3
RE: proftpd Problem
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
(This post was last modified: 09-30-2007 04:14 AM by fulltilt.)
09-30-2007 04:12 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #4
RE: proftpd Problem
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
09-30-2007 04:39 AM
Visit this user's website Find all posts by this user Quote this message in a reply
fulltilt Offline
Member
***

Posts: 1,225
Joined: Apr 2007
Reputation: 5
Post: #5
RE: proftpd Problem
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
09-30-2007 05:07 AM
Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #6
RE: proftpd Problem
when its just about the mails:

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


I don't know about the ftp users...
09-30-2007 05:14 AM
Visit this user's website Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #7
RE: proftpd Problem
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
09-30-2007 06:06 AM
Visit this user's website Find all posts by this user Quote this message in a reply
fulltilt Offline
Member
***

Posts: 1,225
Joined: Apr 2007
Reputation: 5
Post: #8
RE: proftpd Problem
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.
(This post was last modified: 09-30-2007 11:42 PM by fulltilt.)
09-30-2007 11:40 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #9
RE: proftpd Problem
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
09-30-2007 11:45 PM
Visit this user's website Find all posts by this user Quote this message in a reply
fulltilt Offline
Member
***

Posts: 1,225
Joined: Apr 2007
Reputation: 5
Post: #10
RE: proftpd Problem
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
(This post was last modified: 10-01-2007 12:49 AM by fulltilt.)
10-01-2007 12:48 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)