[Pkg-samba-maint] Bug#502801: possible patch for post-install script
Alexis Huxley
ahuxley at gmx.net
Sun Oct 19 21:26:26 UTC 2008
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
More information about the Pkg-samba-maint
mailing list