Each new file created has no user and group execute rights (-rw-r-----)(

  • Hello everyone,

    I have the following problem:
    In a Linux directory, in which all new created files have not execute rights for the user and the group (-rw-r-----). I can modify the rights with this command
    chmod -R ug+x user:group path to directory

    of all existing files in the directory, but any new files it was created, do not have execute rights. When the user was created with script, it was used this command:
    sudo /bin/chcon system_u:object_r:user_home_dir_t:s0 $SFTPHOMEDIR && sudo /bin/chmod -R 755 $SFTPHOMEDIR && sudo /bin/chown -R 0:0 $SFTPHOMEDIR

    When I check with ls -Z a directory or files in directory, it's return

    unconfined_u:object_r:user_home:s0 directory

    Unfortunately I can't figure out what I need to change to be able to have each new file have execute rights.

    Can anybody help me.

    Thank advance.

  • ivcho_pifcho 11. Juni 2023 um 20:09

    Hat den Titel des Themas von „Every new created file has now execute rights for user and group (-rw-r-----)“ zu „Each new file created has no user and group execute rights (-rw-r-----)(“ geändert.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!