Ask Your Question
1

Multi-user environment

asked 2015-01-29 17:58:59 +0100

trackstar2000 gravatar image

Hello,

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

Comments

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

Dima gravatar imageDima ( 2015-02-01 19:59:55 +0100 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-02-02 20:35:11 +0100

trackstar2000 gravatar image

updated 2015-02-02 22:07:22 +0100

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.

http://www.sagemath.org/doc/installat...

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?

TT

edit flag offensive delete link more

Comments

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 10:31:14 +0100 )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 10:33:11 +0100 )edit
0

answered 2015-02-03 04:36:22 +0100

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

Comments

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 10:41:43 +0100 )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 23:12:08 +0100 )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 14:23:22 +0100 )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 17:56:07 +0100 )edit

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

Dima gravatar imageDima ( 2015-02-04 21:11:50 +0100 )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

Stats

Asked: 2015-01-29 17:58:59 +0100

Seen: 757 times

Last updated: Feb 03 '15