1823292 Members
3241 Online
109652 Solutions
New Discussion юеВ

Re: file transfer

 
navin
Super Advisor

file transfer

Hello All,
I was trying to do file transfer from and to a hp boxes.I'm having an issue ftping as root.I have checked the below things.Please assist .
1./etc/ftpd/ftpusers - not present
2./etc/inet/inet.sec - not present
3.no /etc/shells
4.root has valid passwd. no hases. no trailing -.
5.Here is error message when i connect as root
Connected to xxxx.xxxxxx.xxx.com
220 server name FTP server (Version 1.1.21.4(PHNE_2775) thu Sep 5 05:59:34
002) ready.
331 Password required for root.
530 Login incorrect.User root: Login incorrect
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.
6.Here is error collected system log.
User root: Login incorrect
FTP session closed
pam_acct_mgmt:Get new authentication token
---------


Thanks
Learning ...
8 REPLIES 8
Ivan Ferreira
Honored Contributor

Re: file transfer

If the shell for root is ksh, create the /etc/shells file and add:

/bin/ksh
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
navin
Super Advisor

Re: file transfer

Thanks for the reply. it is /sbin/sh.
Learning ...
Sanjay_6
Honored Contributor

Re: file transfer

Hi Navin,

If you root password is more than 8 characters, try with just the first 8 characters.

Are you able to login as some other user on this system.

Hope this helps.

regds
navin
Super Advisor

Re: file transfer

sanjay, thank you.yes can do ftp with other accounts.
Learning ...
John Dvorchak
Honored Contributor

Re: file transfer

does root password contain special characters like ? or $ or #

If so that may be your problem and you can verify by temporarily changing it to something that is alpha/numeric and trying it.

If it has wheels or a skirt, you can't afford it.
John Dvorchak
Honored Contributor

Re: file transfer

I just noticed that you say there is no /etc/shells file. From the man 1m ftpd:

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

Which I believe would fail if /etc/shells is not present or doesn't contain /sbin/sh or the result of env|grep SHELL when run as root on the HPUX box.
If it has wheels or a skirt, you can't afford it.
Peter Nikitka
Honored Contributor

Re: file transfer

Hi,

I don't think that you need a file /etc/shells to perform successful ftp - you just must have one of the shells, the manpage of getusershell() tells you.
But I think, if you add a new entry to /etc/shells (e.g. /sbin/sh) you have to put all the shells of all other ftp-users in this file even when their shell is listed as default entry by the manpage.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
navin
Super Advisor

Re: file transfer

patrick,
Thanks. but there were successfull episode of having ftp with root account suddenly stopped. No Shadow for HP right. The passwd options also set as no restrictions for root. But the passwd has not been changed for a while (more than 90 days) will that matters.
Thanks
Learning ...