1832798 Members
2830 Online
110045 Solutions
New Discussion

Re: ftp problem

 
SOLVED
Go to solution
Michael Selvam
Occasional Advisor

ftp problem

Hi
I am using HP-ux 11.00 on hp-9000 Server

The problem is the FTP server is working fine if i am in root user. For other user i am getting following error.

ftp: Permission denied

Plw. give me a soloution.

Regards

Michael
15 REPLIES 15
Victor_5
Trusted Contributor

Re: ftp problem

ftp is controlled by inetd daemon, check /var/adm/inetd.sec to see anything was denied.
Bill McNAMARA_1
Honored Contributor

Re: ftp problem

John Poff
Honored Contributor

Re: ftp problem

Hi,

You might need to add users to the /etc/ftpd/ftpusers file to allow them ftp access. You can read up on it through:

man 4 ftpusers

JP
Michael Selvam
Occasional Advisor

Re: ftp problem

hi

my /etc/ftpd/ftpusers file is empty.

I am not a UNIX Administrator.

pls. give some gudelines to do this setup.

regards

Michael
Ajay Sishodia
Frequent Advisor

Re: ftp problem

Mike,

As Bill said above. Maybe all you need to do is create a new file named shells in /etc.
as root

# vi /etc/shells
add these lines
/sbin/sh
/usr/bin/ksh
/usr/bin/sh
/usr/bin/csh
/sbin/ksh
/bin/sh
/bin/ksh

Please add anyother shell that your users use.

later
Ajay

Joseph C. Denman
Honored Contributor

Re: ftp problem

Permission denied?????

First, I would check on what Bill has posted about the /etc/shells. Ensure your users shell is in the file.

Second, John's post was incorrect. The ftpusers file is used to restrict user from ftp, not allow them to ftp. If you want all users to be able to ftp, this file should be empty. The user being listed in this file could be your problem.

Third, have you tried to telnet to the system? Does that work? Is the access denied isolated to ftp?

Hope this gets you in the ballpark.

...jcd...
If I had only read the instructions first??
John Poff
Honored Contributor

Re: ftp problem

Geez! You can't trust anything that John Poff fellow tells you! ftpusers? He must have been thinking of cron.allow. What an idiot! I hope he doesn't have the root password to any boxes!

;-)

JP
Michael Selvam
Occasional Advisor

Re: ftp problem

Thanks for the valid replies

I created the following file
# vi /etc/shells
add these lines
/sbin/sh
/usr/bin/ksh
/usr/bin/sh
/usr/bin/csh
/sbin/ksh
/bin/sh
/bin/ksh

but FTP is not working and if I try at telnet i am getting the followings

# telnet returns telnet prompt
telnet>
If i open telnet i.e
telnet> open 192.168.3.34
telnet: tcp/telnet: unknown service

if i try the following
$ telnet 192.168.30.14
telnet: tcp/telnet: unknown service

UNIX Gurus pls. help me.

Thanks in advance

Michael
Joseph C. Denman
Honored Contributor

Re: ftp problem

Ok, I'm a little confused....as always!!!

Is the HP 9000 the FTP server or are you attempting to ftp to a different system?


...jcd...
If I had only read the instructions first??
Bill Hassell
Honored Contributor

Re: ftp problem

Something is not right in your network setup and with 2 services not working (ftp and telnet), there won't likely be a simple answer to getting networking setup correctly. Was the system ever working correctly? The obvious files to check are networking files such as /etc/resolv.conf, /etc/nsswitch.conf, /etc/services and /etc/inetd.conf plus the start/stop scripts. However, checking these elements requires some knowledge of networking and HP-UX sysadmin tasks.


Bill Hassell, sysadmin
Michael Selvam
Occasional Advisor

Re: ftp problem

Hello

I am trying to ftp other system.

From the root user I am able to ftp or telnet to the other system.

Thanks & regards

Michael
Victor_5
Trusted Contributor

Re: ftp problem

If you can ftp to another server, that means probably the problem is on the first server, try to compare those files (mentioned in above messages)on both servers and check it out what is the difference.
Michael Selvam
Occasional Advisor

Re: ftp problem

Hello
I am trying to ftp to PDA. In PDA I installed FTP server and it is working fine. From root user I ftp to the PDA it is working fine. From the user name called ORACLE,it is not working.

Fine, Can I change oracle user to root user programatically If possible how. This will solve my current necessary.

Thanks

Michael
Joseph C. Denman
Honored Contributor
Solution

Re: ftp problem

OK, I think you have a permission problem.

Check the permissions on:

/etc/services -- should be 444
/usr/bin/ftp -- should be 555

...jcd...
If I had only read the instructions first??
Michael Selvam
Occasional Advisor

Re: ftp problem

Thanks everybody for valid replies

Mr.Joseph C. Denman its starts working after i changed the mode 444

Thanks

Michael