Beiträge von ivcho_pifcho

    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.