CentOS User Switching

Source: Internet
Author: User

Various environment variables have been configured in the/etc/.bash_profile of the system.

Log in with account A, ldd xxx.so see all links normal.

Log in with account root, ldd xxx.so View all links are ok.

With account a login, and then SU Root to switch to the root account, LDD xxx.so show that one of the dependent yyy.so cannot be found, but yyy.so is present, and its path is already configured in/etc/.bash_profile.

I'm baffled, all kinds of ls-l./directory/path View permissions, conjecture is a read-write permission problem for some directories or files. It's been a long day without fruit. Use env to see, how to use

When Su Root is finished, Ld_library_path no more ... Without...

The correct way to switch users is su-root instead of SU root, otherwise the environment variable is lost. The order in which the system loads the environment variables is the first to read which files are read again which files, when switching the user read the environment variable is the mechanism of time to take a good look at the relevant information

CentOS User Switching

Related Article

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.