Pregunta

Can I control the permission with which SCons creates its hardlinks in the CacheDir?

I create the CacheDir using the correct permissions (a specific group) but the files which scons generates inside of it get incorrect (same as my username) group id gid.

I'm sitting on Linux x86_64 (CentOS 6).

I've tried calling both

os.setgid(grp.getgrnam("the_correct_groupname"))

and

os.setegid(grp.getgrnam("the_correct_groupname"))

but they both fail with

OSError: Operation not permitted

What to do?

¿Fue útil?

Solución

Try creating your cache directory with the sticky bit.

However, as far as I'm aware, SCons copies files into and out of the cache directory, it doesn't create hard links, so as long as they are readable by the people who need to read them, that should be enough.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top