Operating System - HP-UX
1752489 Members
5630 Online
108788 Solutions
New Discussion

Re: How to Configure anonymous FTP server in HP-UNIX

 
SOLVED
Go to solution
Md. Minhaz Khan
Super Advisor

How to Configure anonymous FTP server in HP-UNIX

Dear Concern
During Firmware upgrades operation we need to download related files from anonymous FTP server. So i need to configure anonymous FTP server. Please help me to configure anonymous FTP server
7 REPLIES 7
Torsten.
Acclaimed Contributor

Re: How to Configure anonymous FTP server in HP-UNIX

See ftpd man page:

http://docs.hp.com/en/B3921-60631/ftpd.1M.html

What kind of firmware updates?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
sujit kumar singh
Honored Contributor

Re: How to Configure anonymous FTP server in HP-UNIX

Hi

for the SAN Switch (brocade class) and the System Firmwares (for the rx or rp series servers), put the Firmware file(ftp upload in binary mode the firmware file) in some location on some other server (server1) and from the device that you wish to upgrade the firmware you can give the location on server1 and username and password for the root user on server1.


this way also you can do this. You can try

Regards
Sujit
Steven Schweda
Honored Contributor

Re: How to Configure anonymous FTP server in HP-UNIX

> [...] you can give the location on server1
> and username and password for the root user
> on server1.

He did say "i need to configure anonymous FTP
server". If he's wrong about that, then
there may be no need to bring another server
into the picture. (Just use plain FTP on the
HP-UX server.) And if anonymous FTP _is_
needed, then moving the files to another
server may just be moving the problem, not
solving it.

> What kind of firmware updates?

A fair question.
sujit kumar singh
Honored Contributor

Re: How to Configure anonymous FTP server in HP-UNIX

hi

i should have been more clear on what i wrote.(or might be i am mis comprehending the question asked)?

Why is an Anonymous FTP server Required??
I apoligize for being misunderstood.

As far as few firmware updates on the system(like i have said for Brocade SAN Sws and rp and rx systems).
If in the Environment of the Unix Servers root FTP is allowed, then the following steps can be followed to upgrade the FW of the Few Devices that i have said like this:

1)assuming that you have the FW image downloaded to your PC.
2)upload that image to a server (server1) as root user in the path say /path on server1.
3)From the device (can be a SAN SW or an HP Server) start the FW upgrade program. When this Program asks for the location of the FW image give the path /path on server1 and username and password to access that as root and rootpassword for server1 where the FW Image is kept.

This is what only i meant to say.

yes "what firmware?" is valid and also

why an anonymous FTP Server?

Regards
sujit
sdass
Advisor
Solution

Re: How to Configure anonymous FTP server in HP-UNIX

Add user ftp to /etc/passwd, usually:

ftp:*:500:1:anonymous FTP:/home/ftp:/usr/bin/false

The password field should be *, the group membership should be guest, or, as in this example, other, and the login shell should be /usr/bin/false.

In this example, user ftpâ s user ID is 500, and the anonymous FTP directory is /home/ftp.

Create the ftp home directory:

Create the ftp home directory that you referred to in the /etc/passwd file, usually:

# mkdir /home/ftp

Create the subdirectories usr/bin and /usr/lib under the ftp home directory, usually:

# cd /home/ftp
# mkdir -p usr/bin

Copy the ls command from /sbin to /home/ftp/usr/bin, and set the permissions on the command to execute only (mode 0111):

# cp /sbin/ls /home/ftp/usr/bin
# chmod u=x,g=x,o=x /home/ftp/usr/bin/ls

Set the owner of the /home/ftp/usr/bin and /home/ftp/usr directories to root, and set the permissions to read-execute (not writable) (mode 0555):

# chown root /home/ftp/usr/bin
# chmod u=rx,g=rx,o=rx /home/ftp/usr/bin
# chown root /home/ftp/usr
# chmod u=rx,g=rx,o=rx /home/ftp/usr

Create the subdirectory etc under the ftp directory:

# cd /home/ftp
# mkdir etc

Copy /etc/passwd and /etc/group to /home/ftp/etc.

These files are required by the ls command, to display the owners of files and directories under /home/ftp.

# cp /etc/passwd /home/ftp/etc
# cp /etc/group /home/ftp/etc

In all entries in /home/ftp/etc/passwd, replace the password field with an asterisk (*), and delete the shell field, for example:
ftp:*:500:1:anonymous ftp:/home/ftp:
tom:*:8996:20::/home/tom:

In all entries in /home/ftp/etc/group, replace the password field with an asterisk (*):

users:*:20:acb
guest:*:21:ftp1

Change the owner of the files in /home/ftp/etc to root, and set the permissions to read only (mode 0444):

# chown root /home/ftp/etc
# chmod u=r,g=r,o=r /home/ftp/etc

Create a directory pub (for public) under /home/ftp, and change its owner to user ftp and its permissions to writable by all (mode 0777).
Anonymous FTP users can put files in this directory to make them available to other anonymous FTP users.

# mkdir /home/ftp/pub
# chown ftp /home/ftp/pub
# chmod u=rwx,g=rwx,o=rwx /home/ftp/pub

You can create other directories to provide separate categories, such as /home/ftp/draft and /home/ftp/final.

Create a directory dist (for distribution) under /home/ftp. Change its owner to root and its permissions to writable only by root (mode 0755).

Anonymous FTP users can read but not alter these directories.

# mkdir /home/ftp/dist
# chown root /home/ftp/dist
# chmod u=rwx,g=rx,o=rx /home/ftp/dist

Change the owner of user ftpâ s home directory to root and the permissions to not writable (mode 0555):

# chown root /home/ftp
# chmod u=rx,g=rx,o=rx /home/ftp
bright image
Frequent Advisor

Re: How to Configure anonymous FTP server in HP-UNIX

Have a look at the documentation online here:

http://docs.hp.com/en/B2355-91058/ch02s03.html?btnNext=next%A0%BB
Md. Minhaz Khan
Super Advisor

Re: How to Configure anonymous FTP server in HP-UNIX

Thanks a lot to every body for helping me.