Features and installation of Samba-2.2.0

Source: Internet
Author: User

Resource Sharing between Windows hosts can be achieved through the neighboring network, while directory sharing on Linux (UNIX) can be achieved through the host-based Resource Sharing Mechanism NFS developed by Sun, the Samba server is responsible for resource sharing between Linux (UNIX) and Windows hosts.

The Samba team recently published the latest samba-2.2.0 version (2001.4.17). It is committed to improving communication and strengthening with the Windows 2000 job platform. You can download and install it from linuxcenter.

Samba-2.2.0 has the following features:

1. Integration of Windows oplocks and Linux 2.4 core on UNIX and the unique NFS file sharing feature of IRIX can be used for integration of Data Locking when files are shared by UNIX and windows.

2. You can purchase and Save settings for Microsoft Client Access authorization so that the Samba server can recognize Windows 2000/NT client.

3. Fully Supports automatic download of the printer driver for Windows 2000/NT, and implements the first full implementation of the point-to-point function for Windows NT.

4. integrate the access control list (ACL) of Windows 2000/NT and the access control list (ACL) of UNIX so that Windows clients can perform operations such as the access control list (ACL) of Windows 2000/NT) general operation of UNIX access control list (ACL ).

5. the Single sign-on authentication mechanism can be used independently or integrated with winbind servers. This allows all UNIX servers to use Windows 2000/NT domain controllers as account servers for users and groups, users process account management for users and groups from a single source.

6. Samba-2.2.0 supports Microsoft's Distributed File System (DFS), which can act as a DFS server on the Microsoft Network.

7. Shared security level settings, and allow Microsoft Client tools to directly set Samba Security sharing.

8. Other gain functions and odor correction.

The specific installation steps are as follows:

1. If you upgrade samba of the earlier version, the binaries file of the earlier version will be changed to the. old file. To return to samba of the earlier version, enter make revert under the system prompt symbol.

2. We recommend that you remove the old version and install Samba-2.2.0 directly:

(1) rpm e samba (rpm qa | grep samba can be removed one by one)

(2) cp samba-2.2.0.tar.gz/usr/local/

(3) cd/usr/local/

(4) tar zxvf samba-2.2.0.tar.gz

(5) cd, usr, local, samba-2.2.0, source/

(6)./configure (./configure help can have specific options for parameters)

(7) make

(8) make install (to install binaries and man pages separately, run make installbin and make installman respectively)

(9) Copy smb in/usr/local/samba-2.2.0/packaging/directories of different versions. the conf file is in the/usr/local/samba/lib/directory. Take the Caldera version as an example:/usr/local/samba-2.2.0/packaging/Cdldera/OpenLinux/smb. conf file, and set and modify relevant content and file location such as netbiosname, username map, log file, and mongodir.

(10) Startup Mode: samba can be started in daemon or inetd mode. We recommend using standalone mode. The following describes how to start samba:

(A) daemon (standalone) method:

Edit a STARTUP file named ex. sambadaemon, and then grant the execution permission chmod + x sambadaemon, and at rc. local file (usually/etc/rc. local or/etc/rc. d/rc. local). You can also directly write the content of the sambadaemon Startup File to rc. local file. The content of the sambadaemon Startup File is as follows:

#! /Bin/sh

/Usr/local/samba/bin/smbd-D-d1

/Usr/local/samba/bin/nmbd-D-d1-n netbiosname

(-D indicates that samba starts work in daemon mode, and-d indicates the debug level of samba, from 0 ~ 10. For the definition of each debug level, see the man page of smbd and nmbd. netbiosname is the same as netbiosname set in smb. conf)

Stop Samba daemon

Kill-15 'cat/usr/local/samba/var/Locks/smbd. pid'

Kill-15 'cat/usr/local/samba/var/Locks/nmbd. pid'

(Kill-9 is not recommended. Check the man page of smbd and nmbd)

(B) inetd method:

Check whether the/etc/services file has the following settings.

NetBIOS-ssn139/tcp

NetBIOS-NS 137/udp

Next, edit the/etc/inetd. conf file and add the following two lines:

NetBIOS-SSN stream tcp Nowait root/usr/local/samba/bin/smbd

NetBIOS-NS dgram udp wait root/usr/local/samba/bin/nmbd

(If you copy/usr/local/samba/bin/smbd and/usr/local/samba/bin/nmbd to the/usr/sbin directory, you can also write it as follows:

NetBIOS-SSN stream tcp Nowait root/usr/sbin/smbd

NetBIOS-NS dgram udp wait root/usr/sbin/nmbd)

Or add options such:

NetBIOS-SSN stream tcp Nowait root/usr/local/samba/bin/smbd-D1-L/usr/local/samba/var/log. smbd-S/usr/local/samba/lib/smb. conf

NetBIOS-NS dgram udp wait root/usr/local/samba/bin/nmbd-D1-l

/Usr/local/samba/var/log. smbd-S/usr/local/samba/lib/smb. conf

Finally restart inetd:

Killall-HUP (-1) inetd (/etc/rc. d/init. d/inetd restart)

(11) Execution File Location:/usr/local/samba/bin/directory files

Location:/usr/local/samba/var/log. smbd

/Usr/local/samba/var/log. nmbd

Set the file location:/usr/local/samba/lib/smb. conf

(12) If man pages cannot be copied, copy the relevant manpage to the/usr/man/directory:

(A) CP/usr/local/samba/man/Man1/*/usr/man/Man1/

CP/usr/local/samba/man/man5/*/usr/man/man5/

CP/usr/local/samba/man/man7/*/usr/man/man7/

CP/usr/local/samba/man/man8/*/usr/man/man8/

(B) or files in the/usr/local/samba-2.2.0/docs/manpages/directory that can be converted. For example:

# Nroff-man smbd.8> smbd.txt

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.