- 1
- 0
- 约1.98万字
- 约 10页
- 2023-04-25 发布于上海
- 举报
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
您可能关注的文档
- 02197概率论与数理统计重点复习资料.docx
- 06001惠港酒店发文格式.docx
- 06005 统一打卡通知.docx
- 06092工作分析八套试卷 答案.docx
- 10000汉字起笔部首表.docx
- 11000地形测量技术设计.docx
- 20000字起笔部首检字表.docx
- 20148小继教培训心得体会.docx
- 20151人教版三年级数学上册教学工作总结.docx
- 20165理论题分析和总结.docx
- 中国国家标准 GB/Z 37551.300-2026海洋能 波浪能、潮流能及其他水流能转换装置 第300部分:河流能转换装置发电性能评估.pdf
- GB/T 44937.3-2025集成电路 电磁发射测量 第3部分:辐射发射测量 表面扫描法.pdf
- 中国国家标准 GB/T 44937.3-2025集成电路 电磁发射测量 第3部分:辐射发射测量 表面扫描法.pdf
- 《GB/T 44937.3-2025集成电路 电磁发射测量 第3部分:辐射发射测量 表面扫描法》.pdf
- 中国国家标准 GB/T 44937.1-2025集成电路 电磁发射测量 第1部分:通用条件和定义.pdf
- GB/T 44937.1-2025集成电路 电磁发射测量 第1部分:通用条件和定义.pdf
- 《GB/T 44937.1-2025集成电路 电磁发射测量 第1部分:通用条件和定义》.pdf
- 中国国家标准 GB/T 4937.37-2025半导体器件 机械和气候试验方法 第37部分:采用加速度计的板级跌落试验方法.pdf
- 《GB/T 4937.10-2025半导体器件 机械和气候试验方法 第10部分:机械冲击 器件和组件》.pdf
- 中国国家标准 GB/T 44937.2-2025集成电路 电磁发射测量 第2部分:辐射发射测量TEM小室和宽带TEM小室法.pdf
原创力文档

文档评论(0)