Permission denied while trying to put the file using TFTP
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.