Skip to main content
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    Write Permission to Publish Aleph Data for Primo

    • Article Type: General
    • Product: Aleph
    • Product Version: 20

    How do I provide write permission for Aleph to publish data for Primo? The directory we will be using is called /primo_publishing. It has no subdirectories.

    >> ls -l
    drwxr-xr-x 4 root root 4096 Jun 30 22:03 primo_publishing/

    The problem is not the permissions, it's the ownership.

    These are the settings that you need (the 2nd column is not relevant):
    drwxr-xr-x 3 aleph exlibris

    To change this, since the directory is owned by root, you need to login as root. Since the directories in root should all continue to be owned by root, we recommend that you cd into the primo_publishing directory and create a new directory for the published data, for example "PRIMO-FULL", the default directory name that Aleph uses.

    [root /]# cd /primo_publishing
    [root primo_publishing]# mkdir PRIMO-FULL

    Note that since root created it, the new directory is owned by root:
    [root primo_publishing]# ls -l
    drwxr-xr-x 2 root root 4096 Jul 1 10:26 PRIMO-FULL

    [root primo_publishing]# chown aleph PRIMO-FULL
    [root primo_publishing]# chgrp exlibris PRIMO-FULL

    Now the ownership is set correctly and Aleph can publish to this directory:
    [root primo_publishing]# ls -l
    drwxr-xr-x 2 aleph exlibris 4096 Jul 1 10:27 PRIMO-FULL

    No changed is required, but this is an explanation of the Field 1 Permissions:

    Field 1 (drwxr-xr-x): a set of ten permission flags.
    Field 3 (root): owner of the file
    Field 4 (root): associated group for the file

    The permission flags are read as follows (left to right)
    Column Meaning
    1 directory flag, 'd' = directory, '-' = normal file
    2,3,4 read, write, execute permission for User (Owner) of file
    5,6,7 read, write, execute permission for Group
    8,9,10 read, write, execute permission for Other

    Value Meaning
    - in any position means that flag is not set
    r file is readable by owner, group or other
    w file is writeable. On a directory, write access means you can add or delete files
    x file is executable (for programs and shell scripts, not used for data files). Execute permission on a directory means you can list the files in that directory

    • Article last edited: 10/8/2013