Operating System - HP-UX
1833757 Members
2943 Online
110063 Solutions
New Discussion

How do I enable tftp and where is the tftp directory located?

 
SOLVED
Go to solution
Karim Manji
Occasional Advisor

How do I enable tftp and where is the tftp directory located?

Hi,

I am new to HP-UX, I have been working with IRIX in the past. My question is regrading tftp.
I would like to transfer files to and from our HP(HP-UX) Server using tftp. How do I enable tftp and in what directory will the files be uploaded and downloaded to.

TIA
Karim
4 REPLIES 4
Printaporn_1
Esteemed Contributor

Re: How do I enable tftp and where is the tftp directory located?

Hi,

tftpd was enable in /etc/inetd.conf
and following is from tftpd man page
tftpd operates in either of two modes or their combination. The
first mode requires a defined home directory for the pseudo-user
tftp, and looks for files relative to that path. The second
mode requires one or more paths be specified on the command
line, and allows access only to files whose paths match or begin
with one of the command line specifications. The first mode is
backward-compatible with previous releases of HP-UX and supports
somewhat tighter security. The second mode is compatible with
other vendors' implementations of tftpd and allows greater
flexibility in accessing files.

+ If no path is specified on the command line, tftpd requires an
entry in the /etc/passwd database (see passwd(4)) for an account
(pseudo-user) named tftp. The password field should be *, the
group membership should be guest, and the login shell should be
/usr/bin/false. For example:

enjoy any little thing in my life
KapilRaj
Honored Contributor

Re: How do I enable tftp and where is the tftp directory located?

hi ,

as our colleges said, tftp can be enabled in inetd.conf . Once u do this restart inetd daemon

# inetd -c

Check in your /etc/passwd file for a user called tftp . The home direrctory is specified there itself. Or if does not exists create it as follows

tftp:*:510:1:Trivial FTP user:/usr/tftpdir:/bin/false

In the above line of /etc/passwd file, Home directory is set as /usr/tftpdir.

Hope this helps you

Kaps
Nothing is impossible
Karim Manji
Occasional Advisor

Re: How do I enable tftp and where is the tftp directory located?

Thanks so much for showing me how to enable tftp.
I was aware of the man pages, however, I was having difficulty understanding it(something I may get over in time). The link was great, it contained everything I needed. The brief explanation was also great. Thanks so much, now I can save my router configurations on the HP Server.