[issue40821] os.getlogin() not working

2021-12-10 Thread Irit Katriel
Change by Irit Katriel : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue40821] os.getlogin() not working

2020-12-16 Thread Christian Heimes
Christian Heimes added the comment: errno 6 is ENXIO. According to https://www.man7.org/linux/man-pages/man3/getlogin.3.html the error code means "The calling process has no controlling terminal.". os.getlogin() returns the name of the user logged in on the controlling terminal of the proce

[issue40821] os.getlogin() not working

2020-12-16 Thread Philipp Gortan
Change by Philipp Gortan : -- nosy: +mephinet ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue40821] os.getlogin() not working

2020-05-30 Thread Christian Heimes
Christian Heimes added the comment: On POSIX os.getlogin() is a thin wrapper around the glibc function getlogin() https://linux.die.net/man/3/getlogin . The error is coming from glibc. -- nosy: +christian.heimes ___ Python tracker

[issue40821] os.getlogin() not working

2020-05-29 Thread Manickaraja Kumarappan
New submission from Manickaraja Kumarappan : Hi, We are using below command to get the original login user. In some cases folks sudo as different user and run commands. In some cases folks use switch to different user (su - <>) and then run command. In all cases we would like to get original