/usr/share/ltsp/plugins/ltsp-build-client/ALTLinux/010-tftpd is in ltsp-server 5.5.7-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 | case "$MODE" in
after-install)
if [ -d /var/lib/tftpboot/ltsp -a -f /etc/xinetd.d/tftp ]; then
TFTPD_USER=$(sed -n '/^[[:blank:]]*server_args[[:blank:]]*=/ s/^.*=.*-u[[:blank:]]*\([[:alnum:]_]*\).*$/\1/p' /etc/xinetd.d/tftp)
[ -n "$TFTPD_USER" ] && chown -R "$TFTPD_USER" /var/lib/tftpboot/ltsp ||:
fi
;;
esac
|