1820216 Members
3829 Online
109620 Solutions
New Discussion юеВ

Re: root FTP

 
accent
Frequent Advisor

root FTP

Hi.
I have one rp3440 with HPUX 11.11. I can't login by ftp with root user. I don't have a trusted system.
I add the follwing lines in the /etc/shells:
/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh

In the /etc/ftpd I have the following directories:
ftp-exec
pids

I created the /etc/ftpd/ftpusers with blank lines. My file /var/adm/inetd.sec has:

# @(#)B.11.11_LRinetd.sec $Revision: 1.10.214.1 $ $Date: 96/10/08 13:20:06 $
#
#
# The lines in the file contain a service name, permission field and
# the Internet addresses or names of the hosts and/or networks
# allowed to use that service in the local machine.
# The form for each entry in this file is:
#
#
#
# For example:
#
# login allow 10.3-5 192.34.56.5 ahost anetwork
#
# The above entry allows the following hosts to attempt to access your system
# using rlogin:
# hosts in subnets 3 through 5 in network 10,
# the host with Internet Address of 192.34.56.5,
# the host by the name of "ahost",
# all the hosts in the network "anetwork"
#
# mountd deny 192.23.4.3
#
# The mountd entry denies host 192.23.4.3 access to the NFS rpc.mountd
# server.
#
# Hosts and network names must be official names, not aliases.
# See the inetd.sec(4) manual page for more information.
dtspc allow 127.0.0.1 loopback SCHDAPL1

With other user, I can run ftp without problems but I couldn't do the same with root users. I don't know what more can I do because I checked all the things without results.
9 REPLIES 9
Simon Hargrave
Honored Contributor

Re: root FTP

Have you checked syslog.log for any specific errors given from the ftp daemon?
Muthukumar_5
Honored Contributor

Re: root FTP

What is your ftpd configuration on /etc/inetd.conf

can you try as,

ftp

ftp> user root
ftp> status

ftp> user
ftp> status

Are you getting informations on syslog.log file more.

What is there in /etc/securetty file.

Post these. It will good more for analysis.
Easy to suggest when don't know about the problem!
accent
Frequent Advisor

Re: root FTP

In the syslog.log I have the following lines for root connection:
Oct 21 10:47:56 SCHIDEAPL01 ftpd[22873]: pam_authenticate: Authentication failed 2
Oct 21 10:47:56 SCHIDEAPL01 ftpd[22873]: User root: Login incorrect
Oct 21 10:48:52 SCHIDEAPL01 ftpd[22873]: FTP session closed

For other user I have these others:
Oct 21 10:49:04 SCHIDEAPL01 ftpd[22879]: FTP LOGIN FROM 10.200.0.132 [10.200.0.132], sistemas


ftp> user root "password"
331 Password required for root.
530 Login incorrect.
Login failed.
ftp> status
Connected to 172.19.97.35.
Type: ascii; Verbose: On ; Bell: Off ; Prompting: On ; Globbing: On
Debugging: Off ; Hash mark printing: Off .
Simon Hargrave
Honored Contributor

Re: root FTP

Is there a .netrc file lying around with an incorrect password in? It looks to me as though it is telling you incorrect password before it even asks you for it!

Check in the home directory of the session you are connecting from for a .netrc file, and remove it if there is one.
john korterman
Honored Contributor

Re: root FTP

Hi,
sounds to me as if there is a problem with your login. Is your password by any chance longer than 8 chars?

regards,
John K.
it would be nice if you always got a second chance
john korterman
Honored Contributor

Re: root FTP

Hi again,
...try a short password without any special characters.

regards,
John K.
it would be nice if you always got a second chance
accent
Frequent Advisor

Re: root FTP

I installed the O.S. last week and at this moment the root password is "root". It is not longer than 8 chars.
I haven├в t the file .netrc in the root home director
Simon Hargrave
Honored Contributor

Re: root FTP

Where are you FTPing from? Another UNIX machine? Have you tried from a Windows command line?

The .netrc will not be in your root home directory. It will be in the home directory of wherever you are FTPing from. Eg if you are logged into host1 as fred and ftping to host2 as root, it will be in host1:~fred

That's why I ask you to try FTPing from a Windows machine.
accent
Frequent Advisor

Re: root FTP

Hi.
I change the root password, but I assigned the same "root" and now the ftp works fine.

Maybe in the /etc/password had something wrong.....

Thanks