Can an App create files with certain permissions (664)

  • Hi


    This is not really an Openmediavault question, but maybe someone can support me with my issue or solved a similar situation already.


    My Scenario is the following:

    The sync of Library1 works flawless. All files of Library1 are synced to Samba1.
    A ls -l in Samba1 shows the permissions to be:



    Code
    ls -l
    drwxr-sr-x 2 seafile users 4096 Apr 2 08:24 Folder1
    -rw-r–r-- 1 seafile users 452334049 Mar 29 09:45 Movie1.MOV
    -rw-r–r-- 1 seafile users 422486 Mar 29 10:42 Word.docx
    -rw-r–r-- 1 seafile users 433303 Mar 14 17:46 Letter.pdf

    So all files are written as 644 by the Seaf-Cli application.
    Obviously the user "seafile" can still interact with the server, but user1 and user2 can't really, because of the permissions.


    My question is:
    Is there a way to let the seaf-cli application create all files with 664 permissions.


    In general the question would be:
    Is there a way to make an application create all files with specific permissions in a samba share, so it can be used by several users..


    I hope it's ok to ask this question here.


    Greetings, Chris

    • Offizieller Beitrag

    That setting is called usually umask. A umask of 0113 will create files in 664. Most softwares assume same umask for files/folders. So most common of 0002 will create 775 folders and 664 files.

Jetzt mitmachen!

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