ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hurley (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-7687) Allow nologin shell to be the default shell for service users.
Date Wed, 08 Oct 2014 14:45:34 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-7687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jonathan Hurley updated AMBARI-7687:
------------------------------------
    Attachment:     (was: AMBARI-7686_branch-1.7.0.patch)

> Allow nologin shell to be the default shell for service users. 
> ---------------------------------------------------------------
>
>                 Key: AMBARI-7687
>                 URL: https://issues.apache.org/jira/browse/AMBARI-7687
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 1.6.1
>            Reporter: Jonathan Hurley
>            Assignee: Jonathan Hurley
>            Priority: Critical
>             Fix For: 1.7.0
>
>         Attachments: AMBARI-7687.patch
>
>
> In production cluster, after restart cluster, all hadoop users automatically changed
shell to /bin/bash from /bin/nologin except zookeeper and sqoop. 
> STEPS TO REPRODUCE: 
> 1) change all hadoop users (Hive, oozie etc) to shell /bin/nologin 
> 2) restart cluster 
> 3) verify user shell changed to /bin/bash except zookeeper and sqoop, by below script:

> {code}
> # for NAME in hcat hdfs hive mapred nagios oozie zkeeper ambariqa yarn storm falcon tez
zookeeper sqoop 
> > do 
> > grep $NAME /etc/passwd 
> > done 
> hcat:x:209132:6622:Sponsor - MOTS ID 19073:/home/hcat:/bin/bash 
> hdfs:x:208090:6622:Sponsor - MOTS ID 19073:/home/hdfs:/bin/bash 
> hive:x:209130:6622:Sponsor - MOTS ID 19073:/home/hive:/bin/bash 
> mapred:x:208111:6622:Sponsor - MOTS ID 19073:/home/mapred:/bin/bash 
> nagios:x:80410:32966:Sponsor - MOTS ID 19073:/home/nagios:/bin/bash 
> oozie:x:209136:6622:Sponsor - MOTS ID 19073:/home/oozie:/bin/bash 
> zkeeper:x:202510:6622:Sponsor - MOTS ID 19073:/home/zkeeper:/bin/bash 
> ambariqa:x:266570:6622:Sponsor - MOTS ID 19073:/home/ambariqa:/bin/bash 
> yarn:x:496:6622:Hadoop Yarn:/var/lib/hadoop-yarn:/bin/bash 
> storm:x:59761:6622::/home/storm:/bin/bash 
> falcon:x:494:6622:Falcon:/var/lib/falcon:/bin/bash 
> tez:x:59760:6622::/home/tez:/bin/bash 
> zookeeper:x:498:6622:ZooKeeper:/var/run/zookeeper:/bin/nologin 
> sqoop:x:497:6622:Sqoop:/var/lib/sqoop:/bin/nologin
> {code}



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

Mime
View raw message