[issue10032] os.setuid and os.setgid have unexpected influence on serial module

2010-10-05 Thread Tjeerd Pinkert
New submission from Tjeerd Pinkert : If I use os.setgid and os.setuid to switch to an other user in some daemon code, I cannot open the serial port anymore. If I run the same code directly from the user I can open the serial port. Since the serial module is using the open() call to open the

[issue10032] os.setuid and os.setgid have unexpected influence on serial module

2010-10-05 Thread Tjeerd Pinkert
Changes by Tjeerd Pinkert : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue10032> ___ ___ Python-bugs-list mailing list Unsubscri

[issue10032] os.setuid and os.setgid have unexpected influence on serial module

2010-10-06 Thread Tjeerd Pinkert
Tjeerd Pinkert added the comment: Indeed I use Linux, sorry for the inconvenience of not mentioning. Thanks Ned, I think this is indeed the case. Using os.setgroups with a list of group ids (one for the file access, one for the serial port) before switching user with os.setgid, os.setuid