Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 02-22-2015, 06:43 PM   #1
Registered: Apr 2014
Distribution: Debian GNU/Linux 7.5 (wheezy)
Posts: 236

Rep: Reputation: Disabled
Sim link question

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?

Old 02-22-2015, 07:13 PM   #2
Keith Hedger
Senior Member
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,479

Rep: Reputation: 620Reputation: 620Reputation: 620Reputation: 620Reputation: 620Reputation: 620
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'
Old 02-22-2015, 09:26 PM   #3
Registered: Apr 2014
Distribution: Debian GNU/Linux 7.5 (wheezy)
Posts: 236

Original Poster
Rep: Reputation: Disabled
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?

Last edited by battles; 02-22-2015 at 09:28 PM.
Old 02-22-2015, 09:43 PM   #4
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,714

Rep: Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280Reputation: 1280
That isn't a symlink issue.

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...
Old 02-23-2015, 09:24 AM   #5
Registered: Apr 2014
Distribution: Debian GNU/Linux 7.5 (wheezy)
Posts: 236

Original Poster
Rep: Reputation: Disabled
Thanks. I'll have to look into the compile suggestions. Apparently the symlink was bogus.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sim link or a better option dorlack Linux - Newbie 2 01-12-2015 01:34 PM
General question about gsm sim card module corp769 Linux - Networking 2 02-04-2010 02:44 AM
Sim link browncow Linux - Newbie 1 05-24-2005 10:38 PM
SIM question :/- multi UINS netmaniak Linux - Software 0 11-09-2004 01:08 PM
sim link in tomcat jglazner Linux - Newbie 2 09-11-2003 05:52 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration