1829820 Members
2031 Online
109993 Solutions
New Discussion

HP-UX 11, ftp question

 
SOLVED
Go to solution
Jim Small
Occasional Contributor

HP-UX 11, ftp question

When I try to ftp to my HP-UX workstation as root, without even getting a password prompt, I immediately get:
530 User root access denied...
Login failed.

The /etc/ftpd/ftpusers file is empty.

Why is this happening?

Wondering,
<> Jim
"Try not! Do or do not. There is no try." - Yoda
3 REPLIES 3
Thierry Poels_1
Honored Contributor

Re: HP-UX 11, ftp question

hi,
just a hunch: maybe ftp server is not active on the workstation. Wondering what the exact error message would be if ftp server is not available. something to try out ...
regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Patrick Wallek
Honored Contributor
Solution

Re: HP-UX 11, ftp question

Look for a file called /etc/shells and make sure that the default shell for each user that will be using ftp is defined in the file. So for root, the file should contain a line that says /sbin/sh

Here is my /etc/shells file:

# ll /etc/shells
-rw-rw-r-- 1 root sys 18 Mar 29 15:52 /etc/shells

# cat /etc/shells
/sbin/sh
/bin/csh
Peter Van Sant
Advisor

Re: HP-UX 11, ftp question

Jim,

Patrick is correct, your problem is with the
shell. If /etc/shells does not exist the system will use the defaults listed in getusershell(3c) man page. If /etc/shells exists it will know about only those shells listed so it should include all the defaults plus any others you use. Also, check to see that you haven't changed root's shell. If should ALWAYS be /sbin/sh.