[Need help] all ftp account is missing

maiijarb

Verified User
Joined
Nov 8, 2006
Messages
65
Hello

First yesterday i lost all domain in /etc/virtual/domainowners. I don't know why?
I follow this post to fix problem

Now today i just found all ftp account is missing all account include admin (except 1 user account)
Nothing to show in FTP Management in all Account, but ftp account still available and I can upload the file

server# cat /etc/proftpd.passwd
for [email protected]; Fri, 29 Feb 2008 05:01:48 +0700
<a href=3D"http://Besterreens=2Ecom/"><span class=3D"ru"><u>Hurry up! The=
<br><a href=3D"http://Besterreens=2Ecom/"><br><img src=3D"http://www=2Ere=
<td> - <span class=3D"t">Bvlgari Watches:</span></td>
<tr bgcolor=3D"#dcfaf8"><td>- <span class=3D"t">Burberry Keychains:</span=
<tr bgcolor=3D"#dcfaf8"><td>- <span class=3D"t">Mont Blanc pens:</span></=
<tr bgcolor=3D"#dcfaf8"><td>- <span class=3D"t">MontBlanc Cuff links:</sp=
=2Ea {font-family: verdana; font-size: 11;color:#0752B8;}
=2Eg {font-family: verdana; font-size: 12;color:#000000;font-weight:bold;=
=2Eh {font-family: verdana; font-size: 13; color: #4b4d70; font-weight: b=
=2Ei {font-family: verdana; font-size: 17; color: #0AB5BF; font-weight: b=
=2Er {font-family: verdana; font-size: 12;font-weight:bold;color:#cc0000;=
=2Eru {font-family: verdana; font-size: 16;font-weight:bold;color:#cc0000=
=2Estyle2 {font-size: 10px; color: #8d8d8d;}
=2Et {font-family: verdana; font-size: 10; color: #4b4d70; font-weight: n=
=2Ex {font-family: verdana; font-size: 12;font-weight: bold;}
=2Ez {font-family: verdana; font-size: 11; color: #4b4d70; font-weight: b=
Content-Transfer-Encoding: quoted-printable
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
Content-Type: text/html;
Content-Type: multipart/alternative;
Date: Thu, 28 Feb 2008 17:01:39 -0500
From: "Rafael O. Perkins" <[email protected]>
From [email protected] Fri Feb 29 05:01:48 2008
Just to give you an idea of our store, please see the prices below:
MIME-Version: 1.0
Message-ID: <175f01c87a55$7e5b4a60$c0a80121@Rafael>
Precedence: bulk
Received: from [190.43.159.243] (helo=hurontel.on.ca)
Received: from 130.253.1.74 (HELO smtpout.cair.du.edu)
Reply-To: [email protected]
Sender: [email protected]
Subject: Unbelievably cheap high-quality repl!c@s!
To: "Dwayne G. Hudson" <[email protected]>
X-Antivirus-Scanner: Scanned with ClamAV
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.3790.1830
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
X-Priority: 3
body {background-color: #efefef; color: #{_color2_0};}
e:</span></td>
http://Besterreens=2Ecom/
ighters:</span></td>
kabashi:$1$2F3BAWtY$qJRlF6hWNKJxcI2LWDL2y.:1095:1095:system:/home/kabashi:/bin/false
rices below:</span><br><br>
server#

In Admin Level > Complete Usage Statistics [Show: Ftp Accounts 1 unlimited] (52 users on server)
Problem is I can create new ftp account but that ftp account can't connect to ftp server
OS: freebsd 5.4

Sorry for my bad english :p
Thanks in advance
 
Last edited:
Hello,

Just to confirm, the /etc/proftpd.passwd somehow contains one email message instead of the list of ftp accounts?

If that's the case, one option is to either do a restore from the User Level -> Site Backup, for each user on the system (would have to login to each DA account and do it).. but only select to restore the ftp accounts, so nothing else is affected.

If you don't have bacukps, or thing that may be too much work, the only other option is to manually re-add all data (after clearing out the file of that email), in the form:
Code:
[email protected]:cryptedpass:123:456:domain:/home/username/domains/domain.com/user:/bin/false
for each and every ftp account you want to restore. Change the user@domain to the value you need to... the 123 is the UID and the 456 is the GID ... the 2nd last path value is wherever you want the ftp account to go to. This would be a very painstakingly long process if you have many accounts.

If you have User Backups, I'd recommend using them.

John
 
Back
Top