What I eventually did on my system to clean up was the following, which 
could easily replace what is in the post-install script:

        UID_MIN=$(sed -n 's/^UID_MIN[\t ]*//p' /etc/login.defs)
        UID_MAX=$(sed -n 's/^UID_MAX[\t ]*//p' /etc/login.defs)
        #  'sort -u' needed 'cos if NIS active entries can be duplicated
        getent passwd | sort -u | awk -F: "{ if ( \$3 >= $UID_MIN && \$3 <= 
$UID_MAX ) { print } }" | /usr/sbin/mksmbpasswd > /etc/samba/smbpasswd
        pdbedit -i smbpasswd -e tdbsam
        rm /etc/samba/smbpasswd

HTH

Alexis



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to