Questions tagged [symlink]
168 questions
5
votes
3 answers
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:
/etc/someprog/c.conf ->…

Matt Sweeney
- 259
- 2
- 7
5
votes
1 answer
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 instead of manually installing it on each machine.
I…

dpetters
- 53
- 4
5
votes
2 answers
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 files to achieve this properly. I need to do it this way as…

Jarrod White
- 51
- 1
- 2
4
votes
1 answer
Moving \inetpub\ for IIS 8.5
There are many sources that say that the %SERVERROOT%/inetpub/ must never ever be deleted or moved. And yes, I can agree with this, as updates to IIS update that directory blindly -- they don’t actually query the system to see if the IIS inetpub…

René Kåbis
- 191
- 1
- 2
- 11
4
votes
2 answers
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 filedate the date the script ran - nothing to do with…

opg
- 35
- 2
4
votes
2 answers
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 tried chmod'ing my life away for the past few…

Levi Roberts
- 201
- 1
- 3
- 9
4
votes
1 answer
Nginx doesn't follow symlink properly
I'm trying to automate my deployment process and I'm having this strange issue.
Every new version of my web app is placed in /var/www/releases/{timestamp}. After I execute git clone into that directory I make a symlink to /var/www/current. Then I…

user1630391
- 143
- 1
- 1
- 4
4
votes
1 answer
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 root 0 2012-12-02 20:09 ./
drwxr-xr-x 15 root …

John Smith
- 41
- 1
- 2
4
votes
1 answer
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?

Ram Rachum
- 5,231
- 7
- 34
- 46
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
1 answer
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?

jldupont
- 1,849
- 4
- 24
- 27
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
3
votes
2 answers
How to copy the target file vs the symlink
I have files with symlinks as shown below :
link_AB91 -> file_12857.xml
link_XY99 -> file_102856.xml
link_EF02 -> file_96843.xml
In my script I reference the link not the actual target file.
However, when I perform the copy I want the actual file…

souser
- 197
- 2
- 3
- 10
3
votes
1 answer
How do I grant users permission to create hard links (using GPO or registry entries)?
I'm working in an AD domain with one DC running Windows Server 2012 R2, and clients running mostly Windows 7 Professional.
I need to be able to grant certain user groups the permission to create hard links, hopefully via mklink /H SINK SOURCE.
I've…

snoopy91
- 243
- 3
- 10
3
votes
2 answers
Should /etc/localtime be a symlink or a file?
When I first install a RHEL system, I select a timezone. Examining the /etc/localtime, I see that this is a copy of one of the files from /usr/share/zoneinfo.
However, when I look into changing the timezone on a system, I see a split between copying…

Tim Timmerman
- 49
- 1
- 3