Questions tagged [symlink]
The symlink tag has no usage guidance.
169
questions
82
votes
2
answers
106k
views
How can I zip/compress a symlink?
Is it possible and how can I zip a symlink from a linux shell?
60
votes
3
answers
9k
views
What is the difference between a soft (symbolic) link and a hard link?
I hear that you can now create soft links in Vista too. So, what is the difference between a soft (symbolic) link and a hard link on UNIX/Linux/Vista?
Are there advantages of using one over the other?...
29
votes
1
answer
40k
views
SFTP: file symlinks in a jailed (chrooted) directory
I'm trying to set up sftp so that a few trusted people can access/edit/create some files. I have jailed a user into their home directory (/home/name) but have run into a problem. I want for them to ...
18
votes
3
answers
36k
views
VirtualBox: issue with symlinks in shared folders [closed]
Some time ago there was a thread to exact the same problem: Can't create symlinks in virtualbox shared folders. Now it's closed (why?). So I start a new one, because I've got this issue now and cannot ...
13
votes
5
answers
18k
views
Some GUI for mklink?
Do you know some GUI tool to create Hardlinks/SoftLinks/Junctions?
10
votes
3
answers
8k
views
Move a file and leave a soft link behind
I'm looking for a single linux command that allows me to do the equivalent of this:
cp /some/path/file /another/path/ && ln -sf /another/path/file /some/path/
If there isn't one, what's the ...
8
votes
2
answers
24k
views
Remove symlink with Ansible
I have a dead symlink named dead_symlink under the directory /usr/local/bin
When Ansible check the file it reports it exists
- stat: "path=/usr/local/bin/dead_symlink"
register: dead_symlink_bin
-...
8
votes
1
answer
4k
views
SELinux symlinks?
SELinux is not allowing me to change the context of a symlink. I get no errors or anything. It just doesn't change the symlink, which I am guessing means it is resolving the symlink and changing that ...
7
votes
2
answers
12k
views
What performance issues are there with using symlinks for your Apache docroot
I tried to find an existing question for this already, but couldn't find a good match.
As part of my deploy process for my public facing sites, I am using symlinks to swap between versions of the web ...
7
votes
3
answers
3k
views
MySQL Not Reading Symlinks for Options Files my.cnf
I'm running MySQL 5.5 on Ubuntu.
There is a my.cnf file in /etc/mysql/ where I would expect it to be. - Great!
For debian installations of mysql it is recommended that you do not edit the my.cnf ...
7
votes
2
answers
3k
views
How do I do a bind mount over a symlink?
I have a symlink:
/test
Which is pointing at a directory:
/source
I want to do a bind mount to mount /new over /test
mount -o bind /new /test
However this binds /new over /source (with /test ...
6
votes
2
answers
12k
views
Can't create or follow symlinks from linux client with a cifs mounted Windows Server 2008 R2 share
Windows Server 2008 R2 NTFS supports symlinks. If I log into the server as Administrator I can create symlinks with mklink, so I know the Admin user has the permissions to do this. If I mount a share ...
6
votes
2
answers
971
views
rsync to adapt links that have absolute paths to the location at destination
Would it be possible with rsync to adapt the absolute, symbolic links to a new location at the destination?
Test case
Imagine I have a link pointing to a file like this:
/usera/files/common/...
6
votes
1
answer
5k
views
Symlinks look like regular files on samba shares
Symlinks on my samba share aren't behaving the way I want them to – specifically, the links look like duplicate regular files to the client machine. This used to work (i.e. symlinks on the server ...
5
votes
3
answers
3k
views
Why doesn't ls -la show that current directory is symlink?
This is more of a curiosity, but I noticed /etc/httpd/logs is symlinked to /var/log/httpd, but when I am inside of /etc/httpd/logs and I do ls -la I see:
drwx------ 2 root root 4096 Mar 21 14:58 .
...
5
votes
3
answers
1k
views
Is it an unsafe practice to symlink /etc conf files?
To manage the configuration of a server, I keep some configuration flies (located in /etc) under version control (in the home folder) and then symlink to them from their /etc locations:
/etc/someprog/...
5
votes
2
answers
8k
views
How to symlink folders and exclude certain files
I'm not a server guru (unfortunately) but have a decent knowledge of linux & bsd.
I'm trying to symlink multiple instances of HLDS (game server) but need to exclude certain folders & config ...
5
votes
1
answer
2k
views
Shared Cygwin Install
I'm attempting to set up OpenSSH on a bunch of Windows Server 2003 machines in an automated fashion. My goal is to be able to do so using a single version of Cygwin installed on a network drive ...
4
votes
1
answer
171
views
Absolute symlink-resolving pwd
I'm sitting in front of a Linux shell. I want to do something like pwd, except I want an absolute answer, i.e. I want any symlinks to be resolved to their true path. How can I do that?
4
votes
2
answers
20k
views
nginx symlinks permission denied / 403 Forbidden on Mac OSX
So I have an nginx server running on Mac OSX and I am trying to create a symlink in my nginx www directory from somewhere else. In the browser I get the wonderful 403 Forbidden error.
I have also ...
4
votes
1
answer
13k
views
Following Windows SymLinks in network shares
I have a shared folder, let's call it
e:\folder2\
'Everyone' has read permission to the share and file system.
From a command line, with pwd at
e:\folder2\
I ran
mklink /D slF1 e:\folder1
The ...
4
votes
1
answer
2k
views
Question Mark on symlink
Why do I get a "?" mark at the end of a symlink sometimes?
E.g.
lrwxrwxrwx 2 root root 0 1969-12-31 19:00 xyz -> abc?
4
votes
1
answer
5k
views
Symlink - Permission Denied
I'm facing an interesting problem with plenty of Permission Denied outputs when using SymLinks
Linux: Slackware 13.1
Directory with Symlink:
root@Tower:/var/lib# ls -lah
drwxr-xr-x 8 root ...
4
votes
1
answer
2k
views
Rsync: dealing with absolute symlinks
Having read through the rsync manpage, I can't see any way for rsync to automagically transform absolute symlinks between machines, i.e
Server A
file -> /home/username/path/file
Server B
file -&...
4
votes
1
answer
11k
views
Nginx doesn't follow symlink properly
I'm trying to automate my deployment process and I'm having this strange issue.
Every new version of my web app is placed in /var/www/releases/{timestamp}. After I execute git clone into that ...
4
votes
1
answer
3k
views
Moving \inetpub\ for IIS 8.5
There are many sources that say that the %SERVERROOT%/inetpub/ must never ever be deleted or moved. And yes, I can agree with this, as updates to IIS update that directory blindly -- they don’t ...
4
votes
2
answers
2k
views
Is it possible to change a symlink's date/time in Windows?
We've archived old (more than 2 year old) files on our fileserver using FSRM to a different directory by moving and replacing the files with symlinks - the problem is that the symlinks have as a ...
3
votes
2
answers
11k
views
How to copy the target file vs the symlink
I have files with symlinks as shown below :
link_AB91 -> file_12857.xml
link_XY99 -> file_102856.xml
link_EF02 -> file_96843.xml
In my script I reference the link not the actual target file.
...
3
votes
1
answer
3k
views
How do I symlink one directory to a chrooted (jailed) directory?
'm trying to create a folder (directory) for a jailed user on my server that will allow him to access another folder outside of his jail. I'm trying to do this with symlink but all it does is create a ...
3
votes
2
answers
6k
views
Should /etc/localtime be a symlink or a file?
When I first install a RHEL system, I select a timezone. Examining the /etc/localtime, I see that this is a copy of one of the files from /usr/share/zoneinfo.
However, when I look into changing the ...
3
votes
2
answers
2k
views
Is there a Linux FTP server that can resolve symbolic links when users are jailed?
I'm currently sing ProFTPd with mount points to "emulate" dir sym links. However, the problem is, what to do when you have file symlinks? I could hard link them, but this means replacing all of my ...
3
votes
1
answer
2k
views
How do I rearange a file tree and then export it over NFS?
I've got a backup server that stores incremental backups in a tree like this:
/backups
hourly.0
server 1
server 2
hourly.1
server 1
server 2
hourly.2
...
3
votes
1
answer
753
views
How to find any symbolic links that point outside a given folder tree?
I have a bunch of folders/files that are 10+ levels deep.
How can I find any symbolic links that point outside this folder tree?
I tried find -type l but this returns all soft links... even ...
3
votes
3
answers
2k
views
Why won't apache load a symlinked file from conf.d?
I have an apache configuration file which works fine when it's placed directly in /etc/httpd/conf.d/foo.conf. However, when I move the same file somewhere else (for example, move it to /tmp/foo.conf) ...
3
votes
1
answer
937
views
using /bin/bash in a chroot environment - symlink or mount
A user connects via ssh. The user is also chroot-ed to their home directory. The goal is security.
Since the user is chroot-ed, when they login /bin/bash is not found. Obviously the user needs ...
3
votes
1
answer
3k
views
How to increase max symlink limit in RHEL
I am running into the following Linux error: Too many levels of symbolic links.
This seems to be caused by the system limit of 8 maximum link-chain size, and I'm looking for a way to increase this ...
3
votes
1
answer
2k
views
How do I grant users permission to create hard links (using GPO or registry entries)?
I'm working in an AD domain with one DC running Windows Server 2012 R2, and clients running mostly Windows 7 Professional.
I need to be able to grant certain user groups the permission to create hard ...
3
votes
2
answers
1k
views
Security of symlink to directory outside webroot set to 777?
I have a few websites that use the same cached weather reports so I wanted them all in the same folder. It seemed the most logical way to do this would be to but this folder outside of the webroot. It ...
2
votes
2
answers
14k
views
Apache 2 Symbolic link not allowed or link target not accessible
My apache server runs as user foo.
I have some Rails applications in /home/foo/app1 /home/foo/app2.
Each of them has an vhost
<VirtualHost *:80>
ServerName app1.foobar.com
ServerAlias ...
2
votes
3
answers
3k
views
Can't apply SELinux file context to paths with symlinks
I have a solution that is being installed in an enterprise environment. The solution and its deployment guide are designed to installed on a RHEL7/CentOS7 server with SELinux enabled and components ...
2
votes
2
answers
2k
views
Which is generally considered faster or best practice: symlinks or Apache aliases?
I'm curious as to what most people's views are on this subject. Personally, I will almost always prefer symlinks unless I have no other option -- I find that it is far more obvious when someone is ...
2
votes
3
answers
1k
views
List all symbolic links on a directory
a short question: is it possible to list all symbolic links onto a directory other than running a find over the whole filesystem?
Background: I have a directory containing a lot of different versions ...
2
votes
4
answers
1k
views
table alias (or 'symlink') in mysql
in MySQL5.1, is there a way to make one table accessible by two different names? I'm thinking about somethink like a symlink on linux filesystems.
I know theres the
CREATE VIEW myview AS SELECT * ...
2
votes
2
answers
1k
views
How to remove only delete permission about symlink from usual user on Windows
We have a program which makes temporary directory HT on %USERPROFILE%\AppData\Local\Tempand working on there, and delete the temporary directory when I quit the program.
I want to make the program ...
2
votes
1
answer
2k
views
Mount --bind versus symlinks
Linux server
/www/website directory is my html directory
Want users to ftp to /user/website/public_html directory which is chrooted and limited to ftp only access
I currently accomplish this via
...
2
votes
2
answers
17k
views
Linux Shell - How to copy directory without symlink
I would like to get everything inside one directory.
How can I copy entire directory (that originally contains files and symlinks) to a new directory that should contains all files but no symlink??
...
2
votes
1
answer
814
views
Server symlink doesn't map in URL
I have a symlink in my main htdocs directory /home/www/example.com/htdocs:
index.php
cms (symlink)
lrwxrwxrwx 1 apache myuser 32 May 22 15:33 cms -> /home/www/xyz-cms/https/cms/
However, when ...
2
votes
1
answer
422
views
Are relative-path symlinks reliable on Rackspace Cloud Sites?
Rackspace's Cloud Sites have a lot of stupid limitations. For example, no SSH (in or out), no shell, no RSYNC, etc... (even through cron).
Recently I learned that you can't reliably use symlinks in ...
2
votes
1
answer
221
views
mklink folders from Windows server to AIX
We need to make a softlink to other server on AIX and when doing accordingly to guide in cmd occurs an error
mklink /D \\10.0.0.10\folder C:\folder
and it returns - The request is not supported
...
2
votes
2
answers
3k
views
Is it safe to symlink complete /var directory
Is it safe to move complete /var directory in separate partition and create symlink to it?
mv /var /mnt/storage
ln -s /mnt/storage /var
Distribution is Google Cloud CentOS Image
I do not want to ...