[issue10496] Python startup should not require passwd entry

2020-12-17 Thread Peixing Xin
Change by Peixing Xin : -- nosy: +pxinwr nosy_count: 28.0 -> 29.0 pull_requests: +22685 pull_request: https://github.com/python/cpython/pull/23530 ___ Python tracker ___

[issue10496] Python startup should not require passwd entry

2018-12-18 Thread STINNER Victor
STINNER Victor added the comment: A few minor tests are still failing when the uid doesn't exist in the password database, but the main issue in pwdhas been fixed and distutils should work more or lesss. I close this 8 years old issue. Thanks to everyone who has been involved in helping to

[issue10496] Python startup should not require passwd entry

2018-12-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset ea6b322829c62951362f267d7afdd262aa2b3e2c by Victor Stinner in branch '2.7': bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931) (GH-11213) https://github.com/python/cpython/commit/ea6b322829c62951362f267d7afdd262aa2b3e2c

[issue10496] Python startup should not require passwd entry

2018-12-18 Thread miss-islington
miss-islington added the comment: New changeset 6e96fb44f12c2e9d7ab0d14a21f2aa85ecaa2f83 by Miss Islington (bot) in branch '3.7': bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931) https://github.com/python/cpython/commit/6e96fb44f12c2e9d7ab0d14a21f2aa85ecaa2f83

[issue10496] Python startup should not require passwd entry

2018-12-18 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10450 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10496] Python startup should not require passwd entry

2018-12-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset 17d0c0595e101c4ce76b58e55de37e6b5083e6cd by Victor Stinner in branch 'master': bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931) https://github.com/python/cpython/commit/17d0c0595e101c4ce76b58e55de37e6b5083e6cd

[issue10496] Python startup should not require passwd entry

