Questions tagged [symbolic-link]

220 questions
4
votes
1 answer

NFSv4 Symbolic link under virtual root

My intention: use /exports as my virtual root of NFSv4 export dir /my/dir through NFS So I created a symlink under /exports like this # ln -s /my/dir /exports/dir and my /etc/exports looks like: /exports…
Andy Song
  • 47
  • 5
4
votes
3 answers

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 archive lrwxrwxrwx 1 root root 10 Dec 11 16:38…
Erwan Queffélec
  • 397
  • 4
  • 11
4
votes
1 answer

Dereference symbolic link in OS X?

In OS X, how can I dereference a symbolic link to a canonical file name? (i.e. one starting with /.) That is, I'm after the equivalent of GNU readlink's -f option: kapow:~$ greadlink -f .bash_profile /Users/mjs/.config/home/.bash_profile OS X's…
ithinkihaveacat
  • 1,624
  • 3
  • 14
  • 18
4
votes
1 answer

Virtual hosts & symbolic links, why can't I set DocumentRoot to a symbolic link?

I have recently setup Capistrano on my server and it works great. I changed my virtual hosts to point to the symbolic link created by Capistrano. My virtual hosts file: DocumentRoot /var/www/html/my_app.com/current …
Anil
  • 262
  • 2
  • 4
  • 15
4
votes
1 answer

Is there a way to make Apache follow symlinks for the header content-type?

If I serve a file named image.jpg the header content-type is sent as image/jpeg, but if I make a softlink named image that points to image.jpg the content-type is sent as text/plain. Is there a way to send the same content type as if it were reading…
Zequez
  • 157
  • 2
  • 6
4
votes
3 answers

Prevent 'cd' remembering symbolic links traversed

Say you have directory ~/mytool that softlinks to /usr/local/mytool. Then cd mytool leaves your current directory as ~/mytool, which may cause scripts to behave incorrectly. Is there a way to avoid this behaviour? With some googling, I see that you…
Steve Bennett
  • 5,750
  • 12
  • 47
  • 59
4
votes
1 answer

Make folders on multiple drives appear in a single folder without using symlinks

I have directories sorted by date on different physical drives: /mnt/drive1/2000 /mnt/drive1/2001 /mnt/drive2/2002 /mnt/drive3/2003 /mnt/drive4/2004 /mnt/drive4/2005 /mnt/drive5/2006 How can I get them to appear in a single folder, without using…
ensnare
  • 2,212
  • 7
  • 24
  • 40
4
votes
1 answer

Moving postgres data folder on NFS drive. Is it better to symlink, reinit cluster, or modify init.d script?

I want to move my postgres data folder to an NFS drive but I'm not sure what would be the best way to do it. I've got three options in mind: According to Postgres Documentation, one method would be to use the initdb command with the -D…
John
  • 536
  • 3
  • 5
  • 13
4
votes
2 answers

How do you find the target of a symlink created with mklink

Once a symlink is created using mklink, is there any way to find the link target, other than parsing the output of dir command ? As an example, junction.exe will return the substitute name when called with a junction as a first argument.
Rod
  • 143
  • 1
  • 5
4
votes
2 answers

Apache Error: Symbolic link not allowed or link target not accessible

I can't seem to get a symlink working in my Apache VirtualHost, no matter what I try and I see the following error in the error log: Symbolic link not allowed or link target not accessible: /var/www/carddesigner I can browse the actual symlink from…
Naftuli Kay
  • 1,708
  • 6
  • 24
  • 44
4
votes
1 answer

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 permissions for both folders(folder1,folder2) are…
Matt
  • 1,571
  • 4
  • 15
  • 16
4
votes
4 answers

Does anyone knows how to create a sybmbolic "directory" in linux?

I've tried the ln -s directory_to_use directory method, but all it does is just create a "file" that links to directory_to_use, which doesn't work when using FTP. What I'm looking for is, for example, cPanel's www directory points to public_html as…
p8xc8gji
4
votes
1 answer

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 -> /home/differentusername/path/file Any ideas (bearing…
Andrew Bolster
  • 326
  • 2
  • 11
4
votes
3 answers

Replace symbolic-link with target

How can you replace all symbolic-links in a directory (and children) with their targets on Mac OS X? If the target is not available, I'd prefer to leave the soft link alone.
George Tsiokos
  • 185
  • 3
  • 10
4
votes
3 answers

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 caching and file changes are picked up on other…