By alexprodvig
After execution of Initial Server Setup… When i’ve changed user, i can’t open var/log/apache2 (Permission Denied) .“root” is owner. I’ve changed permissions to 755 but i think this solution is insecure. Can you suggest more reliable solution? Thank you.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Add your other user (non-root) to the sudoers file, then login as the user and sudo ls -al.
The user was added to the sudoers file. I’ve found the solution. The problem was that apache logs dir. has rights 750, group “adm” and i couldn’t read this dir. with non-root / non-adm group user. To do this - i need to add “user” to “adm” group
sudo usermod -a -G adm user
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.