Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 3 down vote accepted

ln creates hard links by default. Pass -s.

share|improve this answer

Your Answer

 
discard

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.