[issue19891] Exiting Python REPL prompt with user without home directory throws error in atexit._run_exitfuncs
Vajrasky Kok
report at bugs.python.org
Fri Dec 6 14:54:16 CET 2013
Vajrasky Kok added the comment:
Additional information:
When I created /home/cutecat with another user account.
bash-4.2$ ./python
Python 3.4.0b1 (default:7a668179d691, Dec 6 2013, 21:44:31)
[GCC 4.7.2 20121109 (Red Hat 4.7.2-8)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
Error in atexit._run_exitfuncs:
PermissionError: [Errno 13] Permission denied
Of course, so I change the ownership of /home/cutecat to cutecat. Then it works.
bash-4.2$ ./python
Python 3.4.0b1 (default:7a668179d691, Dec 6 2013, 21:44:31)
[GCC 4.7.2 20121109 (Red Hat 4.7.2-8)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
bash-4.2$
So what did it try to do in /home/cutecat?
[sky at localhost cpython]$ ls -la /home/cutecat/
total 8
drwxr-xr-x. 2 cutecat root 4096 Dec 6 21:50 .
drwxr-xr-x. 4 root root 4096 Dec 6 21:50 ..
-rw-------. 1 cutecat cutecat 0 Dec 6 21:50 .python_history
So I leave to core Python developers to decide whether this ticket is valid or not.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19891>
_______________________________________
More information about the Python-bugs-list
mailing list