TFTP Configuration bug through WEB

Description

I have found a potential bug with TFTP server in Scale.

TLDR;

tftpd-hpa has wrong umask, which causes uploads to fail also umask not changing when changing ui settings.

Please check my picture with the WebUI settings

an example of the error, I get with any tftp client I used (Linux, Windows, Mac)

The reason is, when the file is created it does not have the right other permission, which should have write enabled.

Process is running with the specific flags:

the umask 002 ends up to a 775 file, which leads to rwxrwxr-x and as result write is missing from the other (global) permission. We also notice, My UI has a prefered rw-rw-??? (? because I have no control of the other byte) and still the system generates a default umask.

the ideal umask with basis on my setting I applied through webui should be 115

Further testing reveals, this is limited to UI (Assumption, as I know little about the link between midclt and ui) as I can update the umask using command line

Original discussion started https://www.truenas.com/community/threads/rc-22-02-rc-1-2-tftp-bug.97450/#post-672880

 

I wish I provided enough information with the potential bug

Problem/Justification

None

Impact

None

Activity

Ievgen Stepanovych 
July 5, 2023 at 5:29 PM

TFTP service removed from Cobia and is available as an app now.

Aleks Bunin 
October 9, 2022 at 3:07 PM

This is still not addressed in the TrueNAS-SCALE-22.02.4. Any idea when this will be fixed? Wasted an hour trying to figure out why this didn’t work until found this bug.

Ievgen Stepanovych 
June 4, 2022 at 9:21 AM

Do you remember why this ticket got blocked?

Michelle Johnson 
December 15, 2021 at 4:25 PM

This issue is no in the review queue. An engineering representative will update with additional questions or details in the near future.

Vassilis Aretakis 
December 15, 2021 at 3:45 PM

Attached the debug file

Not to be Fixed

Details

Assignee

Reporter

Labels

Time remaining

0m

Components

Fix versions

Affects versions

Priority

Katalon Platform

Created December 15, 2021 at 3:18 PM
Updated July 5, 2023 at 5:29 PM
Resolved July 5, 2023 at 5:29 PM