Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I try and create a link without sudo in /etc/apache2/sites-enabled it fails with a permission denied.

When I try and do it with sudo a file is created but it is not a link.

Any ideas?

The exact command I am running from sites-enabled is ln ../sites-available/newsite newsite

The file I am linking to is owned by me.

share|improve this question
up vote 3 down vote accepted

ln creates hard links by default. Pass -s.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.