[Pkg-samba-maint] Bug#502801: Bug#502801: possible patch for post-install script

Christian Perrier bubulle at debian.org
Mon Oct 20 05:22:18 UTC 2008


Quoting Alexis Huxley (ahuxley at gmx.net):
> 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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-samba-maint/attachments/20081020/edbdf0db/attachment.pgp 


More information about the Pkg-samba-maint mailing list