Questions tagged [symlink]
The symlink tag has no usage guidance.
167
questions
1
vote
1
answer
31
views
virtual concatenation of two certificate files
mongod requires a certificateKeyFile that is a combination of a certificate and a private key.
certbot manages quarterly renewals of tls certificates that cannot be valid for more than 3 months. the ...
1
vote
1
answer
191
views
How can I set specific directory for different users in proftp?
Currently, when user A logs in proftp, he comes at his home directory /home/A, when user B logs in proftp, he comes at his home directory /home/B. I want to let user A come at /dir1 and let user B ...
0
votes
1
answer
896
views
dpkg-maintscript-helper: basename: Too many levels of symbolic links
I am having this error each time I run an apt-get command, I dont know what caused this but I tried every solution I found related to this but still no hope
root@vmi575272:/# sudo apt-get autoremove
...
0
votes
1
answer
146
views
Trying to install Wordpress locally by using docker where some folder symlinked to my git directory
Using this image with docker-compose.yml: https://hub.docker.com/_/wordpress
Everything done by the book and it works till I tried to symlinks some folders to my git repository.
This is the part of my ...
1
vote
0
answers
1k
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
1
answer
8k
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 ...
0
votes
1
answer
286
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 ...
1
vote
0
answers
258
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 ...
0
votes
0
answers
279
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 ...
0
votes
1
answer
244
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 ...
0
votes
1
answer
570
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 ...
1
vote
0
answers
781
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 ...
1
vote
1
answer
692
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/...
2
votes
1
answer
1k
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 ...
0
votes
0
answers
267
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 ...
0
votes
2
answers
870
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?
2
votes
1
answer
662
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
1k
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, ...
6
votes
1
answer
4k
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
0
answers
842
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
0
answers
642
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
1
answer
185
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
0
answers
114
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
1
answer
2k
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
1
answer
371
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 ...
1
vote
1
answer
707
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
2
answers
992
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
1
answer
570
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
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/...
0
votes
1
answer
1k
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 ...
1
vote
2
answers
1k
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
0
answers
224
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
0
answers
168
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
142
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
1
answer
197
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
...
2
votes
1
answer
630
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
1
answer
103
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
1
answer
776
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
0
answers
62
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
1
answer
204
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 ...
8
votes
2
answers
23k
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
1
answer
176
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
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 ...
0
votes
2
answers
135
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
2
answers
3k
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/...
3
votes
2
answers
10k
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
1
answer
601
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
2
answers
3k
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
1
answer
977
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
2
answers
7k
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?