The tag has no wiki summary.

learn more… | top users | synonyms (1)

44
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 ...
13
votes
5answers
5k views

Some GUI for mklink?

Do you know some GUI tool to create Hardlinks/SoftLinks/Junctions?
12
votes
2answers
8k views

How can I zip/compress a symlink?

Is it possible and how can I zip a symlink from a linux shell?
6
votes
1answer
4k 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
562 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
264 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
499 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
945 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
107 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
3answers
1k 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 ...
3
votes
2answers
621 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
903 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
2answers
269 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
10k 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
395 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
642 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
157 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
271 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
1k 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
680 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
28 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
37 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
983 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
1answer
734 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 ...
2
votes
3answers
487 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
2answers
971 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
891 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
1answer
346 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
79 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
482 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
298 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
57 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
48 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
51 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
2k 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
421 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
852 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
768 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
143 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
1k views

How to secure Apache for shared hosting environment? (chrooting, avoid symlinking…)

I'm having problems dealing with Apache configuration: the problem is that I want to limit each user to his own docroot (so, a chroot() would be what I'm looking for), but: Mod_chroot works only ...
1
vote
1answer
651 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 ...
1
vote
1answer
3k 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 ...
1
vote
2answers
357 views

Automatically create symbolic links in Linux to files in one folder when a file in that folder is created and edited

I have 2 folders on my Linux OS, Apache 2 Webserver. Call them folderA and folderB . They are have following paths site1/public/sites/all/folderA site2/public/sites/all/folderB I would like that ...
1
vote
1answer
200 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?
1
vote
0answers
211 views

Permissions within Windows symlink to a Samba share

I have a Samba shared folder on an Ubuntu box which I can access from my Windows 7 PC and within which, as a non-administrator Windows user, can create and update files and folders. However, when I ...
1
vote
1answer
195 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 ...
1
vote
1answer
404 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 ...