Root users can introduce cx_oracle packages that other users cannot import

Source: Internet
Author: User
Tags file permissions
1.root users, the use of the source code installed Cx_oracle package, the root user can introduce the Cx_oracle package, the other users under the import failure, prompted not the package;
2.import packet, Python's search path can be obtained by Sys.path command
3. General self-installed packages are stored in:/usr/lib64/python2.7/site-packages directory
4. The above problem is caused by the permissions of the cx_oracle.so file, which is only readable by the root user
5.chmod 644 cx_oracle.so Modify the file permissions
6. When installing Cx_oracle, cx_oracle.so default permission is 700, due to root user's umask value, umask value, general user defaults to 0002,root user generally defaults to 0022
7. Change the value of Umask to default
8. At the command line, Umask 0002, you can temporarily modify the Umask value
9. Normal users permanently modify the Umask value, you can add umask 0002 command to the user home directory in the. bash_profile file

Root users can introduce cx_oracle packages that other users cannot import

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.