Questions tagged [symlink]

166 questions
3
votes
1 answer

How do I symlink one directory to a chrooted (jailed) directory?

'm trying to create a folder (directory) for a jailed user on my server that will allow him to access another folder outside of his jail. I'm trying to do this with symlink but all it does is create a file, instead of a folder. He's using FTP and I…
user183479
  • 31
  • 2
3
votes
2 answers

Security of symlink to directory outside webroot set to 777?

I have a few websites that use the same cached weather reports so I wanted them all in the same folder. It seemed the most logical way to do this would be to but this folder outside of the webroot. It also seemed the easiest way to access this new…
3
votes
1 answer

How do I rearange a file tree and then export it over NFS?

I've got a backup server that stores incremental backups in a tree like this: /backups hourly.0 server 1 server 2 hourly.1 server 1 server 2 hourly.2 server 1 server 2 daily.0 server 1 …
Nick
  • 4,433
  • 29
  • 67
  • 95
3
votes
1 answer

How to find any symbolic links that point outside a given folder tree?

I have a bunch of folders/files that are 10+ levels deep. How can I find any symbolic links that point outside this folder tree? I tried find -type l but this returns all soft links... even those whose destination is with in the folder…
nonot1
  • 1,069
  • 1
  • 12
  • 16
3
votes
1 answer

How to increase max symlink limit in RHEL

I am running into the following Linux error: Too many levels of symbolic links. This seems to be caused by the system limit of 8 maximum link-chain size, and I'm looking for a way to increase this limit. Some background: I am writing a system which…
Yonatan
  • 253
  • 1
  • 4
  • 9
3
votes
2 answers

Is there a Linux FTP server that can resolve symbolic links when users are jailed?

I'm currently sing ProFTPd with mount points to "emulate" dir sym links. However, the problem is, what to do when you have file symlinks? I could hard link them, but this means replacing all of my symlinks, which is a giant PITA. So, is there a…
Nick Bolton
  • 5,016
  • 12
  • 51
  • 62
3
votes
3 answers

Why won't apache load a symlinked file from conf.d?

I have an apache configuration file which works fine when it's placed directly in /etc/httpd/conf.d/foo.conf. However, when I move the same file somewhere else (for example, move it to /tmp/foo.conf) and then create a symlink with ln -s…
kdt
  • 1,360
  • 3
  • 22
  • 34
2
votes
1 answer

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. Here are some results I…
Ariel JGS
  • 23
  • 2
2
votes
1 answer

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 But vice versa mklink /D C:\folder…
2
votes
2 answers

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 generate its temporary diretory not on Temp but SSD…
QuietJoon
  • 123
  • 4
2
votes
1 answer

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, but that's really slow. Is there some way to share…
2
votes
1 answer

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 links over hard link. Even though the link may be…
2
votes
2 answers

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/domain.com/publik_html/src => /home/user/src in…
Phantom
  • 19
  • 3
2
votes
3 answers

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 being installed to locations according to the…
prcjac
  • 23
  • 1
  • 6
2
votes
2 answers

Symlink in crontab, script not found

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 following shebang #!/usr/bin/env php). I've created a…
Niemand
  • 31
  • 4
1 2
3
11 12