Mittwoch, 22. Mai 2024

MAC TFTP

TFTP Folder
/private/tftpboot

# chmod whole folder to 777
sudo chmod -R 777 /private/tftpboot

# add a file and also chmod 777
chmod 777 /private/tftpboot/yourfile

Start daemon

sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist

Stop daemon

sudo launchctl unload /System/Library/LaunchDaemons/tftp.plist

Test tftp

## Fetch file your.file

tftp -e 127.0.0.1

tftp> get <your.file>

Received 4979 bytes in 0.0 seconds


## In case file is not available

get <your.file>

Error code 256: File not found