Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

In my Lion local web sharing folder, I noticed that I cannot change any of the files without typing in my password.

I also noticed that there's a folder called postgresql there.

I don't remember having these behaviours before with Snow Leopard, are these new changes that Lion OS brings?

share|improve this question
    
Does ls -lad ~/Sites/ start with drwxr-xr-x 5 yourname? If not, you can restore the default owner with sudo chown $USER ~/Sites/ or permissions with chmod 751 ~/Sites/. –  ؘؘؘؘ Sep 8 '12 at 12:34
    
Or do you mean /Library/WebServer/Documents/? –  ؘؘؘؘ Sep 8 '12 at 12:34
    
@Lri I mean /Library/WebServer/Documents/. Thank you for helping. –  Hope4You Sep 8 '12 at 13:16
    
I noticed that my Documents folder gives me read access only. Is this new since Lion? Also is the postgresql folder new since Lion? –  Hope4You Sep 8 '12 at 13:32

1 Answer 1

up vote 1 down vote accepted

The permissions of some folders did change to more restrictive on Lion. I don't know about 10.6, but /Library/WebServer/Documents/ is owned by root and has 751 permissions on 10.8 as well.

I don't have any postrgesql folder by default on 10.8, but 10.7 might have had one.

Files are normally meant to put be to ~/Sites/ and accessed from http://localhost/~username/. The URLs can be made shorter by adding virtual hosts.

You could change the owner back to yourself with sudo chown -R $USER /Library/WebServer/Documents/.

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.