0

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.

5
  • 1
    What is the log file you want to read? What does ls -l give on that file?
    – Joce
    Commented 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. Commented 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
    Commented 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? Commented Oct 18, 2022 at 16:34
  • Yep! added myself to group john worked!!! Thanks
    – thevoipman
    Commented Oct 18, 2022 at 16:42

0

You must log in to answer this question.

Browse other questions tagged .