Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

FTP Problem

110 views
Skip to first unread message

Amit Batra

unread,
Nov 27, 1999, 3:00:00 AM11/27/99
to
Hi,

I am a newcomer to the world of AIX. The ftp daemon is running on my
machine, but it does not allow anybody (not even root) to ftp to my machine.
How can I allow people to ftp to my AIX machine?

Somebody suggested including the usernames in the /etc/ftpusers file.
But I have seen that no such file exists on another server running here
(although it does allow us to do ftp on it). Urgent help is required.

Amit

charles hsiao

unread,
Nov 27, 1999, 3:00:00 AM11/27/99
to
If Standard AIX is the current authentication method:
Before the ftpd daemon can transfer files for a client process, it must
authenticate the client process. The ftpd daemon authenticates client
processes according to these rules:

The user must have a password in the password database,
/etc/security/passwd. (If the user's password is not null, the client
process must provide that password.)
The user name must not appear in the /etc/ftpusers file. Leave this file
empty.
The user's login shell must appear in the shells attribute of the
/etc/security/login.cfg file.
If the user name is anonymous or ftp, an anonymous FTP account must be
defined in the password file. In this case, the client process is allowed to
log in using any password. By convention, the password is the name of the
client host. The ftpd daemon takes special measures to restrict access by
the client process to the anonymous account.

Amit Batra <aba...@in.ibm.com> wrote in message
news:81oqqg$ck6$1...@news.btv.ibm.com...

Hans Bonfigt

unread,
Nov 27, 1999, 3:00:00 AM11/27/99
to
Amit Batra wrote:
>
> The ftp daemon is running on my machine, but it does not allow
> anybody (not even root) to ftp to my machine.

In fact, there is no need to have a /etc/ftpusers at all.

However, are you really sure that ftpd comes up if a user tries to
log in ?

What happens exactly if you try to get connected by 'ftp' ?

Do you have access if you log in directly on the server (Use the
command 'ftp localhost') ? You should see the following:
> Connected to loopback.
> 220 JINX FTP server (Version 4.1 Mon Mar 23 10:20:45 CST 1998) ready.
> Name (localhost:bo):


Regards,

--
Hans Bonfigt /SES/
UNIX App. Development Systementwicklung Schollmeier
Phone: +49 171 3758928 <bonfigt....@t-online.de>

Amit Batra

unread,
Nov 28, 1999, 3:00:00 AM11/28/99
to
This is what happened when I tried ftp localhost on my machine (called
sambhaji):

bash-2.02# ftp localhost
Connected to localhost.
220 sambhaji FTP server (Version 4.1 Tue Sep 8 17:35:59 CDT 1998) ready.
Name (localhost:root): root
530 User root access denied.
Login failed.
ftp>

The same message appears if anybody tries to login as a normal user. Can you
tell me what the problem could be?

Amit

Hans Bonfigt wrote in message <384002...@t-online.de>...

Hans Bonfigt

unread,
Nov 28, 1999, 3:00:00 AM11/28/99
to
Amit Batra wrote:
>
> This is what happened when I tried ftp localhost on my machine (called
> sambhaji):
>
> bash-2.02# ftp localhost
> Connected to localhost.
> 220 sambhaji FTP server (Version 4.1 Tue Sep 8 17:35:59 CDT 1998) ready.
> Name (localhost:root): root
> 530 User root access denied.
> Login failed.
> ftp>

Now this is funny. Can you ftp to another machine ? Can another
machine ftp to your box ?

Perhaps something is broken with the client and not the server.

Amit Batra

unread,
Nov 29, 1999, 3:00:00 AM11/29/99
to
Hi Hans,

From my machine (ie sambhaj, whose output I had produced earlier), I am
able to ftp other machines, but nobody is able to ftp to my machine (not
even me, the root). I checked /etc/ftpusers file, it does not exist on my
machine (also not on other machines to which we can successfully ftp).

I am in a fix. Please help me.

Thanks,
Amit

Hans Bonfigt wrote in message <38416E...@t-online.de>...

Amit Batra

unread,
Nov 29, 1999, 3:00:00 AM11/29/99
to
Hi Hans and Charles,

The problem is solved. The problem was in the /etc/security/login.cfg
file. This file contains the path of the login shells of each user. We had
re-compiled bash on AIX and all users were using bash as there login shell.
But its entry did not exist in the /etc/security/login.cfg file.

After the entry was made (just 2 minutes ago), ftp is running like
magic. Thanks a lot to both of you for helping me, especially to Charles who
pointed out this problem in the first place.

Amit

Amit Batra wrote in message <81t1am$h9k$1...@news.btv.ibm.com>...

0 new messages