The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
22 views

rsync -a and -L conflict?

I'm working on multiple servers and need to copy a large amount of data from one (production) to another (staging). The source server (production) has a NAS for shared files, that are accessed via ...
0
votes
0answers
8 views

What resources spent symlinks? [duplicate]

I'm working on a web application that makes use of symbolic links. It is a SaaS application where for each user generates symlinks of a core folder and serve them on a new hostname selected by the ...
57
votes
4answers
82k views

How to override/update a symlink?

I am trying to use symbolic links. I did some reading and found the following commands: Creation -> ln -s {/path/to/file-name} {link-name} Update -> ln -sfn {/path/to/file-name} {link-name} ...
1
vote
1answer
36 views

Why won't apache allow symbolic links, with SELinux?

I have a simple scenario: I want to symlink /home/leonard/apache/sandbox/markdown to /home/leonard/github/markdown-editor, so that the markdown-editor can be viewed from my browser. I setup the link ...
50
votes
6answers
56k views

Find out symbolic link target via command line

Say that I setup a symbolic link: ln -s /root/Public/mytextfile.txt /root/Public/myothertextfile.txt is there a way to see what the target of myothertextfile.txt is using the command line?
0
votes
1answer
30 views

How to avoid symlinked files shared by Samba from looking like duplicate files (different inode numbers)?

I often have directories on a Linux server where symbolic links are used for alternative names for subdirectories or files (e.g. maintaining a "latest" symbolic link to a directory with the latest ...
0
votes
2answers
2k views

Include folder for certain www host outside document root folder

Ubuntu 12.04, running on Apache server. I wonder if that is possible to run/access from browser html/php file from other than document root location let's say from folder /testfolder on the root So ...
10
votes
2answers
9k views

Symbolic link and filezilla over sftp

I'm pretty new to debian, and I'm trying to set up a server. I have created a user who can only access his folder /home/username (and its subdirectory). Now I want to use that user for the webserver ...
4
votes
0answers
55 views

How to allow a Windows Client to follow a Remote Symbolic Link Transparently

Here's the scenario. Client - Windows 7 workstation ServerA - Windows 2008 file server ServerB - Windows 2008 file server On ServerA: mklink /D c:\Share\Link \\ServerB\Share\Dest That works ...
6
votes
6answers
4k views

Can't delete symbolic link

I accidentally reversed the parameters of my ln and called: ln -s my_link my_dir where my_dir already existed and my_link did not. I deleted my_dir, but am unable to delete my_link. If I ls -l ...
92
votes
8answers
139k views

How do I create a symbolic link in Windows?

Windows Vista added the ability to create symbolic links to files and directories. How do I create a symbolic link and what are the current consumer and server versions of Windows that support it?
15
votes
3answers
37k views

How to list symbolic link chains?

Given this example: mkdir a ln -s a b ln -s b c ln -s c d If I execute: ls -l d It will show: d -> c Is there a way for ls or any other linux command to show d -> c -> b -> a ...
9
votes
1answer
6k views

How do I assign an SELinux label to a symlink with semanage so it persists after a relabel?

My apache DocumentRoot /var/www is a symbolic link to another path. The target has the appropriate file context label (httpd_sys_content_t) so that apache can read it with SELinux enabled. However, ...
0
votes
3answers
78 views

Identical directories on Linux file system are not symlinks. What else they could be?

I found two directories on some of my systems which are completely the same. All subdirectories and all files are the same. When I delete a file in one directory it disappears in other too. This would ...
0
votes
1answer
19 views

the actual link permissions aren't used for anything - What about Ownership?

After months of intermittent attempts to discover what was causing these Forbidden errors I've discovered evidence that strongly suggests Apache2 uses the actual link's ownership and group. I have a ...
1
vote
1answer
35 views

Determine volume location by understanding Windows symbolic link name

I need to figure out the location pointed to by a Windows symbolic link in order to troubleshoot something wrong with the folder or files located there. It's of the form: C:?\Volume{5c286810-f966-......
0
votes
3answers
151 views

symlinks on shared storage

Say I have a glusterfs mount that is shared between multiple servers, which is accessed by an application, and logs are written to a directory that would normally be in the directory tree of that ...
1
vote
1answer
23 views

Can I make “static redirects” using symlinks in Apache?

I'm overhauling a site to use a new URL structure, but don't want the old URLs to 404, instead redirect to the new content. To complicate things, this is on a shared host where .htaccess is the only ...
1
vote
3answers
673 views

IIS7 doesn't monitor changes across symlinks

I've used the mklink utility to create a symlink to a directory of web content. IIS7 doesn't "see" changes to any classic ASP files in this linked directory without issuing an iisreset. I've disabled ...
9
votes
3answers
2k views

How do I find broken symlinks automatically on Windows?

Not sure if this is bad style, but I'm asking this question here because I couldn't find the answer elsewhere, and then I worked out one solution on my own. I'd be interested to see other people's ...
1
vote
0answers
118 views

IIS server: directory not writable via symbolic link compared to directory junction (for only the first user)

We have the following setup for a webserver: Windows Server 2008 R2 Standard, IIS 7.5.7600.16385, PHP 5.3.28, the HMVC framework we use is Kohana. Kohana needs a cache directory to be writable in D:\...
1
vote
2answers
6k 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 ...
1
vote
0answers
242 views

Effective permissions for a shared mklink to a non-shared folder and subfolders

What are the effective permissions if you share a symlink but not the folder it points to? From what I can see, there are 3 sets of permissions: 1) the target folder permissions 2) the symlink ...
3
votes
3answers
1k views

