Skip to main content

Questions tagged [symlink]

The tag has no usage guidance.

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

Invalid Command 'PerlOptions', perhaps misspelled or defined by a module not included in the server configuration

I have very low experience with Linux, and I'm trying to install OCS Inventory Server on an Devian server. But when I created a symlink of a file that requires ModPerl to run properly, and restart the ...
Chloe Ophelia Watzko's user avatar
0 votes
0 answers
31 views

Symlinks to /dev/ttyACM* behave differently than /dev/ttyACM* itself

I have a bunch of devices (about 20) connected to a usb hub on a remote server. These are dev ESP32 boards built into some prototype devices. The devices are tested on site (a small factory) during ...
Wojciech's user avatar
0 votes
0 answers
62 views

How to follow Linux (minshall french) symlinks in windows

I have a CIFS drive mounted in linux and Windows with the following, respectively, sudo mount -t cifs -o mfsymlinks,cred=/home/user/.cifs_user //server/folder /mnt/test net use M: \\server\folder /p:...
Tom's user avatar
  • 101
0 votes
0 answers
53 views

Nginx location block for symlink?

Is it possible to create a location block in Nginx to restrict access to a symlink? We're using the link to access phpmyadmin, which we'd like to restrict access to. But this doesn't work: location ^~ ...
jamminjames's user avatar
0 votes
1 answer
77 views

Rsync creating infinite nested directories

To be truthful, I don't really know if this is caused by symlinks or rsync but I've stopped using symlinks and migrated over to using rsync months ago. So I guess this is just to be sure %100. This is ...
Abdul Sadik Yalcin's user avatar
1 vote
1 answer
91 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 ...
grenade's user avatar
  • 322
1 vote
2 answers
2k 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 ...
peter's user avatar
  • 123
0 votes
1 answer
2k 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 ...
Neji Soltani's user avatar
0 votes
1 answer
254 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 ...
Anatoly's user avatar
  • 152
1 vote
0 answers
4k 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 ...
ak0000's user avatar
  • 111
2 votes
1 answer
14k 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 ...
Nicola Pedretti's user avatar
0 votes
1 answer
567 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 ...
Displayname71's user avatar
1 vote
0 answers
369 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 ...
Sergey Pervushin's user avatar
0 votes
0 answers
448 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 ...
DroidOS's user avatar
  • 173
0 votes
1 answer
330 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 ...
matisa's user avatar
  • 131
0 votes
1 answer
874 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 ...
Albert's user avatar
  • 119
1 vote
0 answers
1k 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 ...
Alain Reve's user avatar
1 vote
1 answer
1k 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/...
mikita agrawal's user avatar
2 votes
1 answer
3k 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 ...
Michael Altfield's user avatar
0 votes
0 answers
695 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 ...
Bert's user avatar
  • 1,096
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?
leeman24's user avatar
  • 147
2 votes
1 answer
977 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. ...
Ariel JGS's user avatar
1 vote
1 answer
2k 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, ...
loved.by.Jesus's user avatar
6 votes
1 answer
6k 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 ...
Justin Goeres's user avatar
0 votes
0 answers
1k 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 ...
samius polis's user avatar
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 ...
Jenicek's user avatar
2 votes
1 answer
241 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 ...
Konstantin B.'s user avatar
0 votes
0 answers
116 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 ...
KSechrist's user avatar
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 ...
Nick's user avatar
  • 882
0 votes
1 answer
429 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 ...
KSechrist's user avatar
1 vote
1 answer
1k 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 ...
jimp's user avatar
  • 648
2 votes
2 answers
1k 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 ...
QuietJoon's user avatar
  • 123
0 votes
1 answer
623 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 ...
dmeu's 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/...
Roman's user avatar
  • 1
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 ...
Altimus Prime's user avatar
2 votes
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 ...
dlo's user avatar
  • 471
0 votes
0 answers
284 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 ...
frnhr's user avatar
  • 125
0 votes
0 answers
190 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 ...
xxtesaxx's user avatar
  • 101
0 votes
1 answer
175 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/...
user1422434's user avatar
0 votes
1 answer
244 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 ...
jemminger's user avatar
  • 125
2 votes
1 answer
748 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, ...
Alexander Mills's user avatar
2 votes
1 answer
109 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 ...
Chandan Hegde's user avatar
0 votes
1 answer
862 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/ |...
Martinouh's user avatar
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 ...
Rooster's user avatar
  • 515
-2 votes
1 answer
209 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 ...
Diego's user avatar
  • 1
8 votes
2 answers
26k 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 -...
tvl's user avatar
  • 369
-1 votes
1 answer
211 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 ...
Adrian Orzoi's user avatar
0 votes
2 answers
8k 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 ...
user350413's user avatar
0 votes
2 answers
188 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 ...
Jason Thompson's user avatar
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/...
Phantom's user avatar
  • 19