Ask Your Question

Multi-user environment

asked 2015-01-29 10:58:59 -0500

trackstar2000 gravatar image


I just installed 6.4 Sage on Centos and was curious how each user will be accessing Sage. Do each user who log into the Centos machine just open a browser (localhost:8080) to log in with their credentials? Assuming ./sage runs at the start of the server bootup.

Thanks, TT

edit retag flag offensive close merge delete


have you installed it systemwide, or in your own account?

Dima gravatar imageDima ( 2015-02-01 12:59:55 -0500 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2015-02-02 21:36:22 -0500

trackstar2000 gravatar image

I guess I am confused about the notebook() vs the syntax. How do I prevent the browser from opening up to an admin account when a regular user type "notebook()".

edit flag offensive delete link more


a regular Linux user's notebook() will be run in his/her Linux account. They will be admin for this notebook server, by default (unless they specify another user in notebook() call, or log in via the browser to another, suitably created, nb account).

Dima gravatar imageDima ( 2015-02-03 03:41:43 -0500 )edit

That was the confusion. I noticed that anybody who has command line access in the linux machine will have the admin account or the ability to reset it.

Thanks for the clarification.

trackstar2000 gravatar imagetrackstar2000 ( 2015-02-03 16:12:08 -0500 )edit

in case you might like to know where the notebook files are: they are in ~/.sage/ for the account Sage (nb) is executed from.Thus each user in this configuration will have completely own set of notebooks.

Dima gravatar imageDima ( 2015-02-04 07:23:22 -0500 )edit

For each user that runs --> notebook(). When they are finished, what is the recommended method to close out the session. Control +C, or just close the terminal session?

trackstar2000 gravatar imagetrackstar2000 ( 2015-02-04 10:56:07 -0500 )edit

yes, Control-C is good. One can also run 'sage -n' --- this immediately opens the notebook.`

Dima gravatar imageDima ( 2015-02-04 14:11:50 -0500 )edit

answered 2015-02-02 13:35:11 -0500

trackstar2000 gravatar image

updated 2015-02-02 15:07:22 -0500

I installed on an (non root )account but have given everyone read access. It is still installed in /usr/tmp/sage/sage-6.4.1 I am looking at this.

Confused about this. Does each user who logs into the server run ./sage (with their linux credential) or is it a one time startup (system level) and the user just opens the browser an enter the sage accounts?


edit flag offensive delete link more


There are two things you can do - either let each user on the machine to run Sage separately, just by running /usr/tmp/sage/sage-6.4.1/sage, or you run a "public" Sage nb server. In the latter setup accounts on the (Linux) server have nothing to do with accounts on the Sage nb server.

Dima gravatar imageDima ( 2015-02-03 03:31:14 -0500 )edit

In the latter case you don't even need Sage nb users to have Linux accounts on the server, but watch out for security settings in this case...

Dima gravatar imageDima ( 2015-02-03 03:33:11 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-01-29 10:58:59 -0500

Seen: 168 times

Last updated: Feb 02 '15