Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    User and place for scripts?

    Kopano Groupware Core
    2
    3
    794
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • MrManor
      MrManor last edited by

      I found these nice script examples like kopano-cleanup.py for doing stuff in Kopano. I would like to utilize these on my system.
      So where do I put them and which user should they run as?
      Am I right in assuming that they should run under user account kopano and is there a preferred location in the file system to place the binaries?

      –
      Regards
      Klaus

      fbartels 1 Reply Last reply Reply Quote 0
      • fbartels
        fbartels Kopano @MrManor last edited by

        Hi @mrmanor ,

        There is no required location to store custom scripts, but for convenience I would always recommend to store them in a directory that is included in your PATH.

        Similar things could be said about the user. If you are running them on the same system as your Kopano, then running them as the user Kopano has the benefit that you don’t have to care for credentials to access Kopano (the user is already setup to be recognised as an admin in Kopano). If you want to run it as an additional user you can also add more user IDs to ‘local_admin_users’ in the ‘server.cfg’.

        If you are running a multi server system or are running the script externally, the the run_as user does not matter at all, since you the either have it authenticate via SSL client certs, or supply credentials (python-kopano has built-in support to specify login credentials and some scripts make use of this) to the script anyways.

        Regards Felix

        Resources:
        https://kopano.com/blog/how-to-get-kopano/
        https://documentation.kopano.io/
        https://kb.kopano.io/

        Support overview:
        https://kopano.com/support/

        1 Reply Last reply Reply Quote 0
        • MrManor
          MrManor last edited by

          Thanks again @fbartels, I then think I’ll dump them into /usr/local/bin/ and run them as user kopano.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post