Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-06-2011, 09:54 AM   #1
Registered: Oct 2010
Distribution: Red Hat
Posts: 228

Rep: Reputation: 9
Unhappy Permission denied while trying to put the file using TFTP


I am trying to put a file from one linux machine to my other linux machine. There is absolutely no problem in downloading the file i.e. performing the "get" operation but when i try to upload or "put file" from my host1 to host2 it throws error "Error 0 Permission denied".

I am able to put files from host2 to host1 without any problem but not from host1 to host. Infact if i try to tftp even localhost on host2 it throws the same error. Here is my /etc/xinetd.d/tftp file for host2

service tftp
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -c -s /tftpboot
#disable = yes
disable = no
per_source = 11
cps = 100 2
flags = IPv4

And permissions on /tftpboot are 777

[root@LinuxServer /]# ls -ld /tftpboot/
drwxrwxrwx 2 root root 4096 Jan 6 05:21 /tftpboot/
[root@LinuxServer /]# ls -l /tftpboot/
total 16
-rwxrwxrwx 1 root root 11 Jan 6 06:16 new_test
-rwxrwxrwx 1 root root 12 Jan 5 06:02 test2

And the commant which i am using is :

[root@LinuxServer /]# tftp localhost -c put new_test
Error code 0: Permission denied

And ya here is /etc/sysconfig/selinux file is as under :

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.

So could anyone please explain what is needed to be done. I would appreciate the help.


Old 01-06-2011, 03:04 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Nothing to do with networking. Moved to Linux - Newbie.
Old 01-06-2011, 05:28 PM   #3
Registered: Mar 2008
Posts: 17,195

Rep: Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562Reputation: 2562
Can you connect and list files at each? I think there is some other file that tells how tftp access is allowed too. I have only used tftp on qnx so I can't say for sure.

If I get this I tend to telnet to the other system and try a get from the original system I am on. See if that works. Be sure that the user you are connecting to is on the same boxes.

This I don't get either. "tftp localhost -c put new_test "

Why not tftp user@ipaddres then something? Why are you trying to connect to localhost?
Old 01-06-2011, 06:22 PM   #4
Senior Member
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,254

Rep: Reputation: 315Reputation: 315Reputation: 315Reputation: 315
@jefro: tftp does not support listing files nor user accounts.

I checked this configuration (without SELinux) and it worked for me. If you suspect SELinux, disable it and check tftp again.


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
TFTP server returns "Error Code 0: Permission Denied" gi99 Linux - Networking 2 04-19-2011 07:17 AM
permission denied to move a file? trnz$mr Slackware 3 06-05-2009 01:18 PM
permission denied when "./configure" to put gnupg in Dynebolic tesla99 Linux - Software 3 02-20-2009 12:07 PM
tftp permission denied fs11 Linux - Networking 9 06-03-2007 01:40 AM
Tftp-server permission denied? Vid Linux - Software 6 01-28-2004 11:08 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:33 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