Questions tagged [symlink]

The tag has no usage guidance.

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

Filesystem mounted with sshfs throws error inside of docker when creating a symlink

What actual is I have a server(EX42) and a storage box (BX21) both hosted at Hetzner. On the server runs a peertube instance and I want to save the data on the storage box. I installed sshfs on my ...
user avatar
  • 101
1 vote
0 answers
1k views

Why doesnt creating a sym link from python to python 3 work?

My goal is to make sure that python refers to python3 in my mac terminal. What i have tried so far are the following two attempts 1. Adding an alias in .zshrc alias python=python3 after re sourcing ...
user avatar
0 votes
0 answers
89 views

Nginx make symlinks in autoindex link to their files but retain their name

I wanted a way for me to easily just rsync a directory up to my server and have a 'for short' way to download a file. Aka d/foo1 > ../download/very-long-file-name.zip I want auto index to retain ...
user avatar
0 votes
1 answer
87 views

How can I search for symlinks that point to other symlinks? [closed]

I have morass of chained symlinks like this scattered around: A (symlink) -> B (symlink) -> C (file) Some may even involve longer chains, I'm not sure yet. When manually examining a single file ...
user avatar
1 vote
0 answers
94 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 ...
user avatar
0 votes
0 answers
106 views

Nginx configure location rewrite for all subfolders

This question follows on in many ways from a previous one I had asked - and ended up answering myself. A brief summary of the problem I describe there and my solution to it I need to perform ...
user avatar
  • 173
0 votes
1 answer
68 views

Two directories share storage without symbolic link

I am in a pickle. I have a server (physicals machine) that has a link between a directory and a partition. I don't see a symbolic link. The problem is that the root partition shows 0% space. Even if I ...
user avatar
  • 121
0 votes
0 answers
32 views

Could someone guide me through the use of symlinks in nginx for php modules?

so I'm running an ubuntu 20.04 server, with Nginx on it. After a difficult week, I managed to make it run normally, including php through php-fpm. My problem is that I don't want hundreds of folders ...
user avatar
0 votes
1 answer
294 views

Point symlink to external URL

Not sure if this is possible at all, but maybe there's another way to go about this that will get the same result. The old situation I'm running a LAMP server with CentOS 6. This server hosts a LOT of ...
user avatar
  • 119
1 vote
0 answers
507 views

vsftpd won't allow user to follow symlinks and to write in the destination folder

Related to the questions : How to allow a vsftpd to write to a folder other than default /files? (The answers are not what I need) and Allow local users to access /var/www folder in vsftpd (I don't ...
user avatar
0 votes
1 answer
276 views

How do i create Symlink to /var/log/myapp to another mount?

I am not very familiar with unix terminologies but I have a requirement where I have installed Gitlab on one of my RHEL server. By default the installation and log goes to /var/opt/gitlaband /var/log/...
user avatar
0 votes
0 answers
651 views

How to create .zip archive containing preserved symlinks (shortcuts) in Windows (CLI)

How can I create a .zip compressed archive in Windows from the command-line that preserves symlinks? I'm trying to create .zip file in PowerShell that includes a relative symlink from one file to ...
user avatar
0 votes
0 answers
56 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 ...
user avatar
  • 984
0 votes
2 answers
602 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?
user avatar
  • 147
2 votes
1 answer
450 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. ...
user avatar
1 vote
1 answer
787 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, ...
user avatar
2 votes
1 answer
3k 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 ...
user avatar
0 votes
0 answers
505 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 ...
user avatar
0 votes
0 answers
470 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 ...
user avatar
2 votes
1 answer
154 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 ...
user avatar
0 votes
0 answers
105 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 ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
  • 776
0 votes
1 answer
249 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 ...
user avatar
1 vote
1 answer
397 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 ...
user avatar
  • 638
2 votes
2 answers
865 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 ...
user avatar
  • 123
0 votes
1 answer
495 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 ...
user avatar
  • 101
0 votes
1 answer
2k 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/...
user avatar
  • 1
0 votes
1 answer
776 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 ...
user avatar
1 vote
2 answers
949 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 ...
user avatar
  • 451
0 votes
0 answers
171 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 ...
user avatar
  • 125
0 votes
0 answers
141 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 ...
user avatar
  • 101
0 votes
1 answer
112 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/...
user avatar
0 votes
1 answer
137 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 ...
user avatar
  • 125
2 votes
1 answer
526 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, ...
user avatar
2 votes
1 answer
102 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 ...
user avatar
0 votes
1 answer
734 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/ |...
user avatar
1 vote
0 answers
60 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 ...
user avatar
  • 485
-2 votes
1 answer
180 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 ...
user avatar
  • 1
8 votes
2 answers
20k 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 -...
user avatar
  • 339
-1 votes
1 answer
147 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 ...
user avatar
0 votes
2 answers
7k 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 ...
user avatar
0 votes
2 answers
84 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 ...
user avatar
2 votes
2 answers
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/...
user avatar
  • 19
3 votes
2 answers
8k 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. ...
user avatar
  • 187
0 votes
1 answer
576 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. ...
user avatar
  • 85
0 votes
2 answers
2k 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 ...
user avatar
0 votes
1 answer
911 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 "/...
user avatar
  • 121
-2 votes
2 answers
6k 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?
user avatar
  • 677
2 votes
3 answers
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 ...
user avatar
  • 23
1 vote
2 answers
1k 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 ...
user avatar