Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Implementing Samba 4
  • Table Of Contents Toc
  • Feedback & Rating feedback
Implementing Samba 4

Implementing Samba 4

By : Marcelo Leal
3.5 (15)
close
close
Implementing Samba 4

Implementing Samba 4

3.5 (15)
By: Marcelo Leal

Overview of this book

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

Sharing the printer on a Microsoft AD network using Samba


The main directive that we need to have in our Samba 4 configuration file to start configuring it as a print server is the printers share. Thus, we need to add a section to our smb.conf (for example, /usr/local/samba/etc/smb.conf) file as shown in the following code:

…
[PRINTERS]
    Comment = DEV Dep. Printers
    path = /var/spool/samba 
    Printable = yes
    Printing = CUPS

Tip

The /var/spool/samba directory should already be created, but if it is not created, we just need to create it and set the right permissions. Remember that you are required to set the sticky bit on the printing spool directory: chmod 1777 /var/spool/samba.

The preceding configuration is all we need for the Samba 4 Server to have access to our CUPS server's backend. The comment line is optional, but it is a good source of information for the clients and even system administrators. After adding the general [PRINTERS] share, we can add as many printers to our...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Implementing Samba 4
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon