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.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
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
Add your other user (non-root) to the sudoers file, then login as the user and sudo ls -al.