On Mon, Sep 28, 2009 at 1:55 PM, [email protected] <[email protected]> wrote: > > Hello all, I established Sage server for our university (running in > vmware, behind firewall, thanks for help from this group concerning > port forwarding etc.) and now I have two more questions. > > 1. I start Sage in rc.local by > nohup su sage -c 'cd /opt/sage&&./sage notebook.sage' &> /dev/null & > > How should I stop Sage? Is it possible to send crtl+C to sage started > in this way. Is it secure simply to power off the whole virtual > server? (I guess this is not optimal)
Look at $HOME/.sage/sage_notebook/twistd.pid and send a kill signal, e.g., kill -9 93845 if 93845 is the number in that file. > > > 2. The user running Sage is sage. Who should be owner of sage > directory? root? sage? should I create another user for this purpouse? sage > > If the owner is root, how can I install patches? The owner shouldn't be root. > Will > hg_sage.import_patch work from notebook running as sage user? > > If sage, how to prevent attackers to modify sage code? Or does it not > matter? You must use the server_pool option if you don't want any user to trivially be able to delete all notebook files, etc. William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