2018-12-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +10449 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset b50b33b4ac62c8798199682e511b2028f2d3ec42 by Victor Stinner in branch '2.7': bpo-10496: posixpath.expanduser() catchs pwd.getpwuid() error (GH-10919) (GH-10930) https://github.com/python/cpython/commit/b50b33b4ac62c8798199682e511b2028f2d3ec42

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10184, 10185, 10186 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10184 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10184, 10185 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10181, 10182, 10183 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10183 versions: +Python 3.7, Python 3.8 -Python 3.5 ___ Python tracker ___ ___

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10181, 10182 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10181 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 31b635dbf0c7108f18bb3ce382b895374cff77fb by Victor Stinner in branch '3.6': bpo-10496: posixpath.expanduser() catchs pwd.getpwuid() error (GH-10919) (GH-10925) https://github.com/python/cpython/commit/31b635dbf0c7108f18bb3ce382b895374cff77fb

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread miss-islington
miss-islington added the comment: New changeset 983d1ab0e6f4280f954bcba87db76e11131f1c33 by Miss Islington (bot) in branch '3.7': bpo-10496: posixpath.expanduser() catchs pwd.getpwuid() error (GH-10919) https://github.com/python/cpython/commit/983d1ab0e6f4280f954bcba87db76e11131f1c33

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10167, 10168 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10167 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +10164, 10165, 10166 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +10164, 10165 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +10164 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset f2f4555d8287ad217a1dba7bbd93103ad4daf3a8 by Victor Stinner in branch 'master': bpo-10496: posixpath.expanduser() catchs pwd.getpwuid() error (GH-10919) https://github.com/python/cpython/commit/f2f4555d8287ad217a1dba7bbd93103ad4daf3a8

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: > Would it make sense to backport this fix in 3.6 and 3.7? I'd like to see it there, given that this bug surfaced in many use cases not involving any modern features or systemd at all. -- ___ Python tracker

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
STINNER Victor added the comment: Yes, I plan to try to backport the fix to stable branches. -- ___ Python tracker ___ ___

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: > I prefer to stick to the initial bug report which hasn't been fixed in 8 years I'm interested in fixing this bug too since it bit me in SCons and I had to use a local patch for it. I welcome the upstream fix and don't object to PR 10919. I'm not

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread Antoine Pietri
Antoine Pietri added the comment: Would it make sense to backport this fix in 3.6 and 3.7? As distros increasingly move in the direction of using DynamicUser=yes for most stateless services, it would really help to have that, for instance in Debian Buster (which will probably be on 3.7 if

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
STINNER Victor added the comment: > If I understood PR 10919 correctly, sysconfig.get_config_var('userbase') can > now return unexpanded paths containing '~'. Is it intended despite the > previous discussion starting with msg135047? With my PR 10919, "python3 setup.py install" and "python3

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: If I understood PR 10919 correctly, sysconfig.get_config_var('userbase') can now return unexpanded paths containing '~'. Is it intended despite the previous discussion starting with msg135047? -- nosy: +izbyshev

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
STINNER Victor added the comment: I wrote PR #10919 which fix posix.expandpath() and also fix indirectly the site module. @Antoine Pietri: Would you mind to try the fix? -- ___ Python tracker

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10158 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread Antoine Pietri
Antoine Pietri added the comment: Trivial way to reproduce, run this as root: systemd-run -p DynamicUser=yes -t python3 -- nosy: +antoine.pietri ___ Python tracker ___

[issue10496] Python startup should not require passwd entry

2018-12-05 Thread STINNER Victor
STINNER Victor added the comment: According to seirl on IRC, this issue is trigged when a Python application is run by systemd using DynamicUser=yes: "DynamicUser: Takes a boolean parameter. If set, a UNIX user and group pair is allocated dynamically when the unit is started, and released

[issue10496] Python startup should not require passwd entry

2018-01-09 Thread Melissa Chang
Change by Melissa Chang : -- nosy: -Melissa Chang ___ Python tracker ___ ___

[issue10496] Python startup should not require passwd entry

2018-01-07 Thread Filippo Giunchedi
Change by Filippo Giunchedi : -- nosy: +filippo ___ Python tracker ___ ___

[issue10496] Python startup should not require passwd entry

2017-10-11 Thread STINNER Victor
STINNER Victor added the comment: user.py: short Python script to reproduce the bug. It runs Python as user 12345, group 12345 and unset the HOME environment variable to reproduce the bug. The python binary must be readable and executable by any user, especially uid

[issue10496] Python startup should not require passwd entry

2017-10-09 Thread Nicholas Brown
Nicholas Brown added the comment: This is also a problem when using the DynamicUser=yes feature available in systemd 232 onward with a service that's implemented in python. See http://0pointer.net/blog/dynamic-users-with-systemd.html for details of the DynamicUser=

[issue10496] Python startup should not require passwd entry

2017-09-18 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker ___ ___

[issue10496] Python startup should not require passwd entry

2017-09-16 Thread R. David Murray
R. David Murray added the comment: Dmitriy: you will note from the discussion on this issue that your "simple patch" was not considered sufficient. There were additional concerns voiced about haypo's patch, which is why I guess it didn't get applied. However, can you review that and confirm

[issue10496] Python startup should not require passwd entry

2017-09-15 Thread Dmitriy
Changes by Dmitriy : -- pull_requests: +3602 ___ Python tracker ___ ___

[issue10496] Python startup should not require passwd entry

2017-09-14 Thread R. David Murray
R. David Murray added the comment: Unless I'm mistaken, this has come up again in issue 31469. -- nosy: +cinerar, r.david.murray ___ Python tracker ___

[issue10496] Python startup should not require passwd entry

2016-12-05 Thread Suraj Deshmukh
Suraj Deshmukh added the comment: @grahamd thanks this helps. -- ___ Python tracker ___ ___ Python-bugs-list

[issue10496] Python startup should not require passwd entry

2016-12-05 Thread Graham Dumpleton
Graham Dumpleton added the comment: @surajd Why aren't you using the Python S2I builders for OpenShift? When you run anything under OpenShift, it will assign your project a UID which any containers are forced to run under. The OpenShift containers include a mechanism using a package call

[issue10496] Python startup should not require passwd entry

2016-12-05 Thread Suraj Deshmukh
Suraj Deshmukh added the comment: I did not encounter this issue in fedora24 based container on docker but when I run it in openshift I see errors as: That container has `Python 2.7.12` installed. While `flask` and `redis` python libs are installed via pip. ``` bash:

[issue10496] Python startup should not require passwd entry

2016-08-07 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- versions: +Python 3.6 -Python 3.4 ___ Python tracker ___

[issue10496] Python startup should not require passwd entry

2016-08-07 Thread Yury V. Zaytsev
Yury V. Zaytsev added the comment: Another scenario how this could happen is when Python interpreter is run from a scheduled job on a BlueGene/Q node by the CNK; this is a minimalist execution environment where getpwuid() is unable to resolve home directories for UIDs running the jobs.

[issue10496] Python startup should not require passwd entry

2016-07-18 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi @victor I have compiled the bug.c file with my fedora 24. there is python 2.7.11 and 3.5.1 and I don't have the bug with these versions. What can we do with this issue ? Thanks, Stephane -- nosy: +matrixise

[issue10496] Python startup should not require passwd entry

2016-05-16 Thread Melissa Chang
Changes by Melissa Chang : -- nosy: +Melissa Chang ___ Python tracker ___ ___

[issue10496] Python startup should not require passwd entry

2016-01-04 Thread Jonathon Reinhart
Jonathon Reinhart added the comment: I have another scenario where this happens: Running Python in a Docker container, passing the --user option to 'docker run'. This sets the UID in the container, which has its own /etc/passwd. Couple this with the fact that $HOME might not be set (e.g. when

[issue10496] Python startup should not require passwd entry

2014-10-11 Thread Graham Dumpleton
Changes by Graham Dumpleton graham.dumple...@gmail.com: -- nosy: +grahamd ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10496 ___ ___

[issue10496] Python startup should not require passwd entry

2014-09-27 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - patch review versions: +Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10496 ___

[issue10496] Python startup should not require passwd entry

2014-01-07 Thread Yury V. Zaytsev
Changes by Yury V. Zaytsev y...@shurup.com: -- nosy: +zaytsev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10496 ___ ___ Python-bugs-list mailing

[issue10496] Python startup should not require passwd entry

2013-08-02 Thread Charles-François Natali
Changes by Charles-François Natali cf.nat...@gmail.com: -- keywords: +needs review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10496 ___ ___

[issue10496] Python startup should not require passwd entry

2013-07-31 Thread Charles-François Natali
Charles-François Natali added the comment: Is there a hope to get this fixed? It can be needed to e.g. run python as nobody user (used for example for CGI scripts, etc). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10496

[issue10496] Python startup should not require passwd entry

2013-07-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10496 ___ ___

[issue10496] Python startup should not require passwd entry

2013-07-31 Thread Christian Heimes
Changes by Christian Heimes li...@cheimes.de: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10496 ___ ___

[issue10496] Python startup should not require passwd entry

2012-11-18 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10496 ___ ___

[issue10496] Python startup should not require passwd entry

2012-03-19 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: I’d be happy to update it to address my remarks if you want me to. Please write your own patch addressing your concerns. -- ___ Python tracker rep...@bugs.python.org

[issue10496] Python startup should not require passwd entry

2012-03-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I reviewed haypo’s patch. I’d be happy to update it to address my remarks if you want me to. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10496