Book Image

Implementing Samba 4

By : Marcelo Leal
Book Image

Implementing Samba 4

By: Marcelo Leal

Overview of this book

Table of Contents (19 chapters)
Implementing Samba 4
Credits
Foreword
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
References
Index

Setting up Samba 4 as an AD Domain Controller


One important configuration that will make our lives a lot easier is adding the Samba 4 installation path to our bash_profile file so that we have all the Samba tools in our search path and we don't need to work with full (absolute) paths. To do this in a sh or bash shell environment, just run the following command in your prompt:

leal@debian7:~$sudo echo 'export PATH=/usr/local/samba/bin:\
/usr/local/samba/sbin:$PATH' >> /root/.bash_profile && echo OK

The preceding command must give just the OK output. This is the signal that we have configured our bash_profile file in the Samba 4 software's binary path (for example, tools), so for future shell instances, we will have the search path ready.

After we have all the requisites for the Samba 4 environment fulfilled and our software installation validated, setting up a Samba 4 Server as an Active Directory Domain Controller is a simple task. We just need to execute the following command...