FTP Logins won't work. HELP!!! [SOLVED]

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
laughingbuddha
Forum Regular
Forum Regular
Posts: 512
Joined: Mon Mar 10, 2008 9:12 pm
Location: Southampton, UK

FTP Logins won't work. HELP!!! [SOLVED]

Unread post by laughingbuddha »

Hi,

I've just noticed that all my FTP logins on my ART secure server are failing due to incorrect details. I reset the passwords in Plesk, and still it won't work.

Help!!!

Matt
Matt

"Given that God is infinite, and that the universe is also infinite... would you like a toasted teacake?"

about.me/mattauckland
twitter.com/mattauckland
laughingbuddha
Forum Regular
Forum Regular
Posts: 512
Joined: Mon Mar 10, 2008 9:12 pm
Location: Southampton, UK

Re: FTP Logins won't work. HELP!!!

Unread post by laughingbuddha »

Read the post on Plesk forums and ran

Code: Select all

yum update
. Then rebooted, ran

Code: Select all

asl -u
and

Code: Select all

asl -s -f
but I still can't log in on any of the ftp accounts.

Matt :(
Matt

"Given that God is infinite, and that the universe is also infinite... would you like a toasted teacake?"

about.me/mattauckland
twitter.com/mattauckland
DerFalk
Forum User
Forum User
Posts: 35
Joined: Wed Jun 25, 2008 5:15 am
Location: Good old Germany

Re: FTP Logins won't work. HELP!!!

Unread post by DerFalk »

Please tell about the errorlog...

which Error comes up? Or no error? access denied? Which system? ...
Thanx to all :)

DerFalk
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: FTP Logins won't work. HELP!!!

Unread post by scott »

are you using anon ftp anywhere with quotas turned on?
laughingbuddha
Forum Regular
Forum Regular
Posts: 512
Joined: Mon Mar 10, 2008 9:12 pm
Location: Southampton, UK

Re: FTP Logins won't work. HELP!!!

Unread post by laughingbuddha »

FTP is the standard Plesk install. It just seems to reject the login details.

The only thing I changed in the FTP was getting rid of the ProFTPD error notifications via OSSEC HIDS emails.

I edited the proftpd config file in the pam.d directory. Commenting out the following lines:-

Code: Select all

#auth       required    pam_stack.so service=system-auth
#account    required    pam_stack.so service=system-auth
#session    required    pam_stack.so service=system-auth
Then added the following 3 lines to the config file:

Code: Select all

auth       include      system-auth
account    include      system-auth
session    include      system-auth
Matt
Matt

"Given that God is infinite, and that the universe is also infinite... would you like a toasted teacake?"

about.me/mattauckland
twitter.com/mattauckland
laughingbuddha
Forum Regular
Forum Regular
Posts: 512
Joined: Mon Mar 10, 2008 9:12 pm
Location: Southampton, UK

Re: FTP Logins won't work. HELP!!!

Unread post by laughingbuddha »

Fixed it.

Originally the config file looked like this:-

Code: Select all

#%PAM-1.0M-1.0
auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
auth include system-auth
auth required pam_shells.so
account include system-auth
#session include system-auth
Used the following, please tell me if this is wrong Scott:-

Code: Select all

#%PAM-1.0M-1.0
auth       required     pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
auth       required     pam_shells.so
auth       include      system-auth
account    include      system-auth
#session    include     system-auth
session    required     pam_loginuid.so
I was going to add this line:

Code: Select all

auth       required    pam_stack.so sevice=system-auth
But didn't know what it did, so I left it out.

Thanks guys, using Matt Sonnentag and 105547111 over at the Plesk forums did the trick. Linux newbie by the way, so not all up on everything. Now Windows servers and I know what I'm talking about, but needless to say they are not as secure as Linux with ASL running.

Thanks again :)

Matt
Matt

"Given that God is infinite, and that the universe is also infinite... would you like a toasted teacake?"

about.me/mattauckland
twitter.com/mattauckland
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: FTP Logins won't work. HELP!!!

Unread post by scott »

Gotcha, what distro are you using?
laughingbuddha
Forum Regular
Forum Regular
Posts: 512
Joined: Mon Mar 10, 2008 9:12 pm
Location: Southampton, UK

Re: FTP Logins won't work. HELP!!!

Unread post by laughingbuddha »

Distro, do you mean CentOS version? 5.2

Matt
Matt

"Given that God is infinite, and that the universe is also infinite... would you like a toasted teacake?"

about.me/mattauckland
twitter.com/mattauckland
Post Reply