Linux disk usage analyser that acts like symlinks are real files

I am using git-annex, an extension to the DVCS git, which is designed for handling large files. It makes heavy use of symlinks. The actual large files are moved to the .git/annex directory and the ...
5
votes
2answers
5k views

NFSv4 “Too many levels of symbolic links” error

Both machines are running Ubuntu 12.04 Remote NFSv4 Client $ ls /mnt/storage/aaaaaaa_aaa/bbbb/cccc_ccccc gives this error: ls: reading directory .: Too many levels of symbolic links How can I fix ...
0
votes
2answers
229 views

MySQL, NFS and symbolic links

I have been migrating an older server running apache2 + mysql under ubuntu to a new server running debian (wheezy). The migration works fine while the databases are storted localy (in our case /srv/...
1
vote
2answers
99 views

Symbolic link type change on Window Server

We have been using symbolic intensively to archive historic files. An automatic script would create symbolic links regularly based on certain criteria. Users don't experience inconvenience as the soft ...
4
votes
2answers
16k views

Setup symbolic link where users can access it with FTP

I have a folder on a server where a client of mine has a bunch of folders that they upload images and what not for a site, I do a symbolic link to those folders to the root of the website. This way I ...
1
vote
1answer
207 views

Allow certain users to access a specific directory?

I'm trying to figure out how to allow certain users who are also me to access a directory of files that I want to use for all of my users. The files I want to use are on account1 in the directory /...
29
votes
2answers
22k views

Perform rsync while following sym links

I have a directory that contains symbolic links to other directories located on different media on my system: /opt/lun1/2011 /opt/lun1/2010 /opt/lun2/2009 /opt/lun2/2008 /opt/lun3/2007 But the ...
-2
votes
1answer
81 views

Tomcat7 pointing to a symbolic link WAR [closed]

I have Tomcat7 running on a Linux server. Tomcat is pointing to a symbolic link WAR for my application. The link is pointing to the actual WAR. I am looking to upgrade the app. What I have done is ...
1
vote
1answer
63 views

Can I upload files to one Windows share and expose them on another?

So I've got a Windows server with a couple of fileshares, call them ShareA and ShareB. ShareA is read/write accessible to only a couple of admins, and ShareB is read-only for all. The files on the ...
6
votes
5answers
7k views

Create NTFS symbolic links from within Linux

Is there a Linux utility that can create NTFS symbolic links? That is, a link on an NTFS partition that points to another NTFS folder - one that will work within Windows 7, specifically. I wish to ...
0
votes
1answer
192 views

EMC Networker and symbolic links

When investigating EMC Networker setup, I found a strange issue. I have a job set up to save /oracle from a server. On that server, /oracle is a symbolic link to /TEMPORAL/oracle When I check the ...
0
votes
2answers
185 views

Linux softlink to folder with date in path

I have a logging system, which writes logfiles on a daily base into subdirectories like the following: /var/log/xyz/2015/03/10/log.log In my home dir (or anywhere else), i want a softlink to the ...
0
votes
2answers
139 views

Apache 2: symlinks for readonly-mounted filesystems

I have a large data repository that, for security, I wish to keep mounted read-only for a VM running Ubuntu 14.04. This VM runs an Apache server, and I wish to symbolically-link certain files from ...
2
votes
2answers
791 views

Show symbolic links AND their targets in web directory listing (apache)

Listing a directory content with ls -l shows this output: total 12 drwxr-xr-x 3 root root 4096 Dec 11 16:38 2.3 drwxr-xr-x 5 root root 4096 Dec 11 16:38 2.4 drwxr-xr-x 2 root root 4096 Dec 11 16:38 ...
1
vote
0answers
253 views

Enabling the URL of a folder connected via symlink

Scenario Description: In my workplace we have a DomainController and use TerminalServices. There are different types of servers running on the DC (e.g. webapi , app). The dev guys developing the API ...
1
vote
3answers
800 views

Native Symlink Windows 2008 r2 with cygwin

Is it possible for me to create an ssh session on windows which then does some folder/file manipulation and then creates a NATIVE windows symlink. i.e. a symlink that will be recognised by IIS and ...
3
votes
1answer
2k views

Why do some host volumes in Docker containers give the error “too many levels of symbolic links”?

I'm running docker with a host directory mounted: $ docker run -v /usr/groups/thing -ti imagename /bin/bash Files in /usr/groups/thing/foo are accessible: # ls /usr/groups/thing/foo a b c But ...
31
votes
2answers
14k views

how to update a symbolic link target (ln -f -s not working)

I'm using ln -f -s /var/www/html/releases/build1390 app-current to update symbolic link "app-current" with a new destination. However, this doesn't work, the link "app-current" keeps it ...
-1
votes
5answers
14k views

How to add symbolic link as webapp to webapps in Tomcat 7 on Linux?

Setup I use Apache Tomcat 7 on an Arch linux distribution, and my webapps directory is located at /usr/share/tomcat7/webapps. In this directory one should create a directory, and put META-INF and WEB-...
0
votes
1answer
60 views

How to replicate apache configuration locally ( maintain 2nd level domain structure, symlinks )

I'm a student developer working for a college doing dev work for 1 department (~11 sites). The current workflow is as follows: SFTP into the staging server edit files when done, use a web utility ...
4
votes
1answer
652 views

Preserving existing destination symlinks with rsync

I am using rsync to keep a local debian repository updated. Recently, the disk I am using to store it started running low on space, so I decided to use symlinks to allow me to move some of the ...
-1
votes
1answer
258 views

Apache .htaccess set different password for symlink

I got a domain with a website that can be reached by two urls, mydomain.com/pathA and mydomain.com/pathB. But they are actually the same directory on the server. It contains a MediaWiki installation,...
0
votes
2answers
341 views

Performance hit from moving DB to another drive symlink?

We're considering moving one database (there are 4 of them in total) with InnoDB tables, to a separate partition in a Ubuntu 14.04 VPS. This DB gets read/write intensive (500 writes per sec, about ...
0
votes
0answers
356 views

Replacing files with symlinks takes more space - Fedora19 EXT4

Background: We are using PHP CacheLite. In order to have a human readable path to cache files cache_{hash}_{hash}, there is a symbolic link that is more descriptive of the cache contents. We ...
0
votes
1answer
84 views

How to access original files from before a symlink gets updated, which have since been moved to another dir

We have a website and our deployment process goes somewhat like the following (with lots of irrelevant steps excluded) echo "Remove previous, if it exists, we don't need that anymore" rm -rf /home/[...
31
votes
6answers
5k views

How to create a symbolic link without using ln?

I deleted a critical symbolic link - libc.so.6. I have the file it should point at, but the basic commands such as ln or wget won't work anymore due to the link missing. However, echo or other Bash ...
8
votes
2answers
1k views

Symbolic link and sudo

I create a symbolic link: ln -s /tmp/folder1 /tmp/folder2 Then I go to /tmp/folder2 and run pwd: $ cd /tmp/folder2/ $ pwd /tmp/folder2 $ sudo pwd /tmp/folder1 # <-- This is the odd part Why ...