The tag has no wiki summary.

learn more… | top users | synonyms

46
votes
3answers
5k 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 ...
14
votes
2answers
11k views

How can I zip/compress a symlink?

Is it possible and how can I zip a symlink from a linux shell?
9
votes
1answer
6k 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 ...
4
votes
3answers
743 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 . ...
4
votes
3answers
313 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: ...
4
votes
3answers
2k 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 ...
4
votes
3answers
610 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 ...
4
votes
1answer
175 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: ...
4
votes
1answer
1k 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 ...
3
votes
1answer
109 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?
3
votes
2answers
643 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
1answer
1k 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
1answer
120 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
1answer
169 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
1answer
802 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 ...
3
votes
2answers
77 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
2answers
339 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
2answers
11k 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
1answer
1k 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 ...
2
votes
3answers
396 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
4answers
670 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
1answer
198 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, ...
2
votes
1answer
292 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
1answer
2k 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 ...
2
votes
2answers
935 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 ...
2
votes
2answers
3k 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 ...
2
votes
1answer
29 views

delete empty file link

I accidently made a link and can't delete that: big:~# ls -al total 88 lrwxrwxrwx 1 root root 27 May 28 18:10 -> /etc/apache2/ssl/apache.pem drwx------ 8 root root 4096 May 29 01:45 . ...
2
votes
1answer
42 views

Can you make the /vz directory a symlink?

I have a OpenVZ VPS server with a 500GB hard drive and 240GB SSD. I'd like to have each VM's files stored on the SSD. Can I make their directory within /vz symlink to a directory on the SSD? There ...
2
votes
1answer
1k views

Trying to understand symlink behavior with vsftpd

I recently moved my website to a CentOS 6 VPS (from a HyperVM-enabled CentOS 5 VPS). I set up vsftpd to handle our FTP needs. I created a local user for everyone who needs to use the FTP. For my ...
2
votes
3answers
543 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) ...
2
votes
1answer
448 views

nginx serve the latest download

on a website I host I have a nginx set up as http server mainly for static content. Some content that gets serverd actually are software downloads (setup.exe stuff). What i want to do is somehow get ...
2
votes
2answers
1k 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 ...
2
votes
1answer
917 views

PHP: Symlink in public_html cannot be accessed through browser

I have tester.php file which I want to run on the browser and I have created symlink to it in my public_html folder, but still when I try to run it, its not working and gives me following error ...
2
votes
2answers
418 views

rsync invocation to replace symlinks pointing to source?

Currently I'm moving a big filesystem to a new server as the original fileserver is no longer able to handle the filesystem writes. To make this quick I made symlinks at the target filesystem ...
2
votes
1answer
418 views

Office 2010 documents via Windows 7 symlinks on network share very slow in comparison to network path access

Client: Windows 7 Premium, Office 2010 Pro Plus, both fully patched. Server: Samba 3.5.10 on CentOS6 (SELinux enabled), Shadow copies enabled. Link speed: 1MBps. As Windows 7 doesn't like me to use ...
1
vote
3answers
87 views

Is there a standard way to keep modified Linux configuration files separate and identifiable?

NOTE This is a copy of a closed question from Stack Overflow, and a constructive version, I feel, of a similar question in Server Fault. Often I need to edit many configuration files under /etc, ...
1
vote
2answers
522 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 ...
1
vote
1answer
412 views

Creating a merge of two directories using symlink on Windows

Is it possible to combine two separate directories into the same place on Windows using symbolic links? Something like this: mklink /J c:\Merged c:\Data\Dir1 mklink /J c:\Merged c:\Data\Dir2 Which ...
1
vote
1answer
96 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 ...
1
vote
1answer
208 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 ...
1
vote
1answer
51 views

What's the best way to atomically add files to a web directory?

So I have a strange question, but I'm working on a script to deploy a PHP codebase and want to see if something like this is possible: I have a directory that Apache uses as a DocumentRoot: ...
1
vote
1answer
69 views

Softlinking /home to a new folder on a big volume

I have a new large volume I would like to create a folder in called home to serve the users home folders, so the location would be /bigvolume/home. Would creating a softlink (ln -s) from /home to ...
1
vote
1answer
70 views

Is there a way to create a 'trackable' link (~hard link) to a folder on Windows (Windows XP in particular)?

Lets suppose that there are: a folder and a junction point or a symlink to that folder When the original folder is moved to a new location, both the junction point and the symlink fail (point to ...
1
vote
1answer
3k 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
1answer
523 views

pure-ftpd symlink not working

I've got a setup where pure-ftpd is allowing symlink. what works /var/www/some_website/symlink_to_logs works and resolves to /var/log/some_website_logs/ (this is to show that symlinks are allowed ...
1
vote
2answers
1k views

Getting 403 on apache with php on fedora 17

I put the projects on ~/public_html/project and create a soft-link in /var/www/html/project which point to ~/public_html/project. my /etc/httpd/conf/httpd.conf is shown below ServerRoot "/etc/httpd" ...
1
vote
2answers
871 views

Apache 403'ing on symlinks created by root but not symlinks created by normal user

Like the title said, for some reason I am getting a 403 when apache tries to follow a symlink created by the root user. For example: This works lrwxrwxrwx 1 repxadmin psacln 15 Jan 25 02:09 ...
1
vote
2answers
144 views

Symlinks for web pages

I have my web server set up running multiple sites and host them all in ~/sites/, outside apache document root (~/www), as follows: +-~/ +-sites/ +-project1/ | +-system/ | ...
1
vote
2answers
155 views

How do I make it so that I can run this program anywhere?

java -jar yuicompressor-2.4.2.jar ~/src/yuicompressor-2.4.2/build$ ls yuicompressor-2.4.2.jar Usually, I have to be in that directory to run this command. Is there any way I can set it so that I ...
1
vote
1answer
54 views

Windows Server 2008 and Directory Symlinks

I have a shared Directory on my TeamCity Server, C:\Work which is about 9 GB and I want to move it to a separate Disk E:. When I copy the C:\Work to E:\Work and do mklink /D to make a symlink, the ...