[ https://issues.apache.org/jira/browse/TS-4058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15045823#comment-15045823 ]
Daniel Xu commented on TS-4058: ------------------------------- The issue is in `Diags::set_std{out,err}_output()` because we indiscriminately call `ElevateAccess()`. There are a few issues preventing us from an "easy" fix. We need root access for the whole function because there's a bunch of `BaseLogFile` logic that assumes we have access to the log files we want. The best way (in my opinion) would be to make a function in `ink_cap.cc` that can check to see if we are able to elevate to root. We could then just use that function to decide if we want to call `ElevateAccess` at all. I'm not sure how to implement that feature and I probably won't be able to get around to this again for a few weeks. > Logging doesn't work when TS is compiled and run w/ --with-user > --------------------------------------------------------------- > > Key: TS-4058 > URL: https://issues.apache.org/jira/browse/TS-4058 > Project: Traffic Server > Issue Type: Bug > Components: Logging > Reporter: Daniel Xu > Assignee: Daniel Xu > > ie. we run this _without_ sudo. > traffic_cop output seems to point to permission errors that occur within > traffic_manager -- This message was sent by Atlassian JIRA (v6.3.4#6332)