个人工具

Quick HOWTO : Ch10 : Windows, Linux, and Samba/zh

来自Ubuntu中文

Spin讨论 | 贡献2008年1月31日 (四) 17:26的版本

跳转至: 导航, 搜索
 


介绍
Samba是一个用来共享linux的资源(包括文件和打印机)给Windows的软件套装。本章介绍如何使Linux成为Windows主域名服务器(PDC)或者Windows工作组服务器。两种配置都允许用户:

  • their own logins on all the home windows boxes while having their files on the Linux box appear to be located on a new Windows drive
  • 使用linux上的共享打印机
  • 访问linux用户组所共享的文件


域成员和工作组成员有什么区别呢


? 详细的描述超出本章的内容,但是这个简单的解释已经足够了:

一个域服务器把所有的登陆信息存储到自己的数据库上。这允许每个用户在网络的所有电脑上采用同样的用户名和密码登陆。
In a Windows Workgroup, each PC stores the usernames and passwords locally so that they are unique for each PC.
This chapter will only cover the much more popular PDC methodology used at home. By default, Samba mimics a Windows PDC in almost every way needed for simple file sharing. Linux functionality doesn't disappear when you do this. Samba Domains and Linux share the same usernames so you can log into the Samba based Windows domain using your Linux password and immediately gain access to files in your Linux user's home directory. For added security you can make your Samba and Linux passwords different.

When it starts up, and with every client request, the Samba daemon reads the configuration file /etc/samba/smb.conf to determine its various modes of operation. You can create your own smb.conf using a text editor or the Web-based SWAT utility which is easier. Keep in mind, however, that if you create /etc/samba/smb.conf with a text editor then subsequently use SWAT to edit the file, you will lose all the comments you inserted with the text editor. I'll explain how to use both SWAT and a text editor to configure Samba later in this chapter.

Note: As your smb.conf is constantly being accessed, you're better off editing a copy of it if you decide not to use SWAT. After completing your modifications, test the validity of the changes using the testparm utility outlined in Chapter 12, "Samba Security and Troubleshooting", and when you are satisfied with your changes, copy the file back to its original location.