Not connect directadmin, after changed a line content directadmin.conf

tienpt

New member
Joined
May 6, 2011
Messages
8
Hi You!

I using directadmin on server 122.201.15.11 (CentOS 32bit). I just changed a line content directadmin.conf as below:

From:
ftp_passwd=/etc/proftpd.passwd
To:
ftp_passwd=/etc/passwd

Finally, i use command: service directadmin restart. After, login http://www.122.201.15.11:2222 with account admin exits, can't login. I don't understand?

After, i changed a line: ftp_passwd=/etc/passwd to ftp_passwd=/etc/proftpd.passwd. But stay not connect. I tired! I don't understand. Hope u help me!
Thanks U!
 

tienpt

New member
Joined
May 6, 2011
Messages
8
Thanks for your care :)
After, i changed a line: ftp_passwd=/etc/passwd to ftp_passwd=/etc/proftpd.passwd. I can't login with admin and other user exits.

I hosting 80 websites, but now i can't login directadmin. Can't backup data.
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,893
Location
GMT +7.00
1. That should be ftppasswd

Code:
ftppasswd=/etc/proftpd.passwd
2. Do not change its value to /etc/passwd or you might break it, and you'll loose any access to the server.

3. If you want to enable PAM, re-compile ProFTPD instead:

Code:
# cat /usr/local/directadmin/custombuild/custom/proftpd/configure.proftpd
#!/bin/sh
install_user=ftp \
install_group=ftp \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var/run \
--mandir=/usr/share/man \
--without-pam \
--disable-auth-pam \
--with-modules=mod_ratio:mod_readme:mod_tls \
LDFLAGS=-static
Remove lines:

Code:
--without-pam \
--disable-auth-pam \
and rebuild it.

4. Do you still have access via SSH? If not, you should recover /etc/passwd. If yes, roll back changes to prevent /etc/passwd corruption.
 

tienpt

New member
Joined
May 6, 2011
Messages
8
I did as your guide. But still can't login site diirectadmin.

I just view error.log, as below:
###############
2011:05:04-15:34:47: The username hasn't been set. Won't run the script without dropping privileges
2011:05:04-15:46:18: The username hasn't been set. Won't run the script without dropping privileges
2011:05:05-08:14:23: Timeout from from 113.160.28.6 : last flagged: Request::readAndProcess(*skt, 113.160.28.6, 113.160.28.6)
2011:05:05-08:17:30: Timeout from from 113.160.28.6 : last flagged: Request::readAndProcess(*skt, 113.160.28.6, 113.160.28.6)
2011:05:05-08:19:32: Timeout from from 113.160.28.6 : last flagged: Request::readAndProcess(*skt, 113.160.28.6, 113.160.28.6)
2011:05:05-09:09:15: Timeout from from 113.160.28.6 : last flagged: Request::readAndProcess(*skt, 113.160.28.6, 113.160.28.6)
2011:05:05-10:47:28: Socket write error: Unknown error
2011:05:05-10:47:28: Error while sending ./data/skins/enhanced/images/nav-home.gif
2011:05:05-11:35:44: Timeout from from 113.160.28.6 : last flagged: Request::readAndProcess(*skt, 113.160.28.6, 113.160.28.6)
2011:05:05-11:43:09: Timeout from from 113.160.28.6 : last flagged: Request::readAndProcess(*skt, 113.160.28.6, 113.160.28.6)
2011:05:05-11:54:59: Timeout from from 113.160.28.6 : last flagged: Request::readAndProcess(*skt, 113.160.28.6, 113.160.28.6)
2011:05:05-11:54:59: Timeout from from 113.160.28.6 : last flagged: Request::readAndProcess(*skt, 113.160.28.6, 113.160.28.6)
2011:05:05-12:59:46: Timeout from from 113.160.28.6 : last flagged: Request::readAndProcess(*skt, 113.160.28.6, 113.160.28.6)
2011:05:05-13:00:13: Timeout from from 113.160.28.6 : last flagged: Request::readAndProcess(*skt, 113.160.28.6, 113.160.28.6)
2011:05:05-13:00:24: Timeout from from 113.160.28.6 : last flagged: Request::readAndProcess(*skt, 113.160.28.6, 113.160.28.6)
2011:05:05-13:14:07: Timeout from from 113.160.28.6 : last flagged: Request::readAndProcess(*skt, 113.160.28.6, 113.160.28.6)
2011:05:05-13:24:24: Socket write error: Unknown error
2011:05:05-15:02:43: Error changing ftp password for diendanngo: Unable to read /etc/proftpd.passwd for reading to see if diendanngo exists<br>
That user doesn't exist<br>

2011:05:05-16:06:05: Rejected session for user ttv because IP (113.22.24.7) doesn't match session file (113.22.97.80)
2011:05:05-16:06:30: Unable to read the system ftp passwd file to add the user to it.
2011:05:05-17:46:08: Timeout from from 113.160.28.6 : last flagged: Request::readAndProcess(*skt, 113.160.28.6, 113.160.28.6)
2011:05:05-17:46:08: Timeout from from 113.160.28.6 : last flagged: Request::readAndProcess(*skt, 113.160.28.6, 113.160.28.6)
2011:05:05-17:46:08: Timeout from from 113.160.28.6 : last flagged: Request::readAndProcess(*skt, 113.160.28.6, 113.160.28.6)
################

If still can't login, i tired! Because it hosting 90 websites and now i can't backup data. Do you have a solution backup data website hosting? Help me!
Thanks for your support!
 

tienpt

New member
Joined
May 6, 2011
Messages
8
Hi You!

I found error, in directadmin.conf, i change a line: userdata=./data:/users to userdata=./data/users. Done!

But now, i can't ftp to 122.201.15.11 with account ftp. It's alert:
C:\Users\Beginer.Beginer-PC>ftp 122.201.15.11
Connected to 122.201.15.11.
220 FTP Server ready.
User (122.201.15.11:(none)): ftptest
331 Password required for ftptest.
Password:
530 Login incorrect.
Login failed.
ftp>

Now, i need to do this problem? you can guide me?
Thanks for your support!
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,893
Location
GMT +7.00
Error changing ftp password for diendanngo: Unable to read /etc/proftpd.passwd for reading to see if diendanngo exists
Please, make sure /etc/proftpd.passwd exists and is not empty. If it's doesn't exist or is corrupted you need to recover it from backup (of course if you have any backups).

Did you change /etc/proftpd.conf? Did you enable PAM? If so, try to roll back changes done to the file, disable PAM and see if anything changes.
 

tienpt

New member
Joined
May 6, 2011
Messages
8
Hello!

I created user admin (reseller) in direactadmin, user login ftp successful. When create user ftp in reseller, user can't login ftp. I don't know. I to do research.

That problem? How to resolve this problem?
@: Passive mode already.

Thanks so much fot your support!
 

tienpt

New member
Joined
May 6, 2011
Messages
8
I don't find ftp log. I command: cd /etc. after ls -l, idon't see ftplog.
Where i can find it?
 

tienpt

New member
Joined
May 6, 2011
Messages
8
Hello,

I found that resolve this issues, as below:
When create user reseller, user's information exits database's directadmin and sync passwd of CentOS. I delete this user, use command:
userdel reseller

After, create reseller is passwd. Now passwd sync database's directadmin. Reseller can connect ftp server.

Do you think so? Thanks for your support! I still haven't found a better solution :D
Althought, this solution ....
 
Top