1753797 Members
8252 Online
108799 Solutions
New Discussion юеВ

ftp access denied

 
Jody Bennett
Advisor

ftp access denied

I have setup two new accounts as ftp only accounts. When I try to ftp I get an error message "access denied" .

What should I look for.
"Sometimes you have to jump more than one fence to get out of the pasture."
6 REPLIES 6
Kirk Gardner
Advisor

Re: ftp access denied

Start off with the usual suspects:

/etc/inetd.conf
/var/adm/inetd.sec
/etc/services
/etc/shells
Kirk Gardner
Advisor

Re: ftp access denied

You might get more information by taking a peek at /var/adm/syslog/syslog.log
Patrick Wallek
Honored Contributor

Re: ftp access denied

Also check the file /etc/ftpd/ftpusers (HP-UX 11.x) -- Any users in this file will be rejected.

Fot HP-UX 10.x the file is /etc/ftpusers

Also look at /var/adm/inetd.sec to see if ftp is disallowed from any IP addresses.
Shannon Petry
Honored Contributor

Re: ftp access denied

Look at "http://www.invenioeng.com/systems/ftpd_faq.html" for info on configuring ftpd . Also if you search the forums, I have probably answered about 30 similar ftp questions in the past 6 months. re-post if you can not find your answer either on my site or in the previously answered areas.

Regards,
Shannon
Microsoft. When do you want a virus today?
Shahul
Esteemed Contributor

Re: ftp access denied


Hi

I think this is the problem of /etc/shells or /etc/ftpusers.

Make sure that, that particular user's shell is mentioned in /etc/shells and that user name is not included in /etc/ftpusers.

If none of the users are able to do ftp, U can suspect /etc/services or /var/adm/inetd.sec.

Please checkup


Shahul
Herve BRANGIER
Respected Contributor

Re: ftp access denied

Hello

To create ftp only users you
need to use a special shell
like /usr/bin/false.
To known why your access is
deny see /var/adm/syslog/syslog.log
but I think you will see something like "bad shell".
In this case create a file
/etc/shells which contains :

/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh
/usr/bin/false

(I presume you use /usr/bin/false, add
all your shells in this file).

HTH

Herv?