Questions tagged [symlink]

168 questions
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

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 central location and add a symlink. Something…
Jordi Kroon
  • 87
  • 13
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
2
votes
2 answers

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 use bind mount due the following…
gilbertasm
  • 95
  • 2
  • 13
2
votes
2 answers

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 /home/me/myWebDirectory myWebDirectory but…
2
votes
1 answer

delete empty file link

I accidently made a link and can't delete that: big:~# ls -al total 88 lrwxrwxrwx 1 root root 27 May 28 18:10 -> /etc/apache2/ssl/apache.pem drwx------ 8 root root 4096 May 29 01:45 . drwxr-xr-x 23 root root 4096 May 27 04:50 .. drwxr-xr-x …
Daniel W.
  • 1,609
  • 4
  • 26
  • 48
2
votes
1 answer

Can you make the /vz directory a symlink?

I have a OpenVZ VPS server with a 500GB hard drive and 240GB SSD. I'd like to have each VM's files stored on the SSD. Can I make their directory within /vz symlink to a directory on the SSD? There might be a better way to do this. If you know one,…
user1710563
  • 141
  • 5
2
votes
2 answers

Linux Shell - How to copy directory without symlink

I would like to get everything inside one directory. How can I copy entire directory (that originally contains files and symlinks) to a new directory that should contains all files but no symlink?? Thank you
Julio Fong
  • 201
  • 1
  • 3
  • 7
2
votes
2 answers

rsync invocation to replace symlinks pointing to source?

Currently I'm moving a big filesystem to a new server as the original fileserver is no longer able to handle the filesystem writes. To make this quick I made symlinks at the target filesystem pointing to the original…
bdbaddog
  • 121
  • 1
  • 3
2
votes
1 answer

Office 2010 documents via Windows 7 symlinks on network share very slow in comparison to network path access

Client: Windows 7 Premium, Office 2010 Pro Plus, both fully patched. Server: Samba 3.5.10 on CentOS6 (SELinux enabled), Shadow copies enabled. Link speed: 1MBps. As Windows 7 doesn't like me to use a network folder as a "Library" without making it…
Chris
  • 123
  • 1
  • 4
2
votes
0 answers

Permissions within Windows symlink to a Samba share

I have a Samba shared folder on an Ubuntu box which I can access from my Windows 7 PC and within which, as a non-administrator Windows user, can create and update files and folders. However, when I create a symlink in Windows to this folder using…
Tim Page
  • 21
  • 1
2
votes
2 answers

How to secure Apache for shared hosting environment? (chrooting, avoid symlinking...)

I'm having problems dealing with Apache configuration: the problem is that I want to limit each user to his own docroot (so, a chroot() would be what I'm looking for), but: Mod_chroot works only globally and not for each virtualhost: i have the…
2
votes
1 answer

Server symlink doesn't map in URL

I have a symlink in my main htdocs directory /home/www/example.com/htdocs: index.php cms (symlink) lrwxrwxrwx 1 apache myuser 32 May 22 15:33 cms -> /home/www/xyz-cms/https/cms/ However, when I visit my site at http://www.example.com/cms I get a…
kylex
  • 1,421
  • 5
  • 14
  • 18
2
votes
1 answer

What's the best way to atomically add files to a web directory?

So I have a strange question, but I'm working on a script to deploy a PHP codebase and want to see if something like this is possible: I have a directory that Apache uses as a DocumentRoot: /home/www/ We have a PHP app that must add several files…
mmattax
  • 1,304
  • 7
  • 19
  • 30
2
votes
1 answer

Are relative-path symlinks reliable on Rackspace Cloud Sites?

Rackspace's Cloud Sites have a lot of stupid limitations. For example, no SSH (in or out), no shell, no RSYNC, etc... (even through cron). Recently I learned that you can't reliably use symlinks in Cloud Sites. Apparently this is because the…
Jake Wilson
  • 8,814
  • 29
  • 97
  • 125