0
votes
0answers
70 views

Permissions issue using symlink on public_html folder

I have two accounts on a centOS server. The first account has a normal public_html folder, the second account has a symlink to the first account public_html folder instead of a normal one. The first ...
0
votes
1answer
25 views

Copy symlink structure from one server to another

I have a symlink structure that I would like to copy from one server to another. I do not want to copy the files, just copy the symlink structure itself. I tried simply tarring the list of symlinks, ...
1
vote
3answers
69 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, ...
4
votes
3answers
397 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 . ...
3
votes
2answers
176 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 ...
1
vote
1answer
849 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 ...
0
votes
1answer
43 views

Does soft link affects xml parsing and database process

I have a php code that does an xml parsing and inserts data into the mysql database. The code can process one xml file in an average of 18 minutes. Since I will be having lots of xml files and ...
0
votes
1answer
29 views

Get directory of a symlinked script

I have to determine the directory of a script which is symlinked. /usr/local/src/myscript/myscript.sh /usr/local/bin/myscript.sh (Symlink to the one above) A cronjob executes ...
1
vote
1answer
293 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 ...
0
votes
1answer
373 views

Dreamweaver not recognizing symbolic link as directory

I have this directory drwxrwxr-x 6 awdfiles pasgroup 4096 Jan 31 17:20 awdfiles Which I want to access via another FTP connection. The user is part of the pasgroup ...
1
vote
1answer
45 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
126 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 ...
3
votes
1answer
103 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?
6
votes
2answers
5k views

How can I zip/compress a symlink?

Is it possible and how can I zip a symlink from a linux shell?
0
votes
3answers
227 views

Is this a symbolic link?

I type ls -l and a directory shows up like this: lrwxrwxrwx 1 root root 23 Jan 7 03:44 order_pictures -> /storage/order_pictures Is that a symlink? I am trying to replicate this, so I type ...
0
votes
2answers
138 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
311 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
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
166 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?
2
votes
2answers
786 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 ...
0
votes
2answers
58 views

Symlink - Change specific files

I've sym-linked a directory, and now I want to change a specific file in the linked directory, without changing it in the target directory. I don't want to copy the whole directory. What can I do?
0
votes
2answers
425 views

Symlink across local volumes in webroot?

I am looking for a good short-term solution to storage space concerns on my website. Currently, I have all uploaded files (flash video, images, etc.) inside the 'files' directory in my web root ...
2
votes
3answers
430 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
3answers
387 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 ...
1
vote
2answers
130 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 ...
44
votes
3answers
4k 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 ...
2
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 ...