Operating System - HP-UX
1838135 Members
3782 Online
110124 Solutions
New Discussion

Re: TFTP - How to stop the need to touch the files on in the tftp directories.

 
SOLVED
Go to solution
Tony Escujuri
Occasional Advisor

TFTP - How to stop the need to touch the files on in the tftp directories.

Hello,

We are trying to allow moving router configuration files to be placed within the tftp directories without having to touch(create) the files within the tftp directories:

Not sure what info is needed so I will give all the details:
user info:
tftp:*:420:20:tftp server:/usr/rtrbkup:/usr/bin/false

inetd.conf setup:
tftp dgram udp wait root /usr/lbin/tftpd tftpd /usr/rtrbkup /tftpboot

tftp status:
udp 0 0 *.tftp *.*

perms:
/tftpboot:
drwxrwxrwx 14 tftp bin 4096 Aug 10 20:42 tftpboot
/usr/rtrbkup:
drwxrwxrwx 144 tftp bin 4096 Aug 13 17:38 rtrbkup
All files and directories within the tftp directories have 777 perms.
Any assistance would be GREAT!!!

Regards,
Tony Escujuri
escujuri@wellsfargo.com
2 REPLIES 2
Bill Hassell
Honored Contributor

Re: TFTP - How to stop the need to touch the files on in the tftp directories.

I'm not sure why you have to touch any files in the tftp directories. Just copy the needed router files to the required directories.

BUT: do not use 777 for anything, period, never, nada. I see a lot of sysadmins that struggle with applications that don't work right and one of the first things on the list of have-you-tried's is to set 777 on everything, this allowing everyone on your system to trash the files and directories at any time.

The only directories that should have 777 are /var/tmp and /tmp, and even then, I would recommend setting the sticky bit so that users cannot clobber each other's files.


Bill Hassell, sysadmin
linuxfan
Honored Contributor
Solution

Re: TFTP - How to stop the need to touch the files on in the tftp directories.

Hi Tony,

I am afraid but (As far as I know) you cannot do what you are trying to achieve here(atleast on HP-UX).

But there are alternatives, if you have account access to the CISCOs web site , you can download the TFTP server(NT/2000 based) they provide, which allows to put and get files without having to touch/create files.

Also there is a free TFTP server, which works like a charm.
http://solarwinds.net/Tools/Free_tools/TFTP_Server/download.htm

-HTH
I am RU
They think they know but don't. At least I know I don't know - Socrates