Ask Your Question
1

can run sage as root but not as a regular (non-root) user

asked 2015-07-07 22:51:33 +0200

eugene gravatar image

Dear Sage community.

I am not a Sage user but one of my user requested Sage installed on our Linux machine (CentOS 6.5). I've installed version 6.7 by simply unpacking a tar package with the binary inside.

Now I can start Sage as root. Typing ''./sage'' gives me "splash screen":

┌────────────────────────────────────────────────────────────────────┐
│ SageMath Version 6.7, Release Date: 2015-05-17                     │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘

and command prompt after that.

If I do the same as a regular (non-root) user, I only get the "splash screen" and Sage hangs after that. No Sage command line. No response. I have to kill the process to get back to bash. When I do that I get the traceback information (attached).

I would appreciate any help with this issue.

Thanks, Eugene.

PS I cannot attach a file. Here is pastebin link: http://pastebin.com/j5b4Cnts

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2015-07-08 15:07:43 +0200

tmonteil gravatar image

updated 2015-07-09 16:59:05 +0200

Looking at the logs, i have a few questions:

  • Had the user used Sage before ?
  • Does the problem persist if you do mv ~/.sage ~/.sage.old ?
  • Does the user have a writeable home directory ?
  • Which terminal did the user use ? Does it support unicode ?

EDIT

  • Did you unpack the Sage tarball as root ? If yes, you should better unpack it as a regular user (which should use nicer umask so that the permissions are not changed).
edit flag offensive delete link more

Comments

I am running sage as regular user using my own userid. I saw somewhere else a suggestion that ~/.sage can be a problem, so I removed it and tried starting it again. Same result. Yes, my home directory is writeable. If using the same terminal I switch to root (sudo su) and start sage -- it works.

Thanks!

eugene gravatar imageeugene ( 2015-07-09 02:05:39 +0200 )edit

Did you unpack the Sage tarball as root ? If yes, you should better unpack it as a regular user (which should use nicer umask so that the permissions are not changed).

tmonteil gravatar imagetmonteil ( 2015-07-09 16:59:26 +0200 )edit

Tried unpacking as regular users. The same effect -- sage hangs. I thought that it could have been related to the fact that I was unpacking it to the NFS filesystem. Tried unpacking in to the local filesystem -- again the same behavior. Sage starts if called by the root user, but not by regular user...

eugene gravatar imageeugene ( 2015-07-10 00:53:56 +0200 )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-07-07 22:51:33 +0200

Seen: 931 times

Last updated: Jul 09 '15