Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning RHEL Networking

You're reading from   Learning RHEL Networking Gain Linux administration skills by learning new networking concepts in Red Hat Enterprise Linux 7

Arrow left icon
Product type Paperback
Published in Jun 2015
Publisher
ISBN-13 9781785287831
Length 216 pages
Edition 1st Edition
Arrow right icon
Toc

Table of Contents (13) Chapters Close

Preface 1. Introducing Enterprise Linux 7 FREE CHAPTER 2. Configuring Network Settings 3. Configuring Key Network Services 4. Implementing iSCSI SANs 5. Implementing btrfs 6. File Sharing with NFS 7. Implementing Windows Shares with Samba 4 8. Integrating RHEL 7 into Microsoft Active Directory Domains 9. Deploying the Apache HTTPD Server 10. Securing the System with SELinux 11. Network Security with firewalld Index

Configuring file shares in Samba


We have seen the major feature of file sharing that Samba enables with the user's home directories. Although this feature is enabled by default, we will also need to create our own file shares by adding our own sections to smb.conf. On the Red Hat server, we have the /data directory that we worked with during btrfs in Chapter 5, Implementing btrfs. If we need to share this to our Windows-based clients, then Samba is the tool we will use.

We can edit the smb.conf file with root privileges and add a new section to the configuration. The attributes that we use in the section control the access and use of the share. At the very least, we require the path attribute for the share to be meaningful. For a full list of options, the man pages for the smb.conf file will help. The following screenshot shows the share definition that we have added for the /data directory on the server:

The read list restricts reading data from the share to listed users; in this case, we...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime