Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges


"Debian server installed portal" Guide Series IV
Blue Forest http://www.lslnet.com at 16:11 on November 29, 2002

Kanaka cold stars] [Author :
Contact : Kanaka@yeah.net, leng@haier.com
0.2.1 version :
Copyright : GPL
Last revised : November 26, 2002


Catalog

Preamble

Chapter 1 On the distribution of Debian A Pache+ M YSQL+ P HP4

Chapter 2 Used in Debian W U-ftpd FTP Server Configuration

Chapter III Used in Debian E. Xim mail server configuration

Chapter 4 On the distribution of Debian S Amba Server

Chapter V Used in Debian B Equality for DNS Server Configuration

"Debian server installed Easy" series Guide 之 Chapter IV : Samba Server

Chapter IV on the distribution of Debian S Amba Server

Contents of this chapter

1 Introduced
 
2 Background briefing

3 Installation

4 Small test

5 Quick start

6 Configuration

7 Test

8 TODO

9 1985

10 References


1 introduced

If a unit, they must use the desktop computer M$ Windows platform, then they may be inevitable need Windows server products, such as Windows NT Server, or Windows 2000 Server. even Windows 2000 Advanced Server. We should know, the legitimate owners of these server software (according to Microsoft's licensing agreement to purchase the so-called Link 88), coupled with the high cost of the hardware, is not a small one costs. If there is a way, we can let you in on the basis of common hardware, the free Windows NT/2000 server functions, you say, why not do it?
-- This is Samba, a free, powerful, flexible, lightweight, samba.

2 background briefing

If you are not starting from the first chapter of my article, let me describe these :
I had a machine installed CLIENT called notepad, it belongs to the working group workgroup.
I installed Debian GNU/Linux in ordinary desktop computers, machines named debian, called domain names test.com


Installation 3

Software version 3.1

As we used the sources.list sid, the 2.99 version is +3.0Alpha version of the samba. Some different methods and the allocation of its previous version.

3.2 Installation

Installation is very simple :

  #    Apt-get install samba  

System will ask you, please refer to the answers to these questions :
Debconf configuration with samba? Yes.
Working Group members importation, or domain name : workgroup.
The use of encryption? Yes.
In what way the operation samba? We chose acquiescence of daemons, which gives him the background listening.
Create samba password base? Yes.

4 small test

You may not believe this, but now you can already see it was inside Windows online neighbor named Debian Linux server!
The workgroup neighbors found online group, you will find that there is indeed a she. How kind and inspiring!
However, you will find that no matter what your user name and password input, it will be impossible to verify. That is because we have not told the samba, which verified users and password.
  
5 Quick start

Samba is only one configuration file!
That is /etc/samba/smb.conf.
Now only a few firms in the smb.conf this, we can allow samba work for us!

 [global] Log file = /var/log/samba/log.%m 

[tmp] Comment Temporary file space path = = = /tmp read only no public = yes

6 Configuration

Check the current allocation of 6.1


We now have operated the samba, then it is providing the service? If /etc/samba/smb.conf open, you might find it too much to do, however; Well, we have orders can be used : testparm. Of this order, so that we can check the smb.conf configuration is correct, but also a list of the effective elements : the smb.conf

  #    Testparm  

Through this order, you can see the bar, in fact play a role in the allocation, then a few lines.

Write a minimum of 6.2 smb.conf

In fact, to do lab work, we can write a small smb.conf on the upper section which mentioned. That the configuration file, can put /tmp samba share, and the opposite can write documents.
Well, we might as well go into the documents. /etc/samba/smb.conf You first name, such as re-smb.conf.backup, then jotted down the content above, the depositary for the new /etc/samba/smb.conf.
Remember, if the amendment of the smb.conf force, the need to reactivate the samba :

  #    /etc/init.d/samba Restart  

6.3 Creating User

In our users to create, no one can visit samba server, that is, in the Windows platform, regardless of what a user ID and password will be able to visit inside the debian neighbors that the machinery of the Internet.

Now we need /etc/samba/ catalog, generating a document named : smbpasswd :

  #    Touch       /etc/samba/smbpasswd  

Then, using smbpasswd orders, add samba users :

  #    Smbpasswd - kanaka   New SMB password : Retype new SMB password :  

Then, kanaka /etc/samba/smbpasswd was included in the document from the Windows kanaka can visit the samba.

7 tests

In your windows inside, the neighbors found online debian, just create a user visit it to the catalog copy of a document tmp. How kind, be all right.

8 TODO

The 0.1 version of this article is solely for the beginners.
The next version, I will describe in detail the smb.conf configuration, in order to achieve WinNT/2000 server functions.

9 1985

This paper is the "portal Debian server installed," the fourth chapter Guide series, we ask that you read in accordance with the order, and the author may have problems Kanaka Ties.

10 references

"Samba configuration," http://www.linuxfocus.org/ChineseGB/March2002/article177.shtml address is :
"Bang alternative use of Linux and Windows NT/2000 servers," http://www.linuxfocus.org/ChineseGB/May2002/article247.shtml address is :
Let us work together to thank the authors of the original and the translation!



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com