Operating System - HP-UX
1836438 Members
2518 Online
110100 Solutions
New Discussion

Re: ftp can not login as root

 
SOLVED
Go to solution
Animesh Chakraborty
Honored Contributor

ftp can not login as root

Hi,
While doing ftp from one server to another I can not use root but other user id can logged in and do the file transfer.
What should I check ?

host1:/home/ac> ftp host2
Connected to host2.
220 host2 FTP server (Version 1.1.214.7 Thu Aug 10 09:57:38 GMT 2000) ready.
Name (host2:ac): root
530 User root access denied...
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.

Thanks in advance.
[This time poits assured :) ]
Animesh

Did you take a backup?
6 REPLIES 6
Patrick Wallek
Honored Contributor
Solution

Re: ftp can not login as root

Check your /etc/shells file. Make sure this file contains root's shell which should be /sbin/sh If it does not, add it and you should be OK.
Philip Chan_1
Respected Contributor

Re: ftp can not login as root

Hi,

Take a look at the file

/etc/ftpd/ftpusers

And see if the name "root" is under there. If yes then "root" will be dis-allowed for doing ftp. Any user name contained in the above file will be prohibited from using ftp. See "man ftpusers" for detail.

~Philip
Philip Chan_1
Respected Contributor

Re: ftp can not login as root

Just one reminder, in HPUX 11 the control file ftpusers is under /etc/ftpd, but in HPUX 10.x the file is under /etc.
Animesh Chakraborty
Honored Contributor

Re: ftp can not login as root

Hi,
root is not included in my /etc/ftpd/ftpusers
and I have also checked for /etc/shells..there is no such file.If I create one how will be the entry into it ?


Thanks
Animesh
Did you take a backup?
Animesh Chakraborty
Honored Contributor

Re: ftp can not login as root

Hi,
Solved!Patrick thanks for your clue.
One of my colegue changed /etc/passwd as
root:...../bin/ksh and ftp stoped working.

once again thanks for your response

Animesh
Did you take a backup?
Steven Sim Kok Leong
Honored Contributor

Re: ftp can not login as root

Hi,

Please note that it is a bad idea to have the default login shell for root as /usr/bin/ksh or /bin/ksh for that matter. This is because /usr is not mounted when the system is in single-user or maintenance mode and /bin is a softlink to /usr/bin.

If you do not want login problems when you shutdown to single-user or maintenance mode, I would advise that you stick to the shells in /sbin since /sbin is part of the / filesystem and thus definitely mounted at boot-time in single-user or maintenance mode.

If you really want to use ksh, copy its statically-binded binary to /sbin.

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com