Questions tagged [symbolic-link]
The symbolic-link tag has no usage guidance.
221
questions
0
votes
1
answer
62
views
Symbolic link of all files in a folder to an existing folder
How can I create a symbolic link from the folder or files in the folder to a folder that already contains files?
so that when a new file is added to the original folder it is reflected in the other ...
2
votes
0
answers
400
views
broken symlinks in nginx modules-enabled, /usr/lib/nginx and /usr/share/nginx/modules-available missing
For almost two years now I have been running a simple nginx reverse proxy on a Debian instance to serve dockerized services. In case any configuration changes go wrong, I am also using git version ...
0
votes
0
answers
129
views
Windows 10 symbolic links: Finer grained than developer mode?
We have a number of external developers who are not administrators on their Windows 10 machines. In a new project, we have a git repository with lots of symbolic links which we would like to actually ...
1
vote
0
answers
5k
views
NGINX file server with symlinks
This is a bit of a beginner question, but I'm trying to make Nginx serve a static file server that contains symlinked folders. Eg, the root directory might contain directories A and B, which each ...
1
vote
0
answers
375
views
Subdomains as subfolders and symlinks
I have a main wordpress and several subdomains. They were created in the usual way - I added subdomains to the panels (Fastpanel), and in the subdomain folders I added symbolic links to the files of ...
3
votes
3
answers
2k
views
How can I quickly test a path in bash to determine if any segment of it is a symlink?
If I have a path like this with a symlink:
/this/one/two/three
Is there is a quick one-liner for determining if one more more segments in the path is a symlink? For example, I'd want to detect if this,...
2
votes
1
answer
676
views
Apache: Don't log errors for certain non-existing files (regular file or symbolic link)
I want to prevent Apache from logging "File does not exist" errors for certain irrelevant non-existing files that are often requested, such as "apple-touch-icon-120x120.png". These ...
0
votes
1
answer
1k
views
Symbolic Link in Windows not behaving as expected
I have kind of a weird problem with the symbolic Links in Windows:
First, a little background to this whole situation:
We have a Domain Controller, where most of our data is stored, but we have two ...
0
votes
1
answer
224
views
Can I give access to users from outside of the network via link which will need to be downloaded in limited time in linux FTP server?
I am new in Ubuntu Linux. Here is my task,
Set up an FTP server.
Add users to this FTP server and create new directories in their home directories.
Give access to users from outside of network via a ...
1
vote
1
answer
412
views
Symlink with execution permission and... arguments? [closed]
I am using Linux Mint 20.1, which is based on Ubuntu 20.04. My kernel is 5.4.0-60-generic. All the commands below are runned in GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)
I have seen ...
0
votes
0
answers
751
views
Git ignore is ignoring sym.llinks?
In a laravel project I have a storage folder and inside it, I have an app folder (normally). So the full path is: /var/www/html/myproject/storage/app
Now I have a file server and I wish to serve the ...
10
votes
4
answers
15k
views
How to configure NFS to resolve symbolic links on the server side?
My beard is solid grey now, and I long recall using NFS for all these decades and here I cite the original RFC that gives us the basis for the NFS we have today RFC1094. Of course, three decades and ...
0
votes
2
answers
1k
views
Can you create a symlink for a file to multiple targets in bash? [closed]
I am looking to create a symlink for a file (E.g., /var/log/cron/cron.log) which will have a symlink to both /proc/1/fd/2 and /proc/1/fd/1.
Is this possible?
0
votes
0
answers
56
views
Working Nginx-PHP-FPM setup; then switched from RAID1 to RAID10, and now setup doesn't work
Converted a RAID 1 volume to RAID10. The file system appears to be exactly the same on the new RAID 10 volume as the previous RAID 1 volume.
For some reason PHP-FPM won't take a symbolic link to ...
2
votes
1
answer
1k
views
Why am I getting different results using mklink and New-Item -ItemType SymbolicLink?
So I'm trying to create links with relative path with PowerShell, but I don't know why I'm getting differents results, I'm quite new with the command line in Windows, sorry if this is a dumb question. ...
1
vote
1
answer
822
views
Other virtual drive formats for linking to physical disk device or to archive content
It is known that you can link to physical disk device through VMDK virtual drive format. It works on Mac*, Lin*, Win* with VirtualBox or VMware ( here solution with VBoxManage internalcommands ...
1
vote
1
answer
8k
views
apache: "Symbolic link not allowed or link target not accessible" on another filesystem only
I have a a file in remote directory which is moulted to apache DocRoot tree. When I try to download a file (not write) from that dir I get 403:
AH00037: Symbolic link not allowed or link target not ...
0
votes
1
answer
601
views
Debugging how symbolic link is getting broken in ubuntu?
I have a symbolic link of the form
ubuntu@platform1:~$ ls -lrt
total 28
drwxr-xr-x 4 ubuntu ubuntu 4096 Mar 2 15:02 deploy
lrwxrwxrwx 1 ubuntu ubuntu 14 May 25 18:27 logs -> /var/log/arkin
...
2
votes
3
answers
558
views
Calculate folder size without counting links
I need to calculate the size of "real" files created under a folder (and its sub-folders) on an NTFS drive, where "real" is all files that are not present because of hard/soft-links, junctions etc.
...
0
votes
0
answers
1k
views
Why does mod_rewrite require FollowSymLinks or SymLinksIfOwnerMatch?
I would like to disable FollowSymLinks and SymLinksIfOwnerMatch options, but at the same time I do want to use mod_rewrite.
I checked the source code of apache 2.4 and I found there is only a ...
13
votes
1
answer
21k
views
In Windows, is it possible to share a symlink as a network share?
Summary
Is it possible to share a symlink to a network location as a Network Share in Windows? E.G:
D:\folder\Shared\foo on \\server is shared as \\server\foo, where D:\folder\Shared\foo is actually ...
2
votes
1
answer
248
views
mklink folders from Windows server to AIX
We need to make a softlink to other server on AIX and when doing accordingly to guide in cmd occurs an error
mklink /D \\10.0.0.10\folder C:\folder
and it returns - The request is not supported
...
2
votes
2
answers
1k
views
MongoDB won't run if dbPath is symlinked
I have installed MongoDB 4.0.4 from the official repo. I followed these instructions. My OS is CentOS 7 and SELinux is in enforcing mode. If I use a dbPath value which is a symlink to another ...
1
vote
0
answers
47
views
Automated Directory symlink
I have a situation with Autodesk Revit that Autodesk recommends "fixing" with SymLinks as outlined here. However, as mentioned in that thread, this manual approach falls apart when you have hundreds ...
1
vote
0
answers
3k
views
Sharing symbolic links on networked drive - is not accessible due permissions
We have several windows servers 2012 R2.
And a file server provided by a third party, which provides a volume available thru CIFS/SMB.
I want create symbolic folder on win server to "file server" and ...
0
votes
1
answer
624
views
how to create fake symlinks when copying to CIFS share with rsync
So I have to backup lot's of data to a company server. And it creates a fair share of symbolic links. I'm on a Linux Machine, and the backup server is accessed via CIFS, which does not support ...
2
votes
0
answers
1k
views
Unable to create symbolic links on samba share when using SMB 2.0
Note that I initially found the following problem on a Synology DiskStation. To make sure I wasn't reporting a Synology-specific bug, I reproduced it on a Linux Server. My question below is based on ...
0
votes
0
answers
192
views
Prevent local WordPress from deleting Plugins via Symlink
I run a local web server for developing plugins. My plugins reside in git repositories and I create symlinks to link them to the WordPress installations plugin folder.
Sometimes it happens that I ...
0
votes
1
answer
786
views
Issues with deploying PHP application by switching symlink
I'm seeing errors like these in the Apache error log immediately after deployment and there are HTTP 500 errors:
PHP Fatal error: Uncaught RuntimeException: Failed to write cache file "/var/www/...
0
votes
3
answers
347
views
have 2 folders on different disks behave as if they were 1 folder
I have a server with two 1TB hard drives. I have an uploads folder on /disk2/uploads, That folder has filled up the entire hard drive. The other disk is basically empty. I want to have a spill ...
0
votes
1
answer
290
views
linux redhat + how to overwrite the existing link quiet mode
is it possible to overwrite the exiting link
Without to get fail/error with standard output 1 ?
( like mkdir -p )
ls -ltr /hadoop
lrwxrwxrwx. 1 root root 12 Jun 25 12:51 /hadoop -> /data/...
0
votes
0
answers
793
views
Should I use symbolic links or hard links (and junctions) for web server?
I understand the differences between hard links (or junctions/soft links for directories) and symbolic links.
Are there performance/security benefits for one or the other for web server usage?
5
votes
1
answer
23k
views
fail to enable mysqld service but after reboot the service is running on centos 7
After I installed, I run systemctl enable mysqld.service.
Then, the output is:
Failed to execute operation: Too many levels of symbolic links
After this error, I reboot my service, and I check the ...
0
votes
1
answer
342
views
Powershell - checking if a file is a Linux symbolic link
I'm migrating a NetApp NTFS based filesystem. It is mounted on both Windows and Linux boxes. My validation script in Powershell is walking the file system and doing various checks that the source and ...
0
votes
1
answer
3k
views
SQL Server support for symbolic links
Does SQL Server 2008+ support symbolically linked directories when making backups and restoring DBs?
My own test made use of a mapped network drive, which I made it appear by symbolically linking it ...
13
votes
2
answers
66k
views
How to remove 'update-alternatives' links on Linux
Sorry for asking this, but I cannot resolve such a simple issue for a few hours:
I made a typo mistake in
update-alternatives --install /usr/lib64/R/lib/libRblapack.so libRblapack.so /usr/lib64/R/...
1
vote
0
answers
72
views
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 ...
1
vote
2
answers
800
views
How can I make Apache 2.4 recognize a .htaccess that is a symbolic link?
$ ls -l .htaccess
lrwxrwxrwx 1 suseika suseika 74 Oct 1 03:35 .htaccess -> /home/suseika/some/path/to/the/actual/.htaccess
Apache just ignores such .htaccess. If I create a file instead of a ...
4
votes
0
answers
940
views
Denied permission of a symbolic link to a shared folder
I use Microsoft Remote Desktop to connect my Mac to Microsoft Azure VM. I follow this thread (apple.stackexchange.com/a/140506/20747) to share a Mac folder named Music with the VM. It works fine, here ...
5
votes
1
answer
11k
views
mklink errors out with "The device does not support symbolic links"
I need to store symbolic links in a network folder. Trying this:
mklink \edgeserver\public\test.pdf \fileserver1\files\test.pdf
and getting an error:
The device does not support symbolic links
...
8
votes
2
answers
27k
views
Remove symlink with Ansible
I have a dead symlink named dead_symlink under the directory /usr/local/bin
When Ansible check the file it reports it exists
- stat: "path=/usr/local/bin/dead_symlink"
register: dead_symlink_bin
-...
0
votes
1
answer
551
views
Using rsync to consolidate symlinks into directories
I have a large amount of data to copy to a new server. On the current server there are a number of symlinked directories which I would like transformed to real directories on the new server.
For ...
0
votes
1
answer
790
views
rsync -a and -L conflict?
I'm working on multiple servers and need to copy a large amount of data from one (production) to another (staging). The source server (production) has a NAS for shared files, that are accessed via ...
4
votes
2
answers
3k
views
Why won't apache allow symbolic links, with SELinux?
I have a simple scenario: I want to symlink /home/leonard/apache/sandbox/markdown to /home/leonard/github/markdown-editor, so that the markdown-editor can be viewed from my browser.
I setup the link ...
0
votes
1
answer
716
views
How to avoid symlinked files shared by Samba from looking like duplicate files (different inode numbers)?
I often have directories on a Linux server where symbolic links are used for alternative names for subdirectories or files (e.g. maintaining a "latest" symbolic link to a directory with the latest ...
4
votes
0
answers
2k
views
How to allow a Windows Client to follow a Remote Symbolic Link Transparently
Here's the scenario.
Client - Windows 7 workstation
ServerA - Windows 2008 file server
ServerB - Windows 2008 file server
On ServerA:
mklink /D c:\Share\Link \\ServerB\Share\Dest
That works great....
0
votes
3
answers
167
views
Identical directories on Linux file system are not symlinks. What else they could be?
I found two directories on some of my systems which are completely the same. All subdirectories and all files are the same. When I delete a file in one directory it disappears in other too. This would ...
0
votes
1
answer
36
views
the actual link permissions aren't used for anything - What about Ownership?
After months of intermittent attempts to discover what was causing these Forbidden errors I've discovered evidence that strongly suggests Apache2 uses the actual link's ownership and group.
I have a ...
1
vote
1
answer
187
views
Determine volume location by understanding Windows symbolic link name
I need to figure out the location pointed to by a Windows symbolic link in order to troubleshoot something wrong with the folder or files located there. It's of the form: C:?\Volume{5c286810-f966-......
1
vote
1
answer
325
views
Can I make "static redirects" using symlinks in Apache?
I'm overhauling a site to use a new URL structure, but don't want the old URLs to 404, instead redirect to the new content.
To complicate things, this is on a shared host where .htaccess is the only ...