Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Proftpd user problem!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Ryan
n00b
n00b


Joined: 27 Apr 2002
Posts: 18

PostPosted: Tue May 21, 2002 7:04 pm    Post subject: Proftpd user problem! Reply with quote

Hi again.

I'm having a slight issue with proftpd on my gentoo-box, as it seems it won't let anything but anonymous users through it's barricades. I can NOT get my standard users to authenticate to it. :evil:

The log file shows:

Code:
 [proftpd] - FTP session opened
[proftpd] - PAM(ryan): Authentication failure
[proftpd] - USER ryan (Login failed): Incorrect password
[proftpd] - FTP session closed.


... and it just keeps on doing that, regardless of what I come up with.
ServerType = Standalone
AuthPAM = off
AuthPAMAuthoritative = off
DefaultServer = on

... and so on.

I've copied a ftpusers file from my other SuSE distrib. I've copied the /etc/pam.d/ftpd file from the SuSE distrib. I've even borrowed the SuSE proftpd.conf file. Nothing works.

Can anyone pleeeeaase help me with this? I'm starting to pull hair out soon... and there's not much hair to go on either. :cry:

Thanks!
I'm looking forward to it!
Ryan.
Back to top
View user's profile Send private message
proxy
Apprentice
Apprentice


Joined: 20 Apr 2002
Posts: 260
Location: Chantilly, VA

PostPosted: Tue May 21, 2002 7:08 pm    Post subject: Reply with quote

i think you need to enable AuthPAM

worked for me :P
Back to top
View user's profile Send private message
Ryan
n00b
n00b


Joined: 27 Apr 2002
Posts: 18

PostPosted: Tue May 21, 2002 7:22 pm    Post subject: Proftpd causing headache Reply with quote

AuthPAM has been both on and off in the proftpd.conf file. So has AuthPAMAuthoritative and a million other funny things...

The part that I don't understand is, that the proftpd.conf that purrs like a kitten on my SuSE doesn't make any difference on the Gentoo.

HA! 8O
Sitting here fiddling with it... IT WORKS!! :D

The user had to have a /bin/bash after the name and stuff in the passwd file.

Why's that anyway? :?:

Can you (or anyone else) tell me the 100% correct procedure of adding a new user to the system?

Thanks!
Ryan.
Back to top
View user's profile Send private message
TheWart
Guru
Guru


Joined: 10 May 2002
Posts: 432
Location: Nashville,TN - USA

PostPosted: Wed May 22, 2002 5:17 am    Post subject: Reply with quote

When I was reading up on FTP junk, I read that an easy way to add a user was to add them to the system (via 'useradd') and then add them with the ftp-program. BUT, be sure they have a shell defined in /etc/passwd, b/c if they dont, they wont be able to login, and ssh wont work if you try that...and on and on.
_________________
Face it, we are all noobs.

On the box it said it was designed for Win XP or better, so why won't it work with Linux?
Back to top
View user's profile Send private message
handsomepete
Guru
Guru


Joined: 21 Apr 2002
Posts: 548
Location: Kansas City, MO

PostPosted: Wed May 22, 2002 6:12 am    Post subject: Reply with quote

A reeeeal easy way to add users is to emerge superadduser from /usr/portage/app-admin... it helps you remember to add to groups and setup passwords/etc....
Back to top
View user's profile Send private message
amigadave
n00b
n00b


Joined: 29 Apr 2002
Posts: 55
Location: UK

PostPosted: Wed May 22, 2002 6:58 am    Post subject: Reply with quote

If a user doesn't have a valid shell but you want to allow them access through proftpd then use
Code:

RequireValidShell off

in the server configuration part of proftpd.conf

This is great because it means that a user can be given only ftp access (no ssh, etc.) for extra security.
Back to top
View user's profile Send private message
Ryan
n00b
n00b


Joined: 27 Apr 2002
Posts: 18

PostPosted: Fri May 24, 2002 2:56 pm    Post subject: I think I got it now Reply with quote

Thanks everyone! :-)

I think I've got it now.
Another problem has surfaced, but just to keep it clean, I'll post it in an new thread. :wink:

Ryan.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum