Questions tagged [symlink]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
48 views

After installing a brew formula, does it place a symlink in /usr/local or /usr/local/opt? [closed]

Just wondering, since I see links to the Cellar in both /usr/local/bin and in /usr/local/opt/. What is the difference in where brew places the symlinks? /usr/local/bin user@laptop bin % ls -alt ...
0
votes
0answers
19 views

Effective way of replicating data deduplication reparse point

Recently we enabled Windows Data Deduplication feature in all of our back-end database servers and it has be working extremely well in compressing the data storage. However, since one of our daily ...
0
votes
2answers
77 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?
1
vote
1answer
44 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. ...
0
votes
1answer
119 views

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,...
0
votes
1answer
525 views

Symlinks look like regular files on samba shares

Symlinks on my samba share aren't behaving the way I want them to – specifically, the links look like duplicate regular files to the client machine. This used to work (i.e. symlinks on the server ...
0
votes
0answers
86 views

Symbolic link set but not changes until reboot?

I wrote a deployment script and in final step I have following code: ln -sf /link/to/latest/release symlink/to/current; I try to set the symbolic link or update if it exist, theoretically it works ...
0
votes
0answers
104 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 ...
2
votes
1answer
87 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 ...
0
votes
0answers
42 views

linux shared folder for all users php not working mod_hive suexec

Feel free to educate me - I'm migrating from a windows server to a dedicated linux server with apache 2.4 and centos 6.10 ... all users on the server are actually ME, so this part is not a security ...
0
votes
1answer
695 views

how to use symlink with different “base” (nginx)

I have chroot environment with Apache and some website. Outside of the chroot I have nginx that forwards the requests to the Apache. However, there are some directories that I want nginx to serve ...
0
votes
1answer
34 views

share user folder with other users apache

Migrating from windows server (where this was unbelievably easy with virtual directories) to a linux server and have worked on this for weeks... I want to share a users folder contents with all other ...
0
votes
1answer
69 views

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 ...
2
votes
2answers
287 views

How to remove only delete permission about symlink from usual user on Windows

We have a program which makes temporary directory HT on %USERPROFILE%\AppData\Local\Tempand working on there, and delete the temporary directory when I quit the program. I want to make the program ...
0
votes
1answer
304 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 ...
0
votes
1answer
785 views

Linux symlink does not working after reboot

I have created on our Debian squeeze my own daemon from skeleton where is my application starting (+I add there some logging to my log file). I have put this file to /etc/init.d/ cp /home/ja /etc/...
0
votes
1answer
279 views

MySQL not finding database/tables through symlink

In my installation of MySQL the database files are located in ./var/lib/mysql. I wanted to move one of those databases to another drive, so I followed instructions to move one database to a different ...
0
votes
2answers
486 views

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 ...
0
votes
0answers
83 views

Moving a MySQL database to another device, even if dropped and recreated

I'm using symlinks to move some MySQL databases to another device with more space. All works fine until one of those DBs gets dropped and then re-created: the symlink is deleted in the process of ...
0
votes
0answers
95 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
1answer
45 views

Centralized logs folders with symlinks

I have a question about symlinks that I cant fullunderstand. I have next schema: Machine1: /opt/xxx/logs Machine2: /opt/xxx/logs Machine3: /opt/xxx/logs Machine4: /opt/xxx/logs Machine5: /opt/xxx/...
0
votes
1answer
98 views

ruby: symlink doesnt exist yet trying the command says it does?

I've borked something up somehow. On one of my servers, if I type ruby, I get the error bash: /opt/rh/rh-ruby23/root/usr/bin/ruby: No such file or directory which ruby gives: /usr/local/bin/ruby ...
1
vote
1answer
320 views

cp is too slow, same with rsync (I assume) - is there a way to share files in two locations?

I am using Docker and Docker cannot COPY symlinked files into the image. But the files that are symlinked are not in the 'build context'. So I was going to copy them into the build context with cp, ...
2
votes
1answer
93 views

Hard or soft link is more useful in Linux?

In small scale Linux infrastructure environment which link to the file is more helpful, hard or soft link? As a beginner in Linux administration, I have found that most Linux admins tend to use soft ...
0
votes
1answer
530 views

nginx + php-fpm chdir not working

