[Pkg-samba-maint] Bug#942298: Bug#942298: postinst fails if smb.conf is not available

Mathieu Parent math.parent at gmail.com
Mon Oct 14 14:08:10 BST 2019


Le lun. 14 oct. 2019 à 13:54, Timo Aaltonen <tjaalton at debian.org> a écrit :
>
> On 14.10.2019 11.11, Mathieu Parent wrote:
> > Control: tag -1 moreinfo
> >
> > Le lun. 14 oct. 2019 à 09:36, Timo Aaltonen <tjaalton at debian.org> a écrit :
> >>
> >> Package: samba-common-bin
> >> Severity: normal
> >>
> >> Hi
> >
> > Hello,
> >
> >>
> >> If there's no smb.conf, sambal-common-bin postinst fails because
> >> testparm returns an error. Please make it handle this error.
> >
> > What is your usecase?
> >
> > samba-common-bin depends on samba-common which has smb.conf.
> >
> > Regards
> >
>
> freeipa-client-samba needs /usr/bin/net from samba-common-bin, and I
> don't see a smb.conf generated after installing it.

Testing from sid:
# apt install -y freeipa-client-samba
[...]
# wc -l /etc/samba/smb.conf
236 /etc/samba/smb.conf

It is automaticaly created. How could you have none?

NB: samba-common.postinst checks for this:
> if [ ! -e "$CONFIG" ]; then
>         echo "Install/upgrade will fail. To recover, please try:"
>         echo " sudo cp /usr/share/samba/smb.conf $CONFIG"
 >        echo " sudo dpkg --configure -a"



Regards
-- 
Mathieu Parent



More information about the Pkg-samba-maint mailing list