zoukankan      html  css  js  c++  java
  • Linux通过使用Sambaserver示例

    Linux通过使用Sambaserver示例

    实验环境:

    Vbox下一个。Rehat5虚拟机

    使用sambaserver

    目的:使用sambaserver将文件上传到server上

    [root@rh55 ~]# service smb start          //报错,没有smb服务

    smb: unrecognized service



    //接下来安装sambaserver

    [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文件夹下,例如以下所看到的:


    至此,完毕对Sambaserver使用的配置




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

    原创作品,出自 “深蓝的blog” 博客。欢迎转载,转载时请务必注明出处(http://blog.csdn.net/huangyanlong)。

    表述有错误之处,请您留言,不胜感激。

    提醒:点击文件夹,更有助于您的查看。

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





















    版权声明:本文博客原创文章,博客,未经同意,不得转载。

  • 相关阅读:
    C#中 File,Directory,FileInfo,DirectoryInfo区别与应用
    C#中设置开机自动运行和关机
    C# 线程手册 第三章 使用线程 小心死锁
    C# WinForm判断Win7下是否是管理员身份运行
    C#应用MemoryStream提高File读取速度
    CodeforcesDouble Profiles
    SRM533 D1 L1
    SRM532 D1 L2
    SRM533 D2 L3
    次小生成树 | 割点 | 割边
  • 原文地址:https://www.cnblogs.com/blfshiye/p/4677183.html
Copyright © 2011-2022 走看看