This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: lib-dynload/*.so permissions wrong
Type: Stage:
Components: Installation Versions: Python 2.2
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: mwh Nosy List: jlmuir, loewis, mwh
Priority: normal Keywords:

Created on 2002-04-27 01:38 by jlmuir, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (5)
msg10593 - (view) Author: J. Lewis Muir (jlmuir) Date: 2002-04-27 01:38
After

    ./configure --prefix=<PYTHON_INSTALL_DIR>
    make
    make test
    make install

the .so files installed 
in '<PYTHON_INSTALL_DIR>/lib/python2.2/lib-dynload' 
have permissions set to 700. They should instead have 
file permissions set to 755.

Running the python interpreter as a non-root user with 
the lib-dynload/*.so file permissions set to 700 (as 
is done by the install), a simple import of the time 
module fails:

    >>> import time
    Traceback (most recent call last):
      File "<stdin>", line 1, in ?
    ImportError: No module named time
    >>>

After changing file permissions to 755, 'import time' 
works fine.

---
Python 2.2.1
Mandrake 8.0
Linux 2.4.8
x86 hardware
msg10594 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-04-28 14:00
Logged In: YES 
user_id=21627

When you perform the installation, what is your umask?
msg10595 - (view) Author: J. Lewis Muir (jlmuir) Date: 2002-04-29 23:02
Logged In: YES 
user_id=527708

The umask was set to 022.

To be exact, the 'configure', 'make', and 'make test' were 
run as a normal user with umask set to 077. I then 'su'ed 
as root (using the command 'su - root', making the shell a 
login shell) where my umask became 022 and then ran 'make 
install'.

Both the normal user shell and the root shell were GNU 
bash, version 2.05.1(1)-release.
msg10596 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2002-05-01 18:37
Logged In: YES 
user_id=6656

This is a dup of #425007 (which is languishing on my plate).

Feel free to help fix it...
msg10597 - (view) Author: J. Lewis Muir (jlmuir) Date: 2002-10-27 00:11
Logged In: YES 
user_id=527708

I've submitted a patch for this. It is patch #629278
"install lib-dynload .so files mode 555".
History
Date User Action Args
2022-04-10 16:05:16adminsetgithub: 36509
2002-04-27 01:38:02jlmuircreate