Example of using Samba server under Linux
Lab Environment:
VBox, REHAT5 virtual machine
using the Samba server
Purpose: Use the Samba server to upload files to the server
[[Email protected] ~]# service SMB start //error, no SMB services
Smb:unrecognized Service
//Next Install Samba server
[Email protected] ~]# mount/dev/cdrom/media/
Mount:block Device/dev/cdrom iswrite-protected, mounting read-only
[[email protected] ~]# yum install-y samba-* --use Yum to install the package, please refer to the relevant information regarding the use of Yum
Loaded Plugins:rhnplugin, security
This system isn't registered with the portal.
Portal support would be disabled.
Base | 1.3 KB 00:00
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:3.0.33-3.28.el5 setto be updated
--processing Dependency:perl (CONVERT::ASN1) for Package:samba
---> samba-swat.i386 0:3.0.33-3.28.el5set to be updated
--Running Transaction check
---> Package perl-convert-asn1.noarch0:0.20-1.1 set updated
--Finished Dependency Resolution
Dependencies resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
Samba i386 3.0.33-3.28.el5 base 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 K
Transaction Summary
================================================================================
Install 3 Package (s)
Upgrade 0 Package (s)
Total Download size:24 M
Downloading Packages:
--------------------------------------------------------------------------------
Total 8.1GB/S | MB 00:00
Running Rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing:p ERL-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:3.0.33-3.28.el5 samba-swat.i386 0:3.0.33-3.28.el5
Dependency installed:
Perl-convert-asn1.noarch 0:0.20-1.1
complete!
[[email protected] ~]# service SMB start
Starting SMB services: [OK]
Starting NMB services: [OK]
[Email protected] ~]# smbpasswd-a Oracle
New SMB Password:
Retype new SMB Password:
Added user Oracle.
Copy the required files to the shared Oracle directory, as follows:
Now, complete the configuration used for the Samba server
*********************************************** declaration ***************************************** *******
Original works, from the "Blue Blog" blog, Welcome to reprint, please be sure to indicate the source (Http://blog.csdn.net/huangyanlong).
There is an error in the statement, please leave a message, greatly appreciated.
Reminder: Click on the table of contents, more helpful to your view.
*************************************************************************************************** **