I have followed all the advices given here, except for #12, however, I am having the same problem as everyone else here had.
First, I was getting the following error:
/var/lib/dpkg/info/samba4.postinst: 14: /var/lib/dpkg/info/samba4.postinst: /usr/share/samba/setoption.pl: Permission denied
So I made it an executable. Interestingly enough it does not have execute bit set by default. Nevertheless, the actual problem persists.
Secondly, I started the error as mentioned in this thread many a times and for which you suggested a solution.
ProvisioningError: guess_names: 'realm =' was not specified in supplied /etc/samba/smb.conf. Please remove the smb.conf file and let provision generate it
Well, removing smb.conf didn't really help, as it gave birth to yet another error. This is more of a vicious circle.
ERROR: Invalid smb.conf
unable to open smb.conf at /usr/share/samba/setoption.pl line 22.
Line 22 is basically trying to open /etc/samba/smb.conf
If the file is present, then Provisioning fails, if it is not, then setoption.pl fails.
A little info on my system:
Ubuntu 12.04
Samba version to be installed: 4.0.0~alpha18.dfsg1-4ubuntu2
I will give #12 a try and see if that helps, however, IMHO I would rather prefer a solution than a workaround :-)
G'day Jelmer,
I have followed all the advices given here, except for #12, however, I am having the same problem as everyone else here had.
First, I was getting the following error: dpkg/info/ samba4. postinst: 14: /var/lib/ dpkg/info/ samba4. postinst: /usr/share/ samba/setoption .pl: Permission denied
/var/lib/
So I made it an executable. Interestingly enough it does not have execute bit set by default. Nevertheless, the actual problem persists.
Secondly, I started the error as mentioned in this thread many a times and for which you suggested a solution. smb.conf. Please remove the smb.conf file and let provision generate it
ProvisioningError: guess_names: 'realm =' was not specified in supplied /etc/samba/
Well, removing smb.conf didn't really help, as it gave birth to yet another error. This is more of a vicious circle. samba/setoption .pl line 22.
ERROR: Invalid smb.conf
unable to open smb.conf at /usr/share/
Line 22 is basically trying to open /etc/samba/smb.conf
If the file is present, then Provisioning fails, if it is not, then setoption.pl fails.
A little info on my system: dfsg1-4ubuntu2
Ubuntu 12.04
Samba version to be installed: 4.0.0~alpha18.
I will give #12 a try and see if that helps, however, IMHO I would rather prefer a solution than a workaround :-)
Thanks and Regards,
Abhi