Windows XP Windows 7 Windows 2003 Windows Vista Windows教程綜合 Linux 系統教程
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟件教程
 Windows教程網 >> Linux系統教程 >> Linux系統常見問題解答 >> Linux下使用Samba服務器舉例

Linux下使用Samba服務器舉例

日期:2017/1/20 17:40:51      編輯:Linux系統常見問題解答

實驗環境:

Vbox下,Rehat5虛擬機

使用samba服務器

目的:使用samba服務器將文件上傳到服務器上

[root@rh55 ~]# service smb start //報錯,沒有smb服務

smb: unrecognized service

\

//接下來安裝samba服務器

[root@rh55 ~]# mount /dev/cdrom /media/

mount: block device /dev/cdrom iswrite-protected, mounting read-only

[root@rh55 ~]# yum install -y samba-* --使用yum安裝軟件包,關於yum的使用請查閱相關資料

Loaded plugins: rhnplugin, security

This system is not registered with RHN.

RHN support will 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

---> Package 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 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.1GB/s | 24 MB 00:00

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: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!

[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.

\

\

\

 

將需要的文件拷貝到共享的oracle目錄下,如下所示:

\

至此,完成對Samba服務器使用的配置

***********************************************聲明************************************************

原創作品,出自 “深藍的blog” 博客,歡迎轉載,轉載時請務必注明出處(http://blog.csdn.net/huangyanlong)。

Copyright © Windows教程網 All Rights Reserved