Linux下使用Samba服务器举例

Linux下利用Samba服务器举个例子

首先配置本地yum源,供给在本机具备操作系统的iso安装文件,以下以Oracle
linux为例

第一配置本地yum源,必要在本机具备操作系统的iso安装文件,以下以Oracle
linux为例

Linux下接纳萨姆ba服务器比如

实验意况:

Vbox下,Rehat5虚拟机

# cd /etc/yum.repos.d
–将别的repo文件重命名
# ls
public-yum-el5.repo.1  public-yum-el5.repo.2  public-yum-el5.repo.bk

# cd /etc/yum.repos.d
–将其他repo文件重命名
# ls
public-yum-el5.repo.1  public-yum-el5.repo.2  public-yum-el5.repo.bk

使用samba服务器

指标:使用samba服务器将文件上盛传服务器上

[[email protected]
~]# service smb start //报错,没有smb服务

smb: unrecognized service

图片 1

//接下去安装samba服务器

[[email protected]
~]# mount /dev/cdrom /media/

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

[[email protected]
~]# 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!

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

图片 2

图片 3

图片 4

 

将索要的公文拷贝到共享的oracle目录下,如下所示:

图片 5

至此,达成对Samba服务器使用的安排

***********************************************声明**************************************************

原创文章,出自 “樱玫瑰杏黄的blog”
博客,款待转发,转发时请必得申明出处(

发挥有错误之处,请你留言,不胜感谢。

唤醒:点击目录,更推动你的查看。

*******************************************************************************************************

Linux下使用Samba服务器举个例子 实验意况: Vbox下,Rehat5虚构机
使用samba服务器 目标:使用samba服务器将文件上流传服…

–创造新repo文件,Server文件夹为rpm软件包的门径
# vi local_yum_el5.repo

–创造新repo文件,Server文件夹为rpm软件包的路径
# vi local_yum_el5.repo

[oelr5u8]
name=oelr5u8
baseurl=file:///mnt/Server
gpgcheck=0
enabled=1

[oelr5u8]
name=oelr5u8
baseurl=file:///mnt/Server
gpgcheck=0
enabled=1

# yum clean all

# yum clean all

Copyright @ 2015-2019 ca88 版权所有
网站地图xml地图