Example of Samba server in Linux
Example of Samba server in Linux
Lab environment:
Rehat5 Virtual Machine in Vbox
Use samba Server
Objective: To use the samba server to upload files to the server
[Root @ rh55 ~] #Service smb start// Error reported, no smb service
Smb: unrecognized service
// Install the samba server
[Root @ rh55 ~] #Mount/dev/cdrom/media/
Mount: block device/dev/cdrom iswrite-protected, mounting read-only
[Root @ rh55 ~] #Yum install-y samba-* -- use yum to install the software package. For more information about yum usage, see
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Base | 1.3 kB
Setting up Install Process
Package samba-common-3.0.33-3.28.el5.i386 alreadyinstalled and latest version
Package samba-client-3.0.33-3.28.el5.i386 alreadyinstalled and latest version
Resolving Dependencies
--> Running transaction check
---> Package samba. i386. 0.33-3.28.el5 setto be updated
--> Processing Dependency: perl (Convert: ASN1) for package: samba
---> Package samba-swat.i386. 0.33-3.28.el5set to be updated
--> Running transaction check
---> Package perl-Convert-ASN1.noarch0: 0.20-1.1 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
========================================================== ==========================================================
Package Arch Version Repository Size
========================================================== ==========================================================
Installing:
Samba i386 3.0.33-3.28.el5 base 16 M
Samba-swat i386 3.0.33-3.28.el5 base 8.2 M
Installing for dependencies:
Perl-Convert-ASN1 noarch 0.20-1.1 base 41 k
Transaction Summary
========================================================== ==========================================================
Install 3 Package (s)
Upgrade 0 Package (s)
Total download size: 24 M
Downloading Packages:
--------------------------------------------------------------------------------
Total 8.1 GB/s | 24 MB
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: perl-Convert-ASN1 1/3
Error: failed to stat/media/RHEL_5.5 i386 DVD: No such file or directory
Installing: samba 2/3
Installing: samba-swat 3/3
Installed:
Samba. i386. 0.33-3.28.el5 samba-swat.i386. 0.33-3.28.el5
Dependency Installed:
Perl-Convert-ASN1.noarch 0: 0. 20-1.1
Complete!
[Root @ rh55 ~] #Service smb start
Starting SMB services: [OK]
Starting NMB services: [OK]
[Root @ rh55 ~] #Smbpasswd-a oracle
New SMB password:
Retype new SMB password:
Added user oracle.
Copy the required files to the shared oracle directory as follows:
So far, the configuration for Samba server has been completed
**************************************** *******Statement************************************************
Original works, from "Deep Blue blog" blog, welcome to reprint, reprint please be sure to indicate the source (http://blog.csdn.net/huangyanlong ).
Please leave a message if the statement is incorrect. Thank you very much.
Reminder: Click the directory to view the directory.
*****************************************************************************************************