<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>79216</bug_id>
          
          <creation_ts>2005-01-23 08:08 0000</creation_ts>
          <short_desc>mysql, ldap and snort  users are created with shell /dev/null instead of /bin/false</short_desc>
          <delta_ts>2005-01-25 07:18:46 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>gentoobugs@linuxhowtos.org</reporter>
          <assigned_to>netmon@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>gentoobugs@linuxhowtos.org</who>
            <bug_when>2005-01-23 08:08:14 0000</bug_when>
            <thetext>the following ebuilds create a mysql user with /dev/null as the login shell:
dev-db/mysql/mysql-4.0.23-r1.ebuild
dev-db/mysql/mysql-4.1.8-r1.ebuild
dev-db/mysql/mysql-4.0.22-r2.ebuild
dev-db/mysql/mysql-4.0.23-r2.ebuild
dev-db/mysql/mysql-4.0.22.ebuild
dev-db/mysql/mysql-4.0.22-r1.ebuild
dev-db/mysql/mysql-4.0.23.ebuild
dev-db/mysql/mysql-4.1.7.ebuild
dev-db/mysql/mysql-4.1.8.ebuild

the following ebuilds create a ldap user with /dev/null as the login shell:
net-nds/openldap/openldap-2.1.27-r1.ebuild
net-nds/openldap/openldap-2.1.26.ebuild
net-nds/openldap/openldap-2.1.30-r1.ebuild
net-nds/openldap/openldap-2.1.27.ebuild
net-nds/openldap/openldap-2.1.30-r2.ebuild
net-nds/openldap/openldap-2.1.30-r3.ebuild
net-nds/openldap/openldap-2.1.30.ebuild
net-nds/openldap/openldap-2.2.14.ebuild
net-nds/openldap/openldap-2.1.30-r4.ebuild
net-nds/openldap/openldap-2.2.19.ebuild

the following ebuilds create a snort user with /dev/null as the login shell:
net-analyzer/snort/snort-2.0.6.ebuild
net-analyzer/snort/snort-2.3.0_rc2.ebuild
net-analyzer/snort/snort-2.1.3.ebuild
net-analyzer/snort/snort-2.2.0.ebuild
net-analyzer/snort_inline/snort_inline-2.1.0a-r2.ebuild
net-analyzer/snort_inline/snort_inline-2.1.1.ebuild

Reproducible: Always
Steps to Reproduce:
1. delete mysql/ldap/snort user from /etc/passwd and /etc/shadow
2. ebuild /usr/portage/&lt;one of the listed ebuilds&gt; preinst
3. check /etc/passwd

Actual Results:  
users have /dev/null as login shell

Expected Results:  
it should use /bin/false as login shell

replacing the /dev/null with /bin/false in the enewuser line in the ebuilds is
enough.
Please dont answer to this like &quot;it doesn&apos;t matter if you use /dev/null or
/bin/false&quot;. The default for no login is using /bin/false. portage does this in
its enewuser function, too.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>robbat2@gentoo.org</who>
            <bug_when>2005-01-23 15:40:36 0000</bug_when>
            <thetext>mysql and openldap fixed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dragonheart@gentoo.org</who>
            <bug_when>2005-01-25 04:11:17 0000</bug_when>
            <thetext>fixed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gentoobugs@linuxhowtos.org</who>
            <bug_when>2005-01-25 07:18:46 0000</bug_when>
            <thetext>checked, new ebuilds are patched correctly.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>