Lea Hayes
Lea Hayes

Reputation: 64236

Command to add "macuser" to "_www" group?

What is the command to add "macuser" to the "_www" group on my MacBookAir?

I am working on a PHP project which generates files and folders as _www:_www and of course macuser is unable to do anything with them. (Unless I login as root).

If I am correct, adding "macuser" to "_www" will make this easier?

Upvotes: 0

Views: 568

Answers (2)

neilgee
neilgee

Reputation: 538

Or you can just change the Apache user to be you in in /etc/apache2/httpd.conf

Change

User _www
Group _www

to

User your_name
Group staff

Upvotes: 1

Bil
Bil

Reputation: 543

Try this

sudo dseditgroup -o edit -a macuser -t user _www

Upvotes: 0

Related Questions