First time here? Check out the FAQ!

Ask Your Question
0

Untrusted group warning

asked 10 years ago

kekx gravatar image

updated 10 years ago

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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 10 years ago

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.

Preview: (hide)
link

Comments

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 ( 10 years ago )

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: 10 years ago

Seen: 603 times

Last updated: Dec 01 '14