OSX equivalent to sudo chgrp -R www-data
I normally do
sudo chgrp -R www-data <directory>
on Ubuntu to set a folder writable by the Apache process. What’s the Mac OS X equivalent for www-data?
On Ubuntu you use “www-data” because that is the user the Apache process runs as. You can identify the user Apache will use by checking the config file. On my Mac, it looks like this:
$ cat /etc/apache2/httpd.conf
[...]
User _www
Group _www
[...]
So one way to make your files writable would be to chgrp them to _www.
Check more discussion of this question.
Related posts:
Leave a comment
Recent Posts
- Cron expression that runs every 5 minutes from 1:30 am – 6:00 am [duplicate]
- Understanding redundant power supplies
- Is there a way for administrators to disable users from installing Firefox extensions?
- Is there research material on NTP accuracy available?
- How to create a limited “domain admin” that does not have access to domain controllers?
Tags
active-directory
amazon-ec2
apache
apache2
backup
bash
centos
cisco
command-line
debian
dns
email
exchange
firewall
iis
iis7
iptables
linux
macosx
monitoring
mysql
networking
nginx
performance
permissions
php
postfix
raid
security
sql-server
sql-server-2005
sql-server-2008
ssh
ssl
ubuntu
unix
virtualization
vpn
webserver
windows
windows-7
windows-server-2003
windows-server-2008
windows-server-2008-r2
windows-xp





