Issues

Issue #232 resolved

Files in ~/.virtualenvs are created group-writable

Julian Brost
created an issue

I can see absolutely no reason why those files should be group-writable unless you want other users to be able to mess around with them.

They should be created being only user-writable or even better file creation should respect the currently set umask.

The problem is the chmod call here: https://bitbucket.org/dhellmann/virtualenvwrapper/src/4b2ed5cfa333e2f373868f33b7f287ab35d6a4d8/virtualenvwrapper/user_scripts.py?at=master#cl-132

Comments (2)

  1. Paul Kilgo

    This issue bit us pretty bad on the old version still in Ubuntu 12.04 but looks fixed now. The original reporter noted that it would be great if it could respect the currently set umask. I'd like to echo that, as it still looks like the chmod call is "chmod 644" or "chmod 755" depending on if we need the +x. We (some sysadmins) spent a good bit of time chasing down what was disobeying our umask and it turned out to be this absolute chmod().

    Please consider doing something akin to chmod +x for future versions if you have the time. We appreciate it. :)

  2. Log in to comment