On Tue, Dec 22, 2009 at 11:06 AM, Dr. David Kirkby
<[email protected]> wrote:
> I see in the
>
> help(notebook)
>
> that one can have a list of accounts where password less ssh is permitted. 
> (i.e.
> accounts which have entries in /etc/passwd)
>
> How do those unix accounts relate to an Sage account set up by a user?
>

There is *currently*  no relationship.  It would be cool if there were.

> If I create accounts on a unix system sage1, sage2 ... sage 10, and 100 people
> create user accounts (bar, foo, foobar ...etc), is there any sort of mapping
> between the two?
>

Nope.  Not yet.

> Is there any advantage in having more user accounts on the machine, than the
> expected number of users of the server? If 1000 students will Sage accounts, 
> is
> it preferable for there to be 1000 unix accounts?

No.  I would just make one other account for now.

>
> Normally, with a web server, the server starts with root privileges (needed as
> it runs on a port below 1024), then changes to another user (nobody, web, 
> apache
> or similar).

I highly recommend *never* ever in a million billion years running the
sage notebook server as root.  That would be totally crazy.

For the Sage notebook, proxying through apache seems to work fine and
means that the notebook only runs as a normal user, from the start,
serving on whatever port you want.

>
> Another mechanism for limiting damage when running servers is to make them 
> start
> as some user with a startup script, using the 'su' command, so they never run 
> as
> root. So something like
>
> cd /home/someuser
> su - someuser /home/someuser/sage-4.2/sage &
>

That's a good idea.

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
URL: http://www.sagemath.org

Reply via email to