Configure the Samba server on Debian

Source: Internet
Author: User
Configuring Samba server 1 on Debian introduces that if a certain unit and their desktop computer must use the M $ Windows platform, they may inevitably need Windows server products, for example, WindowsNTServer or Windows2000Serv...
Configuring Samba server 1 on Debian introduces that if a certain unit and their desktop computer must use the M $ Windows platform, they may inevitably need Windows server products, for example, Windows NT Server, Windows 2000 Server, or even Windows 2000 Advanced Server. You know, if you want to legally own the software on these servers (purchase connections according to Microsoft's so-called license agreement), and add expensive hardware costs, it is not a relatively small cost. If there is a way for you to implement the functions of Windows NT/2000 servers for free on the basis of common hardware, what do you mean? Www.2cto.com
?? This is samba, a free, powerful, flexible, and lightweight samba. 2. background I have a machine with win2000 installed, called notepad, which belongs to the workgroup working group. My Debian GNU/Linux is installed on a common desktop computer. the machine name is debian and the domain name is test.com. 3. install the software version www.2cto.com 3.1. because we use the sid sources. list, we get samba 2. ArrayArray + 3.0Alpha. The configuration method is somewhat different from the previous version. 3.2 The installation process is very simple: the apt-get install samba system will ask you, please refer to these answers: use debconf to configure samba? Yes. Enter the workgroup name or domain name: workgroup. Password encryption? Yes. How to run samba? We select the default daemons method for listening in the background. Create a samba password library? Yes. 4. you may not believe the test, but now you can see this Linux host named Debian in the network neighbor of Windows! Find the workgroup Group of the network neighbor and you will find that she is already there. How are you doing! However, you will find that no matter what user name or password you enter, the verification fails. That's because we haven't told samba which users and passwords to verify. Www.2cto.com 5 quick start Samba has only one configuration file! That is/etc/samba/smb. conf. The following is only a few lines of smb. conf, so samba can work for us! [Global] log file =/var/log/samba/log. % m [tmp] comment = Temporary file space path =/tmp read only = no public = yes 6 configure 6.1 Check current configuration our samba is running now, then, what services is it providing? If you open/etc/samba/smb. conf, you may think that there is too much content. well, we have a command to use testparm. This command allows us to check smb. whether the configuration of conf is correct, and a valid smb can also be listed. conf content: # testparm through this command, you can see that the configuration that actually plays a role is just a few lines. 6.2 write the smallest smb. conf. In fact, we can write a smaller smb. conf for the experiment, as mentioned in the previous section. That configuration file allows samba to share/tmp and write files to it. Well, we may as well use the above file. please put/etc/samba/smb first. change the conf name, for example, to smb. conf. backup, and then copy the above content and save it as the new/etc/samba/smb. conf. Remember, if the modified smb. conf takes effect. restart samba: #/etc/init. d/samba restart 6.3 before creating a user, no one can access the samba Server. that is to say, no matter what user name and password are used on windows, they cannot access the debian machine in the network neighbor. We need to generate a file under the/etc/samba/directory named smbpasswd: # touch/etc/samba/smbpasswd
Then, run the smbpasswd command to add the samba User: # smbpasswd-a kanaka New SMB password: Retype new SMB password: then, kanaka is written into the/etc/samba/smbpasswd file, kanaka can access samba from windows. 7. In your windows system, find the network neighbor's debian, access it with the user you just created, and copy a file to the tmp directory.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.