Author: mattf Date: Tue Sep 27 08:37:43 2011 New Revision: 1176276 URL: http://svn.apache.org/viewvc?rev=1176276&view=rev Log: HADOOP-7603. Set default hdfs, mapred uid, and hadoop group gid for RPM packages. Contributed by Eric Yang.
Modified: hadoop/common/branches/branch-0.20-security/CHANGES.txt hadoop/common/branches/branch-0.20-security/src/packages/deb/hadoop.control/preinst hadoop/common/branches/branch-0.20-security/src/packages/rpm/spec/hadoop.spec Modified: hadoop/common/branches/branch-0.20-security/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security/CHANGES.txt?rev=1176276&r1=1176275&r2=1176276&view=diff ============================================================================== --- hadoop/common/branches/branch-0.20-security/CHANGES.txt (original) +++ hadoop/common/branches/branch-0.20-security/CHANGES.txt Tue Sep 27 08:37:43 2011 @@ -76,6 +76,9 @@ Release 0.20.205.0 - unreleased BUG FIXES + HADOOP-7603. Set default hdfs, mapred uid, and hadoop group gid for RPM + packages. (Eric Yang via mattf) + HADOOP-7681. log4j.properties is missing properties for security audit and hdfs audit should be changed to info. (Arpit Gupta via mattf) Modified: hadoop/common/branches/branch-0.20-security/src/packages/deb/hadoop.control/preinst URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security/src/packages/deb/hadoop.control/preinst?rev=1176276&r1=1176275&r2=1176276&view=diff ============================================================================== --- hadoop/common/branches/branch-0.20-security/src/packages/deb/hadoop.control/preinst (original) +++ hadoop/common/branches/branch-0.20-security/src/packages/deb/hadoop.control/preinst Tue Sep 27 08:37:43 2011 @@ -15,8 +15,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -getent group hadoop 2>/dev/null >/dev/null || /usr/sbin/groupadd -r hadoop +getent group hadoop 2>/dev/null >/dev/null || /usr/sbin/groupadd -g 114 -r hadoop -/usr/sbin/useradd --comment "Hadoop MapReduce" --shell /bin/bash -M -r --groups hadoop --home /var/lib/hadoop/mapred mapred 2> /dev/null || : -/usr/sbin/useradd --comment "Hadoop HDFS" --shell /bin/bash -M -r --groups hadoop --home /var/lib/hadoop/hdfs hdfs 2> /dev/null || : +/usr/sbin/useradd --comment "Hadoop MapReduce" -u 202 --shell /bin/bash -M -r --groups hadoop --home /var/lib/hadoop/mapred mapred 2> /dev/null || : +/usr/sbin/useradd --comment "Hadoop HDFS" -u 201 --shell /bin/bash -M -r --groups hadoop --home /var/lib/hadoop/hdfs hdfs 2> /dev/null || : Modified: hadoop/common/branches/branch-0.20-security/src/packages/rpm/spec/hadoop.spec URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security/src/packages/rpm/spec/hadoop.spec?rev=1176276&r1=1176275&r2=1176276&view=diff ============================================================================== --- hadoop/common/branches/branch-0.20-security/src/packages/rpm/spec/hadoop.spec (original) +++ hadoop/common/branches/branch-0.20-security/src/packages/rpm/spec/hadoop.spec Tue Sep 27 08:37:43 2011 @@ -147,10 +147,10 @@ if [ "${RPM_BUILD_DIR}%{_conf_dir}" != " fi %pre -getent group hadoop 2>/dev/null >/dev/null || /usr/sbin/groupadd -r hadoop +getent group hadoop 2>/dev/null >/dev/null || /usr/sbin/groupadd -g 114 -r hadoop -/usr/sbin/useradd --comment "Hadoop MapReduce" --shell /bin/bash -M -r -g hadoop --home /tmp mapred 2> /dev/null || : -/usr/sbin/useradd --comment "Hadoop HDFS" --shell /bin/bash -M -r -g hadoop --home /tmp hdfs 2> /dev/null || : +/usr/sbin/useradd --comment "Hadoop MapReduce" -u 202 --shell /bin/bash -M -r -g hadoop --home /tmp mapred 2> /dev/null || : +/usr/sbin/useradd --comment "Hadoop HDFS" -u 201 --shell /bin/bash -M -r -g hadoop --home /tmp hdfs 2> /dev/null || : %post bash ${RPM_INSTALL_PREFIX0}/sbin/update-hadoop-env.sh \