Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [symlink]

The tag has no usage guidance.

2
votes
2answers
29 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
0answers
10 views

Apache httpd 2.4 does not Follow new Symlink

Please note that this is not a duplicate of - e.g. - this question. I had a directory listing like this: $ ls -l myprog* lrwxrwxrwx [-- cut --] myprog.php -> myprog.php -rw-r--r-- [-- cut --] ...
0
votes
1answer
47 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
73 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
48 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
165 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
47 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
31 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
24 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
48 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 ...
0
votes
1answer
129 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
69 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
238 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
43 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
61 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 ...
4
votes
2answers
6k 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
52 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
3k 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
44 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
1k 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/...
0
votes
1answer
637 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
369 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
359 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
714 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
2k 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
1k 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
371 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
96 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
234 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
921 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
289 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
166 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 ...
-1
votes
1answer
589 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
319 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
625 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
580 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 ...
3
votes
2answers
4k views

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

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

Web server directory structure with additional volume for media (in Amazon EC2)

I'm re-building my server (LAMP) structure. I have now only one root volume that includes all data. Now i'm adding (EBS volume) for userdata like media etc. so i can just backup that volume and not ...
-2
votes
1answer
447 views

How can I copy files by creating symlinks?

I want to traverse a filesystem and copy parts of it to another filesystem by creating symlinks instead of copying anything. rsync would be ideal if it had something like a --local-copy-via-symlink ...
0
votes
1answer
104 views

Process can't see recently created symlink on NFS

I have a small amount of old ubuntu desktops connected by a switch acting as a mini test cluster. The workers take commands from a master node via the SLURM queue manager. They share a data mount and ...
3
votes
2answers
809 views

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 ...
3
votes
1answer
427 views

using /bin/bash in a chroot environment - symlink or mount

A user connects via ssh. The user is also chroot-ed to their home directory. The goal is security. Since the user is chroot-ed, when they login /bin/bash is not found. Obviously the user needs ...
0
votes
1answer
91 views

How to access original files from before a symlink gets updated, which have since been moved to another dir

We have a website and our deployment process goes somewhat like the following (with lots of irrelevant steps excluded) echo "Remove previous, if it exists, we don't need that anymore" rm -rf /home/[...
0
votes
2answers
7k views

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

If a web root directory has a simlink that points to a folder one-level up, does that pose a security risk?

Assuming a Linux/Unix system. Not asking about any particular server software, just wondering in general. I want to use this to include javascript libraries or things like that in multiple sites or ...
0
votes
1answer
1k views

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 ...
1
vote
1answer
194 views

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