I'm meeting a problem with getting my nginx and php-fpm working. I'm getting an error 504 when I try to access my application. I have a structure like this; data/mywebsite/ | |---revisions/ |...
1
vote
0answers
50 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 ...
-2
votes
1answer
129 views

How to make a symlink for MySQL?

Sorry guys for the silly question but I am really need of help. Running df -h I get /dev/vda1 40G 38G 0 100% / /dev/sda 99G 60M 94G 1% /mnt/volume-fra1-01 I tried to ...
6
votes
2answers
12k 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 -...
-1
votes
1answer
60 views

VPN connection fail DNS settings

I have a problem with DNS settings in Ubuntu 16.04. First I configure my VPN connection using .ovpn file with command: sudo openvpn vpn_config_file.ovpn The interface tun0 is up but it's not ...
0
votes
2answers
5k views

AWS - Symlink directory in EC2 to S3 bucket

I would like to create "infinite" directory in terms of storage in an EC2 instance. Is it possible to symlink directories to S3 bucket? I did not find any solution in the Internet, maybe somebody ...
0
votes
2answers
47 views

Is there a way to create a file that is the output of a command?

I have two files: foo.txt and bar.txt. I want a file named foobar.txt that is the content of both foo.txt followed by bar.txt. And if I change either file, I want foobar.txt to still output whatever ...
2
votes
2answers
2k views

rhel7, apache2.4 - 403 forbidden with symlink

I googling many many info about this, but none of the proposed solutions did not help me. What i have: clean rhel7 system clean apache 2.4 web dir: /var/www/domain.com/public_html symlink: /var/www/...
2
votes
1answer
2k views

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. ...
0
votes
1answer
508 views

php files(Symlink) are displaying as text

This is not same other question like "php file is displaying text or not executing". In my case, the php files are indeed working fine. However the files(symlink) to the php files are not working. ...
0
votes
1answer
490 views

Change the name of a symlink directory without breaking it?

I'm trying to go through the process of changing a symlink on ubuntu 14.04 LTS without breaking anything. Do I simply rename the folder and change the way the virtual hosts file points to the ...
0
votes
1answer
833 views

Nginx - redirecting all requests after a URL path to a PHP script

In our existing Apache setup, we have a .htaccess file in a folder which redirects all requests to a PHP handler. For example: www.example.com/gallery/user01/xyz.png For this URL request: The "/...
-2
votes
2answers
4k views

How to prevent a symlink from being removed?

I cannot seem to work out how to protect a symbolic symlink from being deleted/removed or overwritten. Any ideas?
2
votes
3answers
2k views

Can't apply SELinux file context to paths with symlinks

I have a solution that is being installed in an enterprise environment. The solution and its deployment guide are designed to installed on a RHEL7/CentOS7 server with SELinux enabled and components ...
1
vote
2answers
615 views

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 ...
0
votes
3answers
105 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
1answer
279 views

Nginx & PhpMyAdmin standard practices

I'm currently migrating a small dev server from Apache to Nginx and I'm wondering about the "standard" way to manage PhpMyAdmin : I've simply symlinked the phpmyadmin folder to my nginx site root ...
3
votes
1answer
1k views

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 ...
4
votes
1answer
2k views

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 ...
0
votes
1answer
475 views

Use .htaccess to redirect to a symlinked subdir of the web root?

I'm trying to use Envoyer.io to deploy my code and I'm running into some issues. This utility makes two folders, current and releases. current symlinks to latest release in the releases folder. So ...
1
vote
2answers
279 views

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 ...
0
votes
1answer
838 views

symlink to PHP file not handled as PHP

I have PHP5 installed on an Ubuntu 14.04 server and it works fine. I create a file called foo.php anywhere in the document tree and it gets passed to the PHP interpreter just as you'd expect. ...
-2
votes
1answer
498 views

Tomcat7 pointing to a symbolic link WAR [closed]

I have Tomcat7 running on a Linux server. Tomcat is pointing to a symbolic link WAR for my application. The link is pointing to the actual WAR. I am looking to upgrade the app. What I have done is ...
2
votes
2answers
981 views

Symlink in crontab, script not found [duplicate]

I'm running Debian testing and can't get a simple cron to run a symlinked PHP script. I've a php script in a subdirectory in my home folder /home/foobar/dir/script.php (which starts with the ...
1
vote
0answers
15 views

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:\...
1
vote
0answers
706 views

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 ...