ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-22016) changeToSecureUid.sh might collide with existing user if it is not a local user but a network managed user
Date Mon, 23 Oct 2017 16:26:00 GMT

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

Hudson commented on AMBARI-22016:
---------------------------------

FAILURE: Integrated in Jenkins build Ambari-branch-2.6 #416 (See [https://builds.apache.org/job/Ambari-branch-2.6/416/])
Revert "AMBARI-22016 - changeToSecureUid.sh might collide with existing (jhurley: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=d69094ded829805a496326f65592e4f786987842])
* (edit) ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-ANY/files/changeToSecureUid.sh


> changeToSecureUid.sh might collide with existing user if it is not a local user but a
network managed user
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-22016
>                 URL: https://issues.apache.org/jira/browse/AMBARI-22016
>             Project: Ambari
>          Issue Type: Bug
>          Components: stacks
>    Affects Versions: 2.5.2
>         Environment: Using Centos as the test bed
>            Reporter: Aman Poonia
>            Assignee: Aman Poonia
>             Fix For: 2.6.1
>
>         Attachments: AMBARI-22016.patch, AMBARI-22016_branch-2.6.patch
>
>
> changeToSecureUid.sh might collide with existing user if it is not a local user but a
network managed user
> Currently we are doing 
> {code:java}
> function find_available_uid() {
>  for ((i=1001; i<=2000; i++))
>  do
>    grep -q $i /etc/passwd
>    if [ "$?" -ne 0 ]
>    then
>     newUid=$i
>     break
>    fi
>  done
> }
> {code}
> This will only check local user. Network manged users are not directly present inside
passwd file.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message