HELP! - proftp configuration?

HELP! - proftp configuration?

Post by Janpeter Wolf » Wed, 28 Jul 1999 04:00:00



Hiho,

I have a problem logging in my system using ftp. I have enabled ftp
generally as written in the updates at linux.com. So I can log in as ftp
or anonymous.

I have checked the proftp page and am now running proftpd as root, but
still it is impossible to log in as a normal user. The log/secure says

Jul 27 15:32:18 milo in.proftpd[6048]: connect from 127.0.0.1
Jul 27 15:32:22 milo proftpd[6048]: USER jp: incorrect password from
localhost [
127.0.0.1] to 127.0.0.1:21

which is the eroor I get on the terminal side as well. The password is
not wrong. It seems that just proftp can't access the shadow file or so.

What can I do? Or is it a different error? I'm stumped, please help!

Thanks,

JP

 
 
 

HELP! - proftp configuration?

Post by Janpeter Wolf » Wed, 28 Jul 1999 04:00:00


OK, finally I found a page. So if others have the same problem:

http://www.dartmouth.edu/~jonh/lppc-serve/cache/629.html

JP

 
 
 

HELP! - proftp configuration?

Post by Luk-Marie Decroo » Wed, 28 Jul 1999 04:00:00


Quote:> Hiho,

> I have a problem logging in my system using ftp. I have enabled ftp
> generally as written in the updates at linux.com. So I can log in as ftp
> or anonymous.

> I have checked the proftp page and am now running proftpd as root, but
> still it is impossible to log in as a normal user. The log/secure says

> Jul 27 15:32:18 milo in.proftpd[6048]: connect from 127.0.0.1
> Jul 27 15:32:22 milo proftpd[6048]: USER jp: incorrect password from
> localhost [
> 127.0.0.1] to 127.0.0.1:21

> which is the eroor I get on the terminal side as well. The password is
> not wrong. It seems that just proftp can't access the shadow file or so.

> What can I do? Or is it a different error? I'm stumped, please help!

> Thanks,

> JP

Hi,

The problem is that ProFTP doesn't read the /etc/passwd file.
You must create a  /etc/proftpd.passwd .
I use the follwing perl script to generate the passwords for the
/etc/proftp.passwd file :

#!/usr/bin/perl
$user = $ARGV[0]; $pass1 = $ARGV[1];
my($salt)=seedchar().seedchar();
$pass = crypt($pass1, $salt);
print STDOUT "$user:$pass\n";

sub seedchar {
   ('a'..'z','A'..'Z','0'..'9','.','/','"')[rand(64)];

Quote:}

# end script

In the /etc/proftpd.conf file you must add  :

# allow users to login

<Limit LOGIN>
 AllowAll
 Allow from all
</Limit>

# set path for ftp passwd file

AuthUserFile            /etc/proftpd.passwd

This are my settings and they are working fine.

Good luck,

Luk-Marie Decroos