All,

I am having problems writing to atftpd. I keep getting a permission denied
error.

Switch#$.SED.bin tftp://169.254.180.65/c3550-ipservicesk9-mz.122-25.SED.bin


Address or name of remote host [169.254.180.65]?
Destination filename [c3550-ipservicesk9-mz.122-25.SED.bin]?
!
TFTP: error code 2 received - Access violation

%Error writing tftp://169.254.180.65/c3550-ipservicesk9-mz.122-25.SED.bin
(Permission denied)..

tmb@debian-hp:~$ sudo systemctl status atftpd
● atftpd.service - Advanced TFTP Server
    Loaded: loaded (/usr/lib/systemd/system/atftpd.service; indirect;
preset: enabled)
    Active: active (running) since Thu 2025-04-10 17:55:16 EDT; 1s ago
Invocation: 80df5ef1433d478eb72db656dd6bd751
TriggeredBy: ● atftpd.socket
      Docs: man:in.tftpd
  Main PID: 139091 (in.tftpd)
     Tasks: 1 (limit: 18172)
    Memory: 272K (peak: 2M)
       CPU: 10ms
    CGroup: /system.slice/atftpd.service
            └─139091 /usr/sbin/in.tftpd --port 69 --tftpd-timeout 300
--retry-timeout 5 --mcast-port 1758 --mcast-addr 239.239.239.0-255
--mcast-ttl 1 --maxthread 100 --verbose=5 /srv/tftp

Apr 10 17:55:16 debian-hp systemd[1]: Started atftpd.service - Advanced
TFTP Server.
Apr 10 17:55:16 debian-hp atftpd[139091]: Advanced Trivial FTP server
started (0.8.0)

tmb@debian-hp:~$ sudo cat /usr/lib/systemd/system/atftpd.service
[Unit]
Description=Advanced TFTP Server
Requires=atftpd.socket
Documentation=man:in.tftpd

[Service]
EnvironmentFile=/etc/default/atftpd
ExecStart=/usr/sbin/in.tftpd $OPTIONS
StandardInput=socket
DynamicUser=yes

[Install]
Also=atftpd.socket

tmb@debian-hp:~$ sudo cat /etc/default/atftpd
## Options for atftpd:
OPTIONS="--port 69 --tftpd-timeout 300 --retry-timeout 5 --mcast-port 1758
--mcast-addr 239.239.239.0-255 --mcast-ttl 1 --maxthread 100 --verbose=5
/srv/tftp"

tmb@debian-hp:~$ ls -la /srv/
total 16
drwxr-xr-x  4 root   root    4096 Apr 10 17:31 .
drwxr-xr-x 18 root   root    4096 Apr  6 03:24 ..
drwxrwxrwx  2 nobody nogroup 4096 Apr 10 17:11 tftp

The directory has world wide writable permission.

tmb@debian-hp:~$ ip addres
8: enx0000000011f1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
fq_codel state UP group default qlen 1000
   link/ether 00:00:00:00:11:f1 brd ff:ff:ff:ff:ff:ff
   inet 169.254.180.65/16 brd 169.254.255.255 scope global noprefixroute
enx0000000011f1
      valid_lft forever preferred_lft forever
   inet6 fe80::3ba4:a1c3:84fa:ea90/64 scope link
      valid_lft forever preferred_lft forever

tmb@debian-hp:~$ sudo iptables -L -v
Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source
              destination
 992 91152 ACCEPT     all  --  lo     any     anywhere             anywhere

  45  3796 ACCEPT     all  --  enx0000000011f1 any     anywhere
            anywhere

As you can see above I am allowing all traffic inbound from the interface.
So I doubt it is a firewall issue. I tried stopping IP Tables and I still
get the same error.

Any ideas welcome.

Thanks

Tim

-- 
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄⠀⠀

Reply via email to