Unix Technical Forum

ftp problem - HPUX 11.11

This is a discussion on ftp problem - HPUX 11.11 within the HP-UX Operating System forums, part of the Unix Operating Systems category; --> Hi all; I'm new to HPUX( single machine for about a month ). Most of the configuration seem to ...


Go Back   Unix Technical Forum > Unix Operating Systems > HP-UX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 05:05 PM
Gary Armstrong
 
Posts: n/a
Default ftp problem - HPUX 11.11

Hi all;

I'm new to HPUX( single machine for about a month ). Most of the
configuration seem to be working fine. The exception is ftp. The machine
seems to allow me to connect ( I get a host:username prompt ), but if
I hit return or enter a username it immediately states:

530 User garyarm access denied...
Login Failed

I never get prompted for a password. This same machine will let me
rlogin to , telnet to , and ftp out of it, but not ftp in.

Since I can connect and the error is access denied, I believe I'm
hitting a permissions problem. I saw an ftp entry in pam.conf and
commented it out, but the behavior is the same.

If someone could point me in the correct direction.

TIA
Gary

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 05:05 PM
Gary Armstrong
 
Posts: n/a
Default Re: ftp problem - HPUX 11.11



Rick Jones wrote:
>>If someone could point me in the correct direction.

>
>
> you might check the ftpaccess file and manpage.
>
> rick jones


You learn something new daily. ftpaccess is new to me. It doesn't exist
in Solaris 8 but does in Solaris 9 ( news to me, I also have a single
Sol9 box).

Back on task, when I look at inetd.conf on my HP I see:
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l

The ftpd man page says -a enables ftpacces and -A disables. I'm not sure
what happens if neither is specified. So I made it:
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -a

Then I copied ftpacces from my Solaris 9 machine to /etc/ftpd on my HPUX
machine( a foolish thing I know, but the man pages appear exact dups ).
kill -HUP sent to inetd and tried ftp again.

Same stuff. 8^(

Is there a simple template for this file? I wish to eliminate it as a
problem. I don't need anonymous ftp or anything similar. If they have a
valid NIS usercode/password let them in.

TIA
Gary

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 05:05 PM
Rick Jones
 
Posts: n/a
Default Re: ftp problem - HPUX 11.11

If it wasn't ftpaccess then you might check to make sure that the
shell(s) used by the accounts ftp'ing to the system are in
/etc/shells. I think that more details on that one is in the
comp.sys.hp.hpux FAQ which should be archived on rtfm.mit.edu.

rick jones
--
portable adj, code that compiles under more than one compiler
these opinions are mine, all mine; HP might not want them anyway...
feel free to post, OR email to raj in cup.hp.com but NOT BOTH...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-16-2008, 05:05 PM
Robert Klute
 
Posts: n/a
Default Re: ftp problem - HPUX 11.11

Make sure the userid has a non-null passwd. Verify the shell you are
using for the userid, it must either be included in /etc/shells or, if
/etc/shells does not exist, it must be one of the 'standard' shells.
Lastly, the id must not appear in the /etc/ftpd/ftpusers file.


From man ftpd:
ftpd authenticates users according to three rules:

+ The user name must be in the password data base, /etc/passwd,
and not have a null password. The client must provide the
correct password for the user before any file operations can
be performed.

+ The user name must not appear in the file /etc/ftpd/ftpusers
(see ftpusers(4)).

+ The user must have a standard shell returned by
getusershell().


getusershell looks for the file /etc/shells. If /etc/shells does not
exist or is not readable, getusershell() returns the following standard
system shells:
/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh

note: validation of the shell is done by string match, so the passed
shell string must match exactly the string in /etc/shells.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-16-2008, 05:06 PM
Gary Armstrong
 
Posts: n/a
Default Re: ftp problem - HPUX 11.11



Rick Jones wrote:
> If it wasn't ftpaccess then you might check to make sure that the
> shell(s) used by the accounts ftp'ing to the system are in
> /etc/shells. I think that more details on that one is in the
> comp.sys.hp.hpux FAQ which should be archived on rtfm.mit.edu.
>
> rick jones


Bingo;

/etc/shells is the problem. In Solaris if /etc/shells doesn't exist,
getusershell returns both /bin and /usr/bin flavors of all the common
shells. Apparently, HPUX only returns /usr/bin flavors. My passwd file
entries are /bin/shellname. Hmmmm, maintain /etc/shells or change the
passwd file convention?

Thanks Rick & Robert
Gary

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:23 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com