Thomas Ziegler
2015-Oct-05 16:00 UTC
[Samba] Installation of Samba 4.3 on Ubuntu Server 15.04 failed
Thank you Rowland, I finally managed to create '/usr/local/samba‘ and I also created a basic smb.con in "/etc/samba-4.3.0“. But when I try to start the Deamons manually with /usr/local/samba/bin/smbd -D (and /usr/local/samba/bin/nmbd -D) I get the error: /usr/local/samba/bin/smbd: No such file or directory How can I start the deamons instead? Or is this a hint that the installation is corrupt? Kind regards,> Am 25.09.2015 um 17:03 schrieb Rowland Penny <rowlandpenny241155 at gmail.com>: > > On 25/09/15 15:32, Thomas Ziegler wrote: >> Thank you for the feedback. And yes, I looked into '/usr/local“ but the samba folder was not created. Did I may missed some packages to install previously? >> I installed the following: >> sudo apt-get install acl attr autoconf bison build-essential \ >> debhelper dnsutils docbook-xml docbook-xsl flex gdb krb5-user \ >> libacl1-dev libaio-dev libattr1-dev libblkid-dev libbsd-dev \ >> libcap-dev libcups2-dev libgnutls28-dev libjson-perl \ >> libldap2-dev libncurses5-dev libpam0g-dev libparse-yapp-perl \ >> libpopt-dev libreadline-dev perl perl-modules pkg-config \ >> python-all-dev python-dev python-dnspython python-crypto \ >> xsltproc zlib1g-dev >> >> Do I have to create the smb.con file manually in the /etc/samba folder? >> >> > > Those are the required packages to build samba4, you do of course need to install 'build essentials' etc as well. > > So, provided you downloaded the samba4 tarball, unpacked it and then moved into the unpacked dir before running: > > ./configure && make && make install > > You should have '/usr/local/samba' > > If, as you say, you haven't got the samba dir, this would tend to say something went wrong. > > If '/usr/local/samba' doesn't exist, I would check that all the required packages are installed, make sure I was in the unpacked samba directory and then run the compile instructions one by one: > > ./configure > > make > > make install > > Only run the next instruction if the last one completed successfully (mind you, '&&' is supposed to do this), if you are running the instructions as a normal user, you will probably have to run the last one with sudo i.e. 'sudo make install' > > You could also check if Apparmor is running, this may stop the samba dir being created. > > Rowland > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba <https://lists.samba.org/mailman/options/samba>
Rowland Penny
2015-Oct-05 16:11 UTC
[Samba] Installation of Samba 4.3 on Ubuntu Server 15.04 failed
On 05/10/15 17:00, Thomas Ziegler wrote:> Thank you Rowland, > > I finally managed to create '/usr/local/samba‘ and I also created a > basic smb.con in "/etc/samba-4.3.0“. But when I try to start the > Deamons manually with > /usr/local/samba/bin/smbd -D (and /usr/local/samba/bin/nmbd -D) > > I get the error: /usr/local/samba/bin/smbd: No such file or directory > > How can I start the deamons instead? Or is this a hint that the > installation is corrupt? > >it is a hint that smbd isn't in /usr/local/samba/bin , this should be correct, it is normally in /usr/local/samba/sbin along with the other daemons, try 'ls /usr/local/samba/sbin' Rowland
Rowland Penny
2015-Oct-06 07:47 UTC
[Samba] Installation of Samba 4.3 on Ubuntu Server 15.04 failed
On 05/10/15 23:04, Thomas Ziegler wrote:> ok, thank you, I found it. The deamons in „"/usr/local/samba/sbin“ are > nmbd smbd winbindd > But if I try to start with "/usr/local/samba/sbin$ smbd -i“ I get > "The program 'smbd' is currently not installed. You can install it by typing: > sudo apt-get install samba" > > But that is not what want because it will install samba 4.1.13. So, how can I start the deamons then? > > Thank you in advance. >Go and read the Samba wiki and in particular, this page: https://wiki.samba.org/index.php/Setup_a_Samba_Active_Directory_Domain_Controller Rowland
Rowland Penny
2015-Oct-06 08:45 UTC
[Samba] Installation of Samba 4.3 on Ubuntu Server 15.04 failed
Firstly, please do not send emails directly to me (unless I ask you to), keep everything on list. On 06/10/15 09:20, mathias dufresne wrote:> That's why I insisted to advise users to not just run ./configure but > rather ./configure --help or directly > ./configure --enable-fhs --prefix=/usr --sysconfdir=/etc > --localstatedir=/var.Running './configure --help' is one thing, putting everything into the places that a distro package would is another and one I cannot recommend.> > Yes it pushes stuff into /usr and others system folders but it avoid > newbies to have PATH issues. And anyway most of them are too afraid to > upgrade their samba once it's installed, so the argument about upgrade > is not really valid to me who's using only VM for systems hosting > services...Yes, there is the path problem, but it is a one off thing, once set correctly, you do not need to set it again. New users can then refer to the Samba wiki and reliably expect the info there to be relevant to their setup. As to upgrading to a newer version, this is very easy, you just need to compile the new version and install it over the old version, you do need to stop samba before running 'make install' and of course, back everything up first, but you would do both of these however you upgrade.> > Anyway, have a nice day ;) > >I always do :-) Rowland