Shared library accessible by root and not by regular user
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Shared library accessible by root and not by regular user
Hello!
I'm trying to install Google Chrome on Slackware 13.1 (32 bit) and I have a little problem with shared libraries.
The google-chrome applications looks for nss libraries with file names ending in apparently non-standard ways (for me and my system, at least): for example, it looks for libnns3.so.1d, but I have libnss3.so, so I created a symbolic link libnss3.so.1d -> libnss3.so. The problem now is that if I run google-chrome as my usual regular user I still get the missing library error, but if I run it as root I don't get the error anymore (well, it still complains about other libraries missing for the same naming reason, but anyway it's able to find the one I just renamed).
The permissions seems fine to me:
Code:
/usr/lib# ls -l | grep seamonkey
lrwxrwxrwx 1 root root 15 Jun 16 22:03 seamonkey -> seamonkey-2.0.4
drwxr-xr-x 14 root root 4096 Oct 12 10:47 seamonkey-2.0.4
I haven't tried yet, I miss the GConf libraries, but since I'm not going to use Chrome as root, I focused on the shared library problem with my unprivileged user.
Ok, actually, it's not a problem regarding being root or not, but simply it seems that google-chrome cannot find the renamed libraries unless my working directory is the one those libraries are in (that is, /usr/lib/seamonkey). I don't know why this happens, since /usr/lib/seamonkey is in /etc/ld.so.conf. Any idea?
Thanks!
It works if I run google-chrome as "LD_LIBRARY_PATH=/usr/lib/seamonkey google-chrome". Then why doesn't putting the "/usr/lib/seamonkey" line in /etc/ld.so.conf work?
Actually, I would like to solve the ld.so.conf problem :-) What are the possible reasons why putting the relevant line there doesn't work and using LD_LIBRARY_PATH works? And yes, I did run ldconfig after changing the file :-)
Thanks again!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.