Skip to content

xcatprobe xcatmn TFTP check fails when running in shell with umask 027  #7487

@OrenMustaki

Description

@OrenMustaki

When running xcatprobe xcatmn in a Bash shell with umask 027 (commonly set for security reasons), the check "TFTP service is configured" fails due to restrictive permissions on the TFTP directory.

Steps to Reproduce:
Set umask 027 in your shell.
Run xcatprobe xcatmn.

Expected Behavior:
The TFTP check should pass, or xcatprobe should handle permissions appropriately.

Actual Behavior:
The TFTP check fails because the directory permissions are too restrictive.

Environment Details:
xCAT version: 2.16.5
OS version: Rocky 9.3

Fix:
Add "umask 022;" to the top of /opt/xcat/probe/lib/perl/probe_utils.pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions