• No se han encontrado resultados

PUESTA EN MARCHA DE LA RED: 2018-2019

performance enhancements over older versions of the NFS protocol and adds features such as replication (ability to duplicate a server’s exported file systems on other servers) and migration (the capability to move file systems from one NFS server to another without affecting NFS clients) that NFS has historically lacked.

Note :- Daemon : In Unix and other multitasking computer operating systems, a daemon is a computer program that runs as a backgroundprocess, rather than being under the direct control of an interactive user.

www.myitweb.weebly.com What is Samba ?

1. Computers running Windows 95 or greater use a protocol called Server Message Block (SMB) to communicate with each other and to share services such as file and print sharing.

2. Using a program called Samba, you can emulate the SMB protocol and connect your Red Hat Network to a Windows network to share files and printers.

3. The Linux PC icon appears in the Windows Network Neighborhood window, and the files on the Linux PC can be browsed using Windows Explorer.

Installing Samba

1. Before you can use Samba to connect to the Windows computers, it must first be installed on the Linux PC.

2. All current distributions of Linux include Samba, but it may not have been installed during the system installation.

3. All current distribution of RHEL include three Samba packages: Samba, Samba-client, and Samba common.

4. Even if it is has been installed, you should always check for the latest version, to find out if any problems have been fixed by the latest release, and to install it if necessary.

5. To see if Samba is installed on your system, type the following: rpm -q samba

www.myitweb.weebly.com

7. If Samba is installed, the RPM query returns the version number as shown in Figure

8. The latest version of Samba (2.0.7 as of this writing) can be obtained at Samba’s Web site located at http://www.samba.org.

9. After downloading the Samba RPM file, install it as follows (“name of file” is the version number downloaded):

rpm -i samba(name of file)

Using Compressed Version

1. If you are unable to download the RPM version, or you want to compile the program yourself, download the file samba-latest.tar.gz.

2. Extract the file using the following command: tar -xfvz samba-latest.tar.gz

3. Change to the directory containing the extracted files (usually /usr/src) and then type : ./configure

www.myitweb.weebly.com

4. Press Enter and wait for the command prompt to return. From the command prompt type : make

5. Press Enter and wait for the command prompt to return. Finally, type

install from the command prompt.

www.myitweb.weebly.com

Configuring the Samba Server

1) Beginning with version 2.0 Samba includes a utility called SWAT, the Samba Web Administration Tool. This tool makes setting up Samba very easy.

2) The samba configuration file is called smb.c onf and is located in /etc/samba directory by the installation program, a smb.conf file was created during the installation that can be used for reference and modification.

3) SWAT enables you to use a Web browser as the interface to /etc/smb.conf and makes the necessary modifications to this file.

4) The smb.conf file is divided into several sections, Each section contains a list of options and values in the format:

option = value some of them are :

5) [global] :

The first section of the smb.conf file is the [global] section.

There are various option available with variety of respective values. Example :

[global]

workgroup = ONE Explanation :

This is global section and has value workgroup.

workgroup = ONE is the name of the workgroup shown in the

identification tab of the network properties box on the Windows computer.

www.myitweb.weebly.com

[homes], is used to enable the server to give users quick access to their home directories.

Example : [homes]

comment = Home Directories read only = No

Explanation :

comment = Home Directories is a comment line which has purpose of

user understanding.

read only = No specifies that users can write to their directories. 7) [printers] :

This section sets the options for printing. Example :

[printers]

path = /var/spool/samba Explanation :

path = /var/spool/samba is the location of the printer spool directory.

Note :

Spool Directory : spool refers to the process of placing data in a temporary

working area for another program to process. The most common use is in writing files on a magnetic tape or disk and entering them in the work queue (possibly just linking it to a designated folder in the file system) for another process. Spooling is useful because devices access data at different rates. Spooling allows one program to assign work to another without directly communicating with it.

www.myitweb.weebly.com

Creating Samba Users

1) You can convert all of your system users to Samba users by running the following command:

cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd

2) To create passwords for your users by using the smbpasswd command and the user’s name as shown here:

[root@terry terry]# smbpasswd terry Output:

New SMB password:

Retype new SMB password: Password changed for user terry

Starting Samba Server

Documento similar