Operating System - HP-UX
1833875 Members
1892 Online
110063 Solutions
New Discussion

Re: FTP: Unable to login as root ..

 
SOLVED
Go to solution
Jamni
Frequent Advisor

FTP: Unable to login as root ..

Hi

I am trying to ftp to a HPUX 11.0 m/c as root, but it gives an error saying "Access denied". I have re-installed the OS before .. Is this shows that i have missed any configuration ??

Regards
Jamni
If a man does his best, what else is there?
11 REPLIES 11
Deepak Extross
Honored Contributor

Re: FTP: Unable to login as root ..

What does
cat /etc/ftpd/ftpusers
show?
Arturo Perez del Galleg
Frequent Advisor

Re: FTP: Unable to login as root ..

If it exists the file /etc/ftpaccess and the contents is root, the access via ftp isn't possible.
HTH
Vijeesh CTK
Trusted Contributor

Re: FTP: Unable to login as root ..


hi

r u facing problem in ftp for user root only.
just check your /etc/ftpd/ftpusers file whether any entry (root) is there .

CTK
Michael Tully
Honored Contributor

Re: FTP: Unable to login as root ..

Hi,

On a secure system, these users should be inserted into the /etc/ftpd/ftpusers file. If you wish to have 'root' use for ftp remove the entry.

# more ftpusers
operator
root
daemon
bin
sys
adm
uucp
lp
nuucp
hpdb
www
#

HTH
~Michael~
Anyone for a Mutiny ?
Jamni
Frequent Advisor

Re: FTP: Unable to login as root ..

Hi

The file /etc/ftpd/ftpusers was empty. Since i am not able to ftp as root, i have added an entry in that file as, 'root'.

Since this is a freshly installed system, i havent created anyother user.. so i havent tried ftping with other user :)

And /etc/ftpaccess file doesnt exist !!

Anyother clues ?

--Jamni
If a man does his best, what else is there?
Jamni
Frequent Advisor

Re: FTP: Unable to login as root ..

Hi Michael

I removed the entry 'root' .. still am not able to ftp as root. I tried rebooting the system also ..

--Jamni
If a man does his best, what else is there?
Jamni
Frequent Advisor

Re: FTP: Unable to login as root ..

Hi

I created a 'guest' user and i am able to ftp as guest.

Any idea why root is not working ??

--Jamni
If a man does his best, what else is there?
sven verhaegen
Respected Contributor
Solution

Re: FTP: Unable to login as root ..

well..

I know abot a strange thing that can happen on certain users with FTP (root is one of them), it has to do with the SHELL that user is running , in most casesthe root shell isn't 100% the same as the users , since HP-UX migration to 10.x and 11.x additional shells are available , in some cases the shell used by root isn't known on the system or isn't on the exact same directory anymore , then you need and /et/shells file to define these , putting it on both the client and the server , this is an example of such a file:

1. Create /etc/shells as follows:

/bin/sh
/bin/rsh
/bin/ksh
/bin/rksh
/bin/csh
/bin/pam
/bin/posix/sh
/sbin/sh
/usr/bin/sh
/usr/bin/
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh


the behaviour of this shell issue with ftp is that you can start ftp , initiate a login but as soon as you get connected it gives you a
"error 530 user root access denied" message , also you should have a look if you have any /var/adm/inetd.sec file that contains an entry dis-allowing root (unlikely but possible)

rgds
...knowing one ignores a greath many things is the first step to wisdom...
mw_4
Frequent Advisor

Re: FTP: Unable to login as root ..

Hi Jamni..
Check /etc/shells in your system
root must have its own shell in /etc/shells
like..
cat /etc/shells
/usr/bin/sh
/usr/bin/csh
/usr/bin/ksh
...
First! see what shells root have ?
then write it in /etc/shells..
Thanks
Step by step
Deepak Extross
Honored Contributor

Re: FTP: Unable to login as root ..

A few things to check:

1. on the remote machine, the user "root" has a non-null password.

2. on the remote machine, the shell for user "root" as specified in the /etc/passwd file is present in the /etc/shells file, or, if /etc/shells does not exist, is one of the following:
/sbin/sh
/usr/bin/sh
/usr/bin/rsh
/usr/bin/ksh
/usr/bin/rksh
/usr/bin/csh
/usr/bin/keysh

3. "root" does not appear in the /etc/ftpd/ftpusers file.
Jamni
Frequent Advisor

Re: FTP: Unable to login as root ..

Hi sven,

Thanks a lot .. I created /etc/shells file and it s working fine now.

Thanks a lot for all who helped me :)

Regards
Jamni

If a man does his best, what else is there?