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.

After installing Nginx on FreeBSD 8.3 from ports, the configuration files in /usr/local/etc/nginx all have read-only permissions. Is there a reason for this? Am I not supposed to edit them? Or can I safely ignore that fact and modify them anyway?

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

I don't use nginx (and therefore don't use the port), but looking at the port it does the "standard" thing of copying the dist files over as the "live" files for a fresh install.
The maintainer specified the -p flag in doing this, which preserves the file mode, so the resulting "live" files are read-only.

There is no reason you can't make these files writeable by a specific user/group, or just edit them as root and ignore the lack of write permissions.


If you think this behavior is undesirable you should file a PR - it would be a pretty easy thing for the port maintainer to change.
Chances of getting it changed go up dramatically if you provide a patch (the offending file in the port is pkg-plist, and more information on how that file works can be found in The Porter's Handbook.)

share|improve this answer
    
That. Is awesome. Thanks! –  user168660 Apr 10 '13 at 14:57
add comment

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.