LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


Hi,

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.
SELINUX=permissive
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted



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

TIA

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

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
Nothing to do with networking. Moved to Linux - Newbie.
 
Old 01-06-2011, 04:28 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,500

Rep: Reputation: 2412Reputation: 2412Reputation: 2412Reputation: 2412Reputation: 2412Reputation: 2412Reputation: 2412Reputation: 2412Reputation: 2412Reputation: 2412Reputation: 2412
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, 05:22 PM   #4
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,254

Rep: Reputation: 314Reputation: 314Reputation: 314Reputation: 314
@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.
 
  


Reply


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


All times are GMT -5. The time now is 02:03 AM.

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