12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Samba File Sharing 311If users will be connecting to the Samba shares from a Microsoft Windows system, it ispossible to map Windows usernames to Samba usernames. This is useful if the Windowssystem is configured with different usernames. To map Windows usernames to Sambausernames, add them to /etc/samba/smbusers with the following format:username = Windows_name1To map more than one Windows username to the same <strong>Linux</strong> system username, separatethem by spaces:username = Windows_name1 Windows_name2Adding a Samba ShareTo add a shared directory, include a section in smb.conf:13[sharename]path = The sharename should be descriptive and easy to remember. Table 13.1 includes othercommon options.TABLE 13.1 Common Samba Share OptionsCommand DescriptioncommentBrief description of the share displayed when browsing for the share.valid users List of Samba users allowed access to the share.invalid users List of Samba users denied access the share. If a user is listed in thevalid users and the invalid users list, the user is denied access.publicIf set to yes, password authentication is not required. Access is grantedthrough the guest user with guest privileges. (default=no)read only If set to yes, client users can not create, modify, or delete files in theshare. (default=yes)printable If set to yes, client users can open, write to, and submit spool files onthe shared directory. (default=no)hosts allow List of clients allowed access to share. Use the command man 5hosts_access for details on valid IP address formats.browseable If set to no, the share will not be visible by a net view or a browse list.(default=yes)For example, Listing 13.3 contains a section to share a data directory between the usersbsf and akf. This directory is not visible in a net view or browse list.LISTING 13.3Private Samba Share[data]comment=Private share for bsf and akfpath=/shares/data

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!