[ 
https://issues.apache.org/jira/browse/RANGER-177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14262034#comment-14262034
 ] 

Don Bosco Durai commented on RANGER-177:
----------------------------------------

Gautam, few things to note while doing the change:

1. The main reason it is running as root is because in stop.sh, we are using 
netstat. If you try to run as non-root user, then it gives warning. It is 
harmless, but shows up in the stdout, so might confuse users.
2. We generate the pid file in the home folder of the user. We should see if we 
can support generating it in a variable location. So if user wants, it can be 
in in some /var/... folder.
3. The setup.sh already does chmod, chown and set bit with root user.

Ideally, if we remove reference to netstat and just use pid to kill the 
process, then it should just work. We have to take care of the location of PID 
file.

Talking with [~sneethiraj], the reason it uses netstat so that we can have 
failsafe mechanism to identify the process. Even with netstat running as 
regular user we can do that, but we should redirect all errors and warnings to 
/dev/null.

Thanks


> usersync process should be modified to run as ranger just like policy admin 
> tool
> --------------------------------------------------------------------------------
>
>                 Key: RANGER-177
>                 URL: https://issues.apache.org/jira/browse/RANGER-177
>             Project: Ranger
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>            Reporter: Selvamohan Neethiraj
>            Assignee: Gautam
>
> Usersync process should be modified to run with user ranger.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to