1833877 Members
2436 Online
110063 Solutions
New Discussion

Re: Allowing root to ftp

 
Nathan Sims
Occasional Contributor

Allowing root to ftp

How do I enable root access to ftp to an HP-UX 11.00 workstation from the standard default installation, and also, how do I permit users to su?
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: Allowing root to ftp

Hi Nathan:

After a default installation, given that one knows the root password, 'su' and 'ftp' should be freely available.

Ports 20 and 21 define standard ftp ports in /etc/services. They should be present. /etc/inetd.conf should contain a line for the 'ftpd' daemon startup that looks something like:

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l

See 'man 4 inetd.conf' and 'man 1M ftpd' for more information.

Does this help?

...JRF...
Patrick Wallek
Honored Contributor

Re: Allowing root to ftp

For anyone to ftp, you need to make sure that each users default shell, as defined in the last field of the /etc/passwd, is setup in the /etc/shells file. If the file does not exist you can create it, make sure it is world readable, and put one entry per line.

Example /etc/shells:

/sbin/sh
/usr/bin/csh
/usr/bin/ksh
/usr/bin/false


su is available to anyone. Whoever is doing the su must know the password of the user they are su'ing to. The only exception to this is if root is su'ing to a different user.
Sanjay_6
Honored Contributor

Re: Allowing root to ftp

Hi Nathan,

You don't have to do anything to allow root to ftp to the hp-ux box. If you know how to use the ftp, just go ahead and do it. It is easy and simple. type "man ftp" for more info.

Also if you know the purpose of su, you can run that command as any user and give the root password. Do "man su" for more information.

Post a message if you face any problem, which you should not face.

Good luck to you.

thanks