Operating System - HP-UX
1834406 Members
1499 Online
110067 Solutions
New Discussion

access denied when ftpaccess is used

 
SOLVED
Go to solution
Jdamian
Respected Contributor

access denied when ftpaccess is used

Hi

Users cannot ftp to my system when -a option of ftpd daemon is used.

The steps are:

1. I edit /etc/ftpd/ftpaccess file and type

suppresshostname yes

2. I edit /etc/inetd.conf file and type -a option for ftp entry.

3. inetd -c

4. Run ftp.

Connected to mysys.
220 FTP server (Version 1.1.214.8 Fri Apr 20 07:27:42 GMT 2001) ready.
Name (mysys:joe):
530 User joe access denied....
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.


Can anyone help me ?

Thanx a lot.
9 REPLIES 9
Sridhar Bhaskarla
Honored Contributor
Solution

Re: access denied when ftpaccess is used

Hi,

One quick way of finding out the issue is to enable ftpd with -l option in /etc/inetd.conf and then refresh inetd with -l option.

Then look at your syslog.log and you should be able to figure out the reason like "bad shell" etc.,

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Sergejs Svitnevs
Honored Contributor

Re: access denied when ftpaccess is used

Jdamian
Respected Contributor

Re: access denied when ftpaccess is used

Thankx, Sridhar.

The messages is

ACCESS DENIED (not in any class) TO


steven Burgess_2
Honored Contributor

Re: access denied when ftpaccess is used

Hi

Do you have an

ftpusers and ftpusers.exceptions files within /etc/ftpd ?

HTH

Steve
take your time and think things through
Denver Osborn
Honored Contributor

Re: access denied when ftpaccess is used

You should have a "class" entry in your ftpaccess file.

Here's an example from the /usr/newconfig/etc/ftpd/examples/ftpaccess file:

class local real,guest,anonymous *.domain 0.0.0.0
class remote real,guest,anonymous *

Hope this helps,
-denver
steven Burgess_2
Honored Contributor

Re: access denied when ftpaccess is used

Also

You need to define the class within ftpaccess

class local real mbnahp81 localhost
class remote real xxx.xxx.* xxx.xxx.*

To allow access for servers on subnets within your site

HTH

Steve
take your time and think things through
Sridhar Bhaskarla
Honored Contributor

Re: access denied when ftpaccess is used

Hi,

Make sure you have 'class' statement in your ftpaccess file that has "*".

For ex.,

class all real,guest,anonymous *



-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Steven E. Protter
Exalted Contributor

Re: access denied when ftpaccess is used

The user name isn't in the /etc/ftpd/ftpuser file is it?

That would do it.

Its counter intuitive, but listing a user in that file denies access.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: access denied when ftpaccess is used

Typo.

Name of file is

/etc/ftpd/ftpusers

Duh.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com