1752765 Members
4981 Online
108789 Solutions
New Discussion юеВ

ftp problem

 
madhudeepan
Frequent Advisor

ftp problem

when a particular user tries to take ftp,it does not ask for a passwd ,, atonce it gives the message access denied after username has been entered

but with other user in the same group can access ftp

uname -a
HP-UX 11.11

$ ps -ef | grep inetd
root 893 1 0 Aug 9 ? 110:22 /usr/sbin/inetd

root @ xxx: /etc>cat ftp-exec
cat: Cannot open ftp-exec: No such file or directory
root @ xxx: /etc>cat ftp.allow
cat: Cannot open ftp.allow: No such file or directory
root @ xxx: /etc>cat ftpaccess
cat: Cannot open ftpaccess: No such file or directory
root @ xxx: /etc>tail -f
root @ xxx: /etc>cat ftpusers
cat: Cannot open ftpusers: No such file or directory
root @ xxx: /etc>

root @ xxx: /var/adm>more inetd.sec
inetd.sec: No such file or directory
root @ xxx : /var/adm>
8 REPLIES 8
Suraj K Sankari
Honored Contributor

Re: ftp problem

Hi,
Do you have any directiory under /etc/ftpaccess check all file under this directiroy.

what if i create a new user ? is new user also having the same problem.

Suraj
OldSchool
Honored Contributor

Re: ftp problem

"root @ xxx: /etc>cat ftp-exec
cat: Cannot open ftp-exec: No such file or directory
root @ xxx: /etc>cat ftp.allow
cat: Cannot open ftp.allow: No such file or directory
root @ xxx: /etc>cat ftpaccess
cat: Cannot open ftpaccess: No such file or directory
root @ xxx: /etc>tail -f
root @ xxx: /etc>cat ftpusers
cat: Cannot open ftpusers: No such file or directory
root @ xxx: /etc>"


were those done on the local server, or the server the user was attempting to access?

on the remote (destination) server, check for the presences of /etc/ftpd/ftpusers and the contents of that file if it exists. If the file exists, and the user is present, you'll need to delete that line.

also, check for the presence of /etc/ftpd/ftpaccess on the remote server as well.

You appear to be looking in the wrong directory, and possibly the wrong server????

cd to /etc/ftpd (on the remote server) and "ls -l" that directory.
madhudeepan
Frequent Advisor

Re: ftp problem

i dont have any dir or file under /etc/ftpd/ftpuser

i was also looking for it, but such thing is not under /etc in both local server and remote server
Johnson Punniyalingam
Honored Contributor

Re: ftp problem

ll -l /etc/ftpd/ftpaccess
Problems are common to all, but attitude makes the difference
izad
Honored Contributor

Re: ftp problem

Hi,

Do you have a .netrc file under that user's home directory ? if yes, remove it and retry.

Good luck.

Regards,
I hate quotations. Tell me what you know !
OldSchool
Honored Contributor

Re: ftp problem

One last try....

as requested previously, on remote server:

"cd /etc/ftpd" -and-
"ls -l" that directory.
post the results.


if possible, copy/paste the text of the exact command(s) issues and error(s) recv'd.
Tor-Arne Nostdal
Trusted Contributor

Re: ftp problem

"when a particular user tries to take ftp,it does not ask for a passwd ,, atonce it gives the message access denied after username has been entered"

I assume you mean incoming ftp-connection?
This was a bit unclear.

As you can see some is mentioning to check the .netrc file - assuming your question is related to outgoing connection...

OldSchool ask you to check your FTP access files... as in your question you where in the /etc directory when you cheched the ftpaccess ... files and not in the /etc/ftpd directory.

Could you:
a) specify which direction you have a problem with ftp
b) if outgoing give the listing requested by OldSchool

I'm trying to become President of the state I'm in...
Vishu
Trusted Contributor

Re: ftp problem

Hi madhudeepan,

Please check

1) is /etc/shells file exists in your server. if not, create it.
2) if exists, do cat /etc/shells to see if it has the required shell which the user is having in /etc/passwd. if not, add that shell in this file.

Now, retry ftp.

Good luck.