[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::digital_unix

Title:DIGITAL UNIX(FORMERLY KNOWN AS DEC OSF/1)
Notice:Welcome to the Digital UNIX Conference
Moderator:SMURF::DENHAM
Created:Thu Mar 16 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:10068
Total number of notes:35879

9806.0. "More than 1 dir for tftpd in inetd.conf?" by CSC32::A_LICAUSE () Tue May 13 1997 17:45

    Anyone know of a way to specify more than one directory for the tftp
    deamon in inetd.conf?
    
    Customer is running V3.2c of dunix in a software develoopement
    environment.  He is trying to load some NCDX Xterminals which use
    tftp directly and do not use bootp.  He needs to specify  the load
    image location as well as the font directories and some additional
    file locations.
    
    He is trying to make a secure tftp environment which seems like a
    contradiction.  His doc's also speak of an -s switch (secure).
    Did we not implement this on dunix?
    
    I doubt that it will fix the problem but if a fix is possible in
    V4, that 's no good.  He is determined to remain at v3.2c.
    
    Any help appreciated.
    
    Al
T.RTitleUserPersonal
Name
DateLines
9806.1It's in the man pageNNTPD::"[email protected]"Brian HaleyTue May 13 1997 19:3423
Hi,

The tftpd man page gives the syntax on how to do this:

    /usr/sbin/tftpd [-d] [-r pathname] [directory ...]

You can give up to 62 directories.

If you edit the line in /etc/inetd.conf and 'kill -HUP' the inetd
process, the changes will take effect the next time tftpd is restarted.

As an example:

  tftp dgram udp wait root /usr/sbin/tftpd tftpd -d -r /tftpboot /tftpboot

If the X-terminals are just asking for file "foo", then file "bar" and
not absolute pathnames (yuk), then you will have to make links from the
default directory (use the -r switch) to where the files live.  The -r
switch will cause a path to get prepended to any filenames that don't
start with a /.

-Brian
[Posted by WWW Notes gateway]
9806.2Not working here!CSC32::A_LICAUSETue May 13 1997 21:2122
    Well....according to the man pages on my v4.0 system and the man pages
    on one of our v3.2c systems, it says:
    
    -r pathname
                Specifies the relative pathname a user can specify to
    		transfer a file that has no path associated with it.  For example, -r
                /tmp/tftp causes /tmp/tftp to be prefixed to a file that
    		has no path and the file is copied to and from the directory
    		/tmp/tftp.
                Only one directory path can be specified with this option.
    
    
    I tried this on my V4.0 system and it does not work.  I tried it with
    the  -r switch and w/o.  Neither one works.  
    
    The customer described this Xterminal as being very generic so I
    suspect that it is asking for simple file names with on directory
    information prepended.
    
    Are you working from a V4.0a or V4.0b system?
    
    Al
9806.3Can you post some -d outputNNTPD::"[email protected]"Brian HaleyWed May 14 1997 12:1212
Hi,

Can you run tftpd in debug mode (-d) to see why it's not working?
Please post the output.

I've successfully booted LAT boxes that only specify a filename
with no path.  My system is running V4.0 rev 386.

-Brian


[Posted by WWW Notes gateway]