Operating System - HP-UX
1829607 Members
1387 Online
109992 Solutions
New Discussion

tftp access violation error

 
SOLVED
Go to solution
Mauro Gatti
Valued Contributor

tftp access violation error

Hi all, I've a problem with tftp.
From a client I get this error...

virgo# tftp 172.16.200.14
tftp> verbose
Verbose mode on.
tftp> binary
mode set to octet
tftp> get prova
getting from 172.16.200.14:prova to prova [octet]
Error code 2: Access violation


On my tftp server I've this configuration:

leo# cat /etc/passwd |grep tftp
tftp:*:510:104:TFTP:/usat/tftpboot:/usr/bin/false

leo# cat /etc/group|grep 104
guest::104:tftp


leo# cat /etc/inetd.conf|grep tftp
# Before uncommenting the "tftp" entry below, please make sure
# that you have a "tftp" user in /etc/passwd. If you don't
# have one, please consult the tftpd(1M) manual entry for
tftp dgram udp wait root /usr/lbin/tftpd tftpd /usat/tftpboot

leo# ls -la /usat/tftpboot/prova; ls -lad /usat/tftpboot
-rw------- 1 tftp guest 5 Nov 4 15:18 /usat/tftpboot/prova
drwxr-xr-x 2 tftp guest 2048 Nov 4 15:18 /usat/tftpboot

I've tried also with:
leo# ls -la /usat/tftpboot/prova; ls -lad /usat/tftpboot
-rwxrwxrwx 1 tftp guest 5 Nov 4 15:18 /usat/tftpboot/prova
drwxr-xr-x 2 tftp guest 2048 Nov 4 15:18 /usat/tftpboot
and also with:
leo# ls -la /usat/tftpboot/prova; ls -lad /usat/tftpboot
-rwxrwxrwx 1 tftp guest 5 Nov 4 15:18 /usat/tftpboot/prova
drwxrwxrwx 2 tftp guest 2048 Nov 4 15:18 /usat/tftpboot


Could You help me?

Thank You


Ubi maior, minor cessat!
5 REPLIES 5
Graham Cameron_1
Honored Contributor

Re: tftp access violation error

Error code 2 on unix means "No such file or directory".
Are you sure the file exists on your ftfp server?

Can you try putting a file up there and then getting it back ?

-- Graham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
Umapathy S
Honored Contributor
Solution

Re: tftp access violation error

Mauro,
I think you need to give the full path of the file to tftp.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Elmar P. Kolkman
Honored Contributor

Re: tftp access violation error

What are the rights on /usat ?
And on the directory where you run the tftp client ? Could it be that there is already an prova file that is not writable ?
Every problem has at least one solution. Only some solutions are harder to find.
Mauro Gatti
Valued Contributor

Re: tftp access violation error

virgo# cd
virgo# pwd
/
virgo# echo "test" > pippo
virgo# tftp 172.16.200.14
tftp> verbose
Verbose mode on.
tftp> put pippo
putting pippo to 172.16.200.14:pippo [netascii]
Error code 2: Access violation
tftp> put /pippo
putting pippo to 172.16.200.14:/pippo [netascii]
Error code 2: Access violation
Ubi maior, minor cessat!
Jerome Henry
Honored Contributor

Re: tftp access violation error

Is prova a file or a directory ? If it's a directory, you can't download it this way, you need file names.

hth

J
You can lean only on what resists you...