LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-22-2015, 05:43 PM   #1
battles
Member
 
Registered: Apr 2014
Distribution: Debian GNU/Linux 7.5 (wheezy)
Posts: 258

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?

Thanks.
 
Old 02-22-2015, 06:13 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,153

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
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, 08:26 PM   #3
battles
Member
 
Registered: Apr 2014
Distribution: Debian GNU/Linux 7.5 (wheezy)
Posts: 258

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 08:28 PM.
 
Old 02-22-2015, 08:43 PM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
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, 08:24 AM   #5
battles
Member
 
Registered: Apr 2014
Distribution: Debian GNU/Linux 7.5 (wheezy)
Posts: 258

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


Reply



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 12:34 PM
General question about gsm sim card module corp769 Linux - Networking 2 02-04-2010 01:44 AM
Sim link browncow Linux - Newbie 1 05-24-2005 09:38 PM
SIM question :/- multi UINS netmaniak Linux - Software 0 11-09-2004 12:08 PM
sim link in tomcat jglazner Linux - Newbie 2 09-11-2003 04:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:03 AM.

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