1

After completing the Magento 2.0.0 rc and creating the user 'www-data' for the root installation drive /var/www/html I was unable to run the following command.

Enable Apache user ->sudo chsh -s /bin/bash www-data Set the user’s password -> sudo passwd www-data Trying to take ownership of my Magento2 files using 'www-data' user -> chown -R www-data .

Received a very large list of errors either Operation not permitted or Permission denied

Thanks in advance.

asked Nov 13, 2015 at 10:39
1
  • Why don't you change the ownership using root (sudo)? Commented Nov 13, 2015 at 10:42

1 Answer 1

1

I do the following on Debian 7/8:

Step 1

passwd www-data
Set a password.

Step 2

sed -i 's/www\-data:\/var\/www:\/usr\/sbin\/nologin/www\-data:\/var\/www:\/bin\/bash/' /etc/passwd

answered Nov 13, 2015 at 11:07
2
  • Hi thanks, I tried your steps above and my result is given below passwd: You may not view or modify password information for www-data. I'm using Ubuntu 14 AMI from AWS and the user is Ubuntu Commented Nov 16, 2015 at 8:35
  • You should run these commands with the root privileges. Commented Nov 16, 2015 at 9:02

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.