ASKSAGE: Sage Q&A Forum - Individual question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 09 Jul 2015 17:53:56 -0500can run sage as root but not as a regular (non-root) userhttps://ask.sagemath.org/question/27273/can-run-sage-as-root-but-not-as-a-regular-non-root-user/ 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
Tue, 07 Jul 2015 15:51:33 -0500https://ask.sagemath.org/question/27273/can-run-sage-as-root-but-not-as-a-regular-non-root-user/Answer by tmonteil for <p>Dear Sage community. </p>
<p>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. </p>
<p>Now I can start Sage as root. Typing ''./sage'' gives me "splash screen":</p>
<pre><code>┌────────────────────────────────────────────────────────────────────┐
│ SageMath Version 6.7, Release Date: 2015-05-17 │
│ Type "notebook()" for the browser-based notebook interface. │
│ Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
</code></pre>
<p>and command prompt after that. </p>
<p>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). </p>
<p>I would appreciate any help with this issue. </p>
<p>Thanks,
Eugene. </p>
<p>PS
I cannot attach a file. Here is pastebin link:
<a href="http://pastebin.com/j5b4Cnts">http://pastebin.com/j5b4Cnts</a></p>
https://ask.sagemath.org/question/27273/can-run-sage-as-root-but-not-as-a-regular-non-root-user/?answer=27277#post-id-27277Looking 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).
Wed, 08 Jul 2015 08:07:43 -0500https://ask.sagemath.org/question/27273/can-run-sage-as-root-but-not-as-a-regular-non-root-user/?answer=27277#post-id-27277Comment by eugene for <p>Looking at the logs, i have a few questions:</p>
<ul>
<li>Had the user used Sage before ? </li>
<li>Does the problem persist if you do <code>mv ~/.sage ~/.sage.old</code> ? </li>
<li>Does the user have a writeable home directory ?</li>
<li>Which terminal did the user use ? Does it support unicode ?</li>
</ul>
<p><strong>EDIT</strong></p>
<ul>
<li>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).</li>
</ul>
https://ask.sagemath.org/question/27273/can-run-sage-as-root-but-not-as-a-regular-non-root-user/?comment=27299#post-id-27299Tried 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...Thu, 09 Jul 2015 17:53:56 -0500https://ask.sagemath.org/question/27273/can-run-sage-as-root-but-not-as-a-regular-non-root-user/?comment=27299#post-id-27299Comment by tmonteil for <p>Looking at the logs, i have a few questions:</p>
<ul>
<li>Had the user used Sage before ? </li>
<li>Does the problem persist if you do <code>mv ~/.sage ~/.sage.old</code> ? </li>
<li>Does the user have a writeable home directory ?</li>
<li>Which terminal did the user use ? Does it support unicode ?</li>
</ul>
<p><strong>EDIT</strong></p>
<ul>
<li>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).</li>
</ul>
https://ask.sagemath.org/question/27273/can-run-sage-as-root-but-not-as-a-regular-non-root-user/?comment=27296#post-id-27296Did 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).Thu, 09 Jul 2015 09:59:26 -0500https://ask.sagemath.org/question/27273/can-run-sage-as-root-but-not-as-a-regular-non-root-user/?comment=27296#post-id-27296Comment by eugene for <p>Looking at the logs, i have a few questions:</p>
<ul>
<li>Had the user used Sage before ? </li>
<li>Does the problem persist if you do <code>mv ~/.sage ~/.sage.old</code> ? </li>
<li>Does the user have a writeable home directory ?</li>
<li>Which terminal did the user use ? Does it support unicode ?</li>
</ul>
<p><strong>EDIT</strong></p>
<ul>
<li>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).</li>
</ul>
https://ask.sagemath.org/question/27273/can-run-sage-as-root-but-not-as-a-regular-non-root-user/?comment=27288#post-id-27288I 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!Wed, 08 Jul 2015 19:05:39 -0500https://ask.sagemath.org/question/27273/can-run-sage-as-root-but-not-as-a-regular-non-root-user/?comment=27288#post-id-27288