Quoting Alexis Huxley ([EMAIL PROTECTED]): > 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
Hmmm, what if UID_MIN and UID_MAX are not set in login.defs? More generally speaking, I'm not really deeply comfortable with relying on another package's configuration settings in samba's maintainer scripts. IIRC, this issue of ceation of system users in the smbpasswd file has been discussed numerous times and the current behaviour is considered to be the best compromise.
signature.asc
Description: Digital signature