Questions tagged [symlink]
166 questions
2
votes
3 answers
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 of a library and I'd like to do some cleanup work…
![](../../users/profiles/6306.webp)
maff
- 311
- 1
- 4
- 14
2
votes
1 answer
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 message.
Access forbidden!
You don't have permission…
![](../../users/profiles/18599.webp)
Rachel
- 203
- 1
- 2
- 6
1
vote
1 answer
How to mount with SAMBA and respect symlinks
I am mounting a directory, e.g., /home/docs/ from PCserver to PCclient using the SAMBA share in Linux. Both computers are in Linux (Ubuntu).
I perform sudo mount -f cifs with the necessary parameters, and everything works okay. The /home/docs/ from…
![](../../users/profiles/319596.webp)
loved.by.Jesus
- 271
- 2
- 8
1
vote
1 answer
Apache will not follow symlink without matching owner even with SymLinkIfOwnerMatch disabled?
I am transferring some hosting accounts from CentOS 6 with Apache 2.2 to CentOS 7 with Apache 2.4.34. Some of these accounts symlink to files through a directory symlink inside the DocumentRoot to files outside the DocumentRoot.
Like this:
root:root…
![](../../users/profiles/84521.webp)
jimp
- 638
- 3
- 11
- 20
1
vote
2 answers
rsync replace existing directory with a symlink
on server1: /dir1 is a symlink to dir2
on server2: /dir1 is a directory with its own content
I want to use rsync to make server2:/dir1 be a symlink to dir2, just as it is on server1.
If I do this on server1:
rsync -azvs --delete /dir1…
![](../../users/profiles/83987.webp)
dlo
- 451
- 1
- 4
- 14
1
vote
0 answers
mysql wont connect to symlinked socket when given full path, but connects with relative
So I'm super confused.
I have a test build that started breaking because a mysql socket was attempting to be created in such a deeply nested folder that its file path name exceeded the 108 character limit. So my thought was to put the socket in the…
![](../../users/profiles/117612.webp)
Rooster
- 485
- 2
- 7
- 21
1
vote
2 answers
Symlinking config files
Our server has various services with it's own config file. Nginx, Dovecot, Postfix...
All these config files are located in their own /etc/{service} directory.
I'm trying to move these files to a central location and add a symlink.
Something…
![](../../users/profiles/150243.webp)
Jordi Kroon
- 77
- 12
1
vote
2 answers
Symbolic links changed to SYMLINK on Windows Server
We have been using symbolic links extensively to archive historic files.
An automatic script would create symbolic links regularly based on certain criteria. Users don't experience inconvenience as the soft links can be opened as regular files,…
![](../../users/profiles/226827.webp)
carous3l
- 57
- 1
- 1
- 4
1
vote
0 answers
Which settings apply to a folder connected via junction?
Which folder permission and folder sharing settings apply to a a folder "connected" within another folder via junction, or symlink?
Lets assume we have two folders residing in drive D:. D:\Main D:\Other. I create a junction in D:\Main\jOther which…
![](../../users/profiles/221860.webp)
Kristof Tak
- 257
- 1
- 3
- 14
1
vote
0 answers
Enabling the URL of a folder connected via symlink
Scenario Description:
In my workplace we have a DomainController and use TerminalServices.
There are different types of servers running on the DC (e.g. webapi , app). The dev guys developing the API want to access a folder (i.e. app\images) through…
![](../../users/profiles/221860.webp)
Kristof Tak
- 257
- 1
- 3
- 14
1
vote
2 answers
Is it safe to symlink complete /var directory
Is it safe to move complete /var directory in separate partition and create symlink to it?
mv /var /mnt/storage
ln -s /mnt/storage /var
Distribution is Google Cloud CentOS Image
I do not want to use bind mount due the following…
![](../../users/profiles/210561.webp)
gilbertasm
- 85
- 2
- 13
1
vote
2 answers
apache wont follow symlinks | 403 permission denied
im using Ubuntu 14.04, and got problem with apache configuration:
i created a Symlink in /var/www/html (the apache DocRoot since Ubuntu 14.04) torwards /home/me/myWebDirectory
cd /var/www/html
ln -s /home/me/myWebDirectory myWebDirectory
but…
![](../../users/profiles/219623.webp)
LauDem
- 123
- 1
- 5
1
vote
1 answer
mysql load_file() function always return null for symbolic link
i have installed new database server on ubuntu
mysql version is 5.5.35
im trying to execute select load_file('/usr/home/aaa.com/medya_data/ver.txt')
and im sure ver.txt file is exist but medya_data folder mapped as symbolic link
if i try without…
![](../../users/profiles/81357.webp)
Mustafa
- 11
- 2
1
vote
1 answer
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 an orphaned location). The failure of the link is…
![](../../users/profiles/104139.webp)
colemik
- 749
- 1
- 12
- 24
1
vote
3 answers
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, however, I don't want these changes to get lost when…
![](../../users/profiles/162394.webp)
Yuval
- 121
- 3