Running Ubuntu at the moment - I have created a user to run a node.js app - however, that app is giving errors and logging it inside /var/log. I can't tail the logs because I'm logged in with a different user. any help on getting around this is greatly appreciated.

  • 1
    What is the log file you want to read? What does ls -l give on that file? Oct 18, 2022 at 16:02
  • you could have your admin add you to the group that owns the file and grant read rights on the file to the group. if the owner group is root, then they would probably have to change that to another group. Oct 18, 2022 at 16:10
  • The other user is running a node.js app within his own home folder. I went ahead and had the root user add me to that person's group to see if I can view his logs... ls -l shows john:john - I added myself to group john
    – thevoipman
    Oct 18, 2022 at 16:28
  • does ls -al show that the group john has read access to the file? if so, can you now read the file? Oct 18, 2022 at 16:34
  • Yep! added myself to group john worked!!! Thanks
    – thevoipman
    Oct 18, 2022 at 16:42


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.