1844022 Members
2599 Online
110226 Solutions
New Discussion

ftp issue

 
SOLVED
Go to solution
someone_4
Honored Contributor

ftp issue

Hey everyone ..
I am having an issue with the root user on a system. I try to ftp but I get 530 User root access denied.. I have /etc/shells set and inetd.conf is fine. But I am trying to look at /etc/ftpusers but here is what happends.
/etc# ll ftp*
total 2
dr-xr--r-- 2 bin bin 96 Oct 5 2000 ftp-exec
-rw-rw-r-- 1 bin bin 5 Oct 30 11:54 ftpusers
dr-xr--r-- 2 bin bin 96 Oct 5 2000 pids
/etc# more ftpusers
ftpusers: No such file or directory
/etc# cd ftp-exec
sh: ftp-exec: not found.
/etc#

Why can I see the files but not get into them?

Richard
11 REPLIES 11
Robin Wakefield
Honored Contributor
Solution

Re: ftp issue

Hi Richard,

ll -d ftp*

You'll probably find a directory, which you are listing the contents of.

Rgds, Robin.
Sanjay_6
Honored Contributor

Re: ftp issue

James Beamish-White
Trusted Contributor

Re: ftp issue

Hi Richard,

Assuming HPUX 11.x, the ftpusers file is in /etc/ftpd. Your ll ftp* would have picked it up as the only directory under /etc starting with ftp and listed it's contents.

Party on dude!
James
GARDENOFEDEN> create light
James R. Ferguson
Acclaimed Contributor

Re: ftp issue

Hi Richard:

Do your 'ls' listing with the '-b' flag to divulge nongraphic characters in the octal
\ddd notation. You may only think the file 'ftpusers' is named that when in reality its name is that plus some other characters.

Regards!

...JRF...
Roger Baptiste
Honored Contributor

Re: ftp issue

hi,

Actually you should see a directory like in this output#

l /etc/ftp*
-rw------- 1 root sys 105 Sep 15 2000 /etc/ftpusers

/etc/ftpd: <------
total 0
dr-xr--r-- 2 bin bin 96 May 4 2000 ftp-exec
-r--r--r-- 1 bin bin 0 May 4 2000 ftpusers
dr-xr--r-- 2 bin bin 96 May 4 2000 pids

the ftpusers under /etc/ftpd is the one which is used.

To confirm it again, do
find /etc |grep ftp

HTH
raj
Take it easy.
Craig Rants
Honored Contributor

Re: ftp issue

What O/S are you using?

10.20 is /etc/ftpusers

11.00 is /etc/ftpd/ftpusers

make sure root is not in that file

also look at /etc/ftpd/ftpaccess to verify the rules from there.

Good Luck,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
someone_4
Honored Contributor

Re: ftp issue

Robin was right ..
there is an /etc/ftpd dir ..
I thought that dir was there some where. I just had a brain fart .. why when I do lsf ftp* or ll ftp*
I would have thought that ftpd would have came up. But I gess not.

Richard
James Beamish-White
Trusted Contributor

Re: ftp issue

Woohoo! Thanks Richard, you're points just gave me my first hat. Ta!

James
GARDENOFEDEN> create light
someone_4
Honored Contributor

Re: ftp issue

Im not getting the same output Rajman

/etc# ll ftp*
total 0
dr-xr--r-- 2 bin bin 96 Oct 5 2000 ftp-exec
-rw-rw-r-- 1 bin bin 0 Nov 15 11:42 ftpusers
dr-xr--r-- 2 bin bin 96 Oct 5 2000 pids
/etc# l ftp*
ftp-exec, ftpusers, pids
/etc#
James Beamish-White
Trusted Contributor

Re: ftp issue

It will only show the output Rajman tells of when there exists another possible ftp*. Try:

# cd /etc
# touch ftpbla
# ll ftp*

and you'll get the same results.

Party on dude!
James
GARDENOFEDEN> create light
someone_4
Honored Contributor

Re: ftp issue

You are very right James ..

Party On Dude :)

Richard