Was this page helpful?

Run dekihost as a different user

    Dekihost needs access to a shell to run.  In Debian, we've chosen to run dekihost as the same user as apache (www-data).  However, you're free to run dekihost as any user.  Here are the steps to run dekihost as a user named "dekihost"

    Create the dekihost user

    adduser --system dekihost 
    

     

    Note: the --system option creates a user in the system UID range with no shell and logins disabled

    Create the mono .wapi directory

    mono requires a directory named .wapi in the home directory of the user running the mono process.  To create this directory do the following:

    mkdir /home/dekihost/.wapi
    chown dekihost /home/dekihost/.wapi 
    

    Change ownership of the dekihost log file and pid file

    chown dekihost /var/www/deki-api.log /tmp/deki-api.pid

    Change the dekihost startup script to run using the dekihost user

    Edit the following file:  /etc/init.d/dekihost

    And change this line:

    su www-data $DEKI_PATH/bin/mindtouch.host.sh start

    to:

    su -s /bin/bash -c "$DEKI_PATH/bin/mindtouch.host.sh start" dekihost

    Then change:

    su www-data $DEKI_PATH/bin/mindtouch.host.sh stop 

    to:

    su -s /bin/bash -c "$DEKI_PATH/bin/mindtouch.host.sh stop" dekihost

    Then restart dekihost in order for the changes to take affect

    /etc/init.d/dekihost restart

     

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by