Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Does it make any difference where a simlink is performed? Will a simlink be global when done in root or /root? Will the simlink be recognized by all users when done in root or /root?
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,153
Rep:
In linux a symlink is a file system thing unlike windows links that are a os thing, so the symlink is basically a file like any other, it is visible to any one who has permisions to view it and usable by anyone who has the relevent permissions of the target file, so for instance if ( as root) you make a symlink from say /root/afile.txt to /tmp/link.txt, users will be able to see the link file in /tmp but without root permissions would not normally be able to acces the target file /root/afile.txt because only root would have permissions to view the contents of the /root folder and the file /root/afile.txt.
Also be aware of some confusing terms there is the 'root' folder of a system '/' afolder called '/root' which is tthe home fplder of the user called 'root'
I think I understand the root system, but I don't really know how to correctly put it in word.
Let me further explain my problem. I have a user that uses some .h files that are in /usr/local/ssl/include/openssl/. One example is /usr/local/ssl/include/openssl/crypto.h. Within crypto.h are references to other .h files, such as this line: #include <openssl/opensslv.h>. If you try to use crypto.h, it will not be able to find opensslv.h because it is located in usr/local/ssl/include/openssl/ also and the compile will fail. There were instructions to do a simlink to remedy this problem: 'sudo ln -s /usr/local/ssl/include/openssl openssl'. This simlink didn't solve the problem however. I was thinking that maybe I had to do the simlink from within a specific user or folder. Any insight on this?
The compilers all have a -I option to specify where directories containing include files reside.
In the case of <openssl/opensslv.h> where it resides in /usr/local/ssl/include, you would specify -I /usr/local/ssl/include to the compiler.
After that the compiler will append the path specified to access the opensslv.h file.
Since this is something usually handled within a Makefile, usually with a variable (INCLUDES is what is used a lot). If you are building another source code kit, usually there is a .configure script that comes with it, and you can usually specify the path to the .configure when it attempts to validate the environement - and will pass to the specification on to the creation of Makefiles...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.