Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I just installed Lion on my machine and I'm starting fresh. I thought I'd manually install an AMP stack on my machine. Also, I'm using my ~/Sites folder as my web root. However, now that everytime I update a file I'm being asked for my system password.

I think it's a permission problem except I'm not entirely sure what to do. Can someone help?

share|improve this question

migrated from stackoverflow.com Aug 10 '11 at 7:08

This question came from our site for professional and enthusiast programmers.

    
This may also be better served on serverfault. –  manyxcxi Aug 9 '11 at 16:15
add comment

2 Answers

You can do a couple of things, but the basics will be chmod and chown. Chmod changes the permissions of the file or folder to allow rights on a user, group, and world access. Chown changes who owns the file or folder.

From the command line you could use chown -R to change ownership recursively for all files and subfiles to your username. Or, better yet, you could change the file permissions similarly using chmod -R.

In octal notation doing something like chmod -R 777 ~/Sites will make it readable, writeable, and executable by everyone on the machine (not necessarily the best way to go). chmod -R 755 would make it writable, executable to the owner and readable by everyone else. There's lots of examples and ways to do this.

You may want to look into users and groups to avoid making it all world executable, and not annoying you everytime you want to modify a file.

share|improve this answer
add comment

Try setting the folder permissions to 777 from the console:

chmod 777 <directory path>
share|improve this answer
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.