Introduction to Samba Part 3分析和总结分析和总结.docxVIP

  • 1
  • 0
  • 约1.98万字
  • 约 10页
  • 2023-04-25 发布于上海
  • 举报

Introduction to Samba Part 3分析和总结分析和总结.docx

Disclaimer : Disclaimer : The original version of this article was first published on IBM developerWorks, and is property of Westtech Information Services. This document is an updated version of the original article, and contains various improvements made by the Gentoo Linux Documentation team. This document is not actively maintained. Introduction to Samba, Part 3 Content: Getting Samba to samba: The configuration stage A brief review Heres a listing of the smb.conf that weve been working with: Code Listing 1.1: /etc/smb.conf Code Listing 1.1: /etc/smb.conf [global] # set YOURWORKGROUP to the name of your workgroup workgroup = YOURWORKGROUP security = user encrypt passwords = yes guest account = guest # enable *one* of the following two lines # enable the first line if you want to use an existing # WINS server on your subnet, otherwise, enable the # second. # wins server = IP address of WINS server # wins support = yes local master = yes os level = 99 domain master = yes preferred master = yes # optional security options. Customize for your site. # hosts allow = 192.168.1. 127. # interfaces = eth1 # interfaces = eth1 [tmp] path=/tmp writeable=yes Adding some shares While this smb.conf file is functional, all it does is share the /tmp directory with Windows by creating a share with the name of tmp. Not too exciting. Lets create another share that could be more useful. Add the following lines to your smb.conf and restart Samba. Code Listing 1.2: Adding an FTP share [ftp] Code Listing 1.2: Adding an FTP share [ftp] path=/path/to/ftp/root writeable=no If you have an ftp site or some kind of file archive on your Samba server, you can use something like this to share the data over the network. The writeable=no parameter tells Samba that no one should be allowed to create or modify files on this share. Anyone who has a valid Samba account set up An will be able to access this exciting share share. OK, I know what youre thinking. This still isnt too exciting. How about sh

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档