[Python-bugs-list] [ python-Bugs-549338 ] lib-dynload/*.so permissions wrong

noreply@sourceforge.net noreply@sourceforge.net
Wed, 01 May 2002 11:37:47 -0700


Bugs item #549338, was opened at 2002-04-27 01:38
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=549338&group_id=5470

Category: Installation
Group: Python 2.2
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: J. Lewis Muir (jlmuir)
>Assigned to: Michael Hudson (mwh)
Summary: lib-dynload/*.so permissions wrong

Initial Comment:
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

----------------------------------------------------------------------

>Comment By: Michael Hudson (mwh)
Date: 2002-05-01 18:37

Message:
Logged In: YES 
user_id=6656

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

Feel free to help fix it...

----------------------------------------------------------------------

Comment By: J. Lewis Muir (jlmuir)
Date: 2002-04-29 23:02

Message:
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.

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2002-04-28 14:00

Message:
Logged In: YES 
user_id=21627

When you perform the installation, what is your umask?

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=549338&group_id=5470