1823063 Members
3175 Online
109645 Solutions
New Discussion юеВ

FTP access denied

 
SOLVED
Go to solution
Gerald_13
Frequent Advisor

FTP access denied

Hi,
When I do a ftp to a server (neptune) I have this message with all user...

#ftp neptune
Connected to neptune.axa-fr.intraxa.
220 neptune FTP server (Version 1.1.214.4(PHNE_29461) Thu Nov 20 06:40:06 GMT 2003) ready.
Name (neptune:s557561): root
530 User root access denied...
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.

Thanks for your help.
Regard,
Gerald
15 REPLIES 15
Ravi_8
Honored Contributor
Solution

Re: FTP access denied

Hi

check for ftp commented lines in /etc/pam.conf, uncomment the lines
never give up
Michael Tully
Honored Contributor

Re: FTP access denied

You might have an entry in the /etc/ftpd/ftpaccess or ftpusers file that does not allow root access from ftp. Check the remote server.

Also:- can you ftp to this server as any other user?
Anyone for a Mutiny ?
Gerald_13
Frequent Advisor

Re: FTP access denied

The file is OK...but the pb is.
This file doesn't move since nov 2000. So the pb is here since yesterday.
Thanks.
regards.
Gerald_13
Frequent Advisor

Re: FTP access denied

The ftpaccess doesn't exist and the ftpuser too !

cd ftpd
neptune:(root)/etc/ftpd> ls
ftp-exec
pids

thanks !
Gerald

Gerald_13
Frequent Advisor

Re: FTP access denied

On the remote server..that doesn't work with all user...

Thanks
Rgomes
Valued Contributor

Re: FTP access denied

Hi Gerald,

You should look into the file neptune:/etc/ftpd/ftpusers and have to omit 'root' user if you want to access via ftp by root user.

regards,
Richard
Michael Tully
Honored Contributor

Re: FTP access denied

On the remote server, if no one can ftp to it, probably means that the service has been disabled. Check the /etc/inetd.conf file to see if the line with ftp has been commented out.
Anyone for a Mutiny ?
Michael Duthie
Trusted Contributor

Re: FTP access denied

Also check /var/adm/inetd.sec for any ftp deny.

Also can you telnet ? if not it could be a inetd prob.
Jan Sladky
Trusted Contributor

Re: FTP access denied

hi Gerald,
check /etc/inetd.con that following line isn't commented:
ftp stream tcp nowait root /usr/lbin/ftpd
ftpd -l

and that in /var/adm/inetd.sec
isn't something like :

ftp deny xxx.yy.yy.z

br jan
GSM, Intelligent Networks, UNIX
Gerald_13
Frequent Advisor

Re: FTP access denied

Hi,
this file is OK..
I would like to refress this process (inetd)
Can I do this with kill -hup whitout lost the cnx with the server ?
thanks.
Michael Tully
Honored Contributor

Re: FTP access denied

After making any changes to /etc/inetd.conf you run:

# inetd -c

which tells inetd to re-read it's config file. There is a man page on inetd.conf that supplies this information for future reference.
Anyone for a Mutiny ?
Jan Sladky
Trusted Contributor

Re: FTP access denied

restart inetd (or rereading of /etc/inetd.conf) you can done with following command, your connection with server will not interrupted (I try it via ssh now ;-):

inetd -c

if you want to log inetd enter

inetd -l

br Jan
GSM, Intelligent Networks, UNIX
Gerald_13
Frequent Advisor

Re: FTP access denied

It's OK now..
for your information :
someone put the file /etc/shells with /usr/bin/false --> not good for ftp.
Thanks very much.
Regards,
Gerald
Bharat Katkar
Honored Contributor

Re: FTP access denied

Gerald,
"someone put the file /etc/shells with /usr/bin/false "
This is part of FTP security and is done deliberatley. Better to cross check.
Regards,
You need to know a lot to actually know how little you know
isaac_loven
Frequent Advisor

Re: FTP access denied


I had the same problem. Just Want others to know of how how we solved it.

I changed the users shell listed in /etc/passwd from: /bin/ksh
to: /usr/bin/ksh
I did: usermod -s /usr/bin/ksh loginid
Isaac.