Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 11-14-2012, 06:24 PM   #1
LQ Newbie
Registered: Nov 2012
Posts: 1

Rep: Reputation: Disabled
Angry ubuntu server edition and tftp problem when PUTTING files.

I installed tftp as per this document:

I followed this to the letter 3 times and every time I put a file I get:

root@CiscoCFG:~# tftp localhost
tftp> put test
Error code 2: Access violation
tftp> root@CiscoCFG:~# tftp localhost
tftp> put test
Error code 2: Access violation

If I touch the file name chmod 777 the file then do a put it works perfectly fine.

My config is as follows:

service tftp
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = -s /svr/tftp
disable = no

the directory /svr/tftp permissions are 777:
drwxrwxrwx 3 nobody nobody 4096 Nov 14 10:32 svr

This thing should have full permissions as would anyone who wanted to write or read from that directory. I see nothing in the logs im really stumped on this. If the file is already in the directory I can read it all day long, I just cant make NEW files, can not put them, but I can do get's, I can only put to an existing file with permissions @777.

When I TOUCH the file ahead of time locally on the server, chmod it to 777 I can then send the file to the tftp server but thats not a valid work around, Cisco switches and routers cant log in, touch a file then send it.
Old 11-14-2012, 07:20 PM   #2
Registered: Aug 2002
Posts: 13,455

Rep: Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106Reputation: 1106
--create, -c
Allow new files to be created. By default, tftpd will only allow upload of files that already exist. Files are created with default permissions allowing anyone to read or write them, unless the --permissive or --umask options are specified.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
atftpd (v0.7) - tftp server on ubuntu. vrode Linux - Networking 1 12-12-2012 09:48 AM
[SOLVED] Ubuntu and TFTP Server jgoughenour Linux - Newbie 1 05-31-2012 05:40 PM
Problem with installation of Xen 4.0.1 on Ubuntu 10.10 Server Edition Shadower108 Linux - Virtualization and Cloud 5 11-26-2010 09:09 AM
[SOLVED] Strange intermittent permissions problem on Ubuntu 8.04 server edition Plastic Freddie Linux - Server 1 11-17-2008 04:30 AM
tftp server problems on Ubuntu 6.06 rojak Ubuntu 4 10-16-2006 09:15 PM

All times are GMT -5. The time now is 01:11 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration