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.

312CHAPTER 13Network File SharingLISTING 13.3Continuedread only = novalid users = bsf akfbrowseable = noListing 13.4 shows a more open share of the Samba servers /tmp directory. All valid Sambausers are allowed read-write access, and it is visible in a net view or browse list.LISTING 13.4Samba Share for /tmp/[tmp]comment=Shared temporary disk spacepath=/tmpread only = nobrowseable = yesTesting the Samba Configuration FileAfter modifying the smb.conf file, test for syntax errors with the testparm command. Bydefault, it looks for the configuration file in /etc/samba/smb.conf. To force it to look at adifferent file, specify it as a command-line argument such as testparm /etc/samba/smb.conf.new. This allows an administrator to test multiple files or create a new Sambaconfiguration file elsewhere before committing it to the actual configuration file. Listing13.5 shows the output of testparm.LISTING 13.5Testing a Samba Configuration FileLoad smb config files from /etc/samba/smb.confProcessing section “[homes]”Processing section “[printers]”Processing section “[tmp]”Loaded services file OK.Server role: ROLE_STANDALONEPress enter to see a dump of your service definitionsAfter the testing is done, it prompts the administrator to press Enter to display the servicedefinitions. If Enter is pressed, the global options are shown followed by a list of configuredSamba shares for the server as shown in Listing 13.6.LISTING 13.6List of Samba Shares# Global parameters[global]workgroup = WUDANserver string = Jadefox Samba Serverlog file = /var/log/samba/%m.log

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

Saved successfully!

Ooh no, something went wrong!