Ask Your Question

Untrusted group warning

asked 2014-11-28 20:45:53 +0200

kekx gravatar image

updated 2015-01-14 16:25:11 +0200

FrédéricC gravatar image

I have 'installed' sage following these instructions, by just extracting the latests binary tarball and then adding a symbolic link like so: ln -s ~/sage/sage /usr/local/bin/sage

Now every time I execute a file with sage path/to/file I get the following warning:

sys:1: RuntimeWarning: not adding directory '' to sys.path since it's writable by an untrusted group.
Untrusted users could put fi les in this directory which might then be imported by your Python code. As a general precaution from similar exploits, you should not execute Python code from this directory

Especially during debugging sessions the additional output tends to clutter up my screen a lot and pushes away the meaningful output. Is there any way I can fix this?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2014-12-01 17:42:39 +0200

kekx gravatar image

Alright, so I have managed to pin down the problem and also found a workaround. I am getting this warning, because I am working in a shared folder of a virtual box linux. In order to enable the automatic sharing with the host machine, virtual box gives the ownership (and write permission) of these shared folders to a group called 'vboxsf', which in turn upsets sage. Since I cannot remove the write permission without messing with the functionality of the shared folders, I created a copy of the shared folders in my home directory and set up a cron job to sync the two periodically.

edit flag offensive delete link more


If anyone knows a better way that would allow me to continue working in the shared folder directly I'd be happy to hear about it!

kekx gravatar imagekekx ( 2014-12-01 17:45:01 +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


Asked: 2014-11-28 20:45:53 +0200

Seen: 504 times

Last updated: Dec 01 '14