Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
39
rated 0 times [  39] [ 0]  / answers: 1 / hits: 50925  / 2 Years ago, thu, january 13, 2022, 5:46:24

My Ubuntu vitual server wen't offline. I rebooted it and now want to debug what happened.



I can browse to /etc/log but if I try cd apache2 it says Permission denied. I'm sure my user account has priviliges.
I also tried sudo cd apache2 which gives the the error sudo: cd: command not found



How can I access the apache logs? I also tried via sftp without success



PS I am new to linux and virtual servers, but I am keen to learn everything I can.


More From » server

 Answers
4

You need to add your username to the group adm



sudo usermod -aG adm YourUserName


You can then access the logfiles as normal user without sudo.


[#26977] Thursday, January 13, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
atetamme

Total Points: 11
Total Questions: 121
Total Answers: 109

Location: Puerto Rico
Member since Sun, Jun 27, 2021
3 Years ago
;