zoukankan      html  css  js  c++  java
  • redhat samba安装配置

    突然想要用,好久没配过这玩意了,再次配置一次,记录一下过程。

    1.挂载镜像
         mount -o loop ~/Desktop/RHEL_5.5 i386 DV.iso /mnt
         然后查看是否挂再成功。
     
    2.安装rpm包
         cd /mnt/Server,将相关rpm包先拷贝出来
    至少会用到:(安装期间若有依赖包没有安装,根据提示安装就好)
    perl-5.8.8-27.el5.i386.rpm
    perl-Convert-ASN1-0.20-1.1.noarch.rpm
    samba-common-3.0.33-3.28.el5.i386.rpm
    samba-3.0.33-3.28.el5.i386.rpm
    samba-client-3.0.33-3.28.el5.i386.rpm
     
    3.配置
         vi /etc/smb.conf
     
    ;[share]
    ;comment = Public Stu
    ;path = /home/frank
    ;public = yes
    ;writable = yes
    ;browseable = yes
    ;printable = no
    ;valid users = root frank

    [arm]
    comment = arm-kernel
    path = /disk/A9
    browseable = yes
     
    4.设置samba用户名和密码
         smbpasswd -a root
         接下来会提示设置密码

    [root@localhost samba]# smbpasswd --help
    smbpasswd: invalid option -- -
    When run by root:
    smbpasswd [options] [username]
    otherwise:
    smbpasswd [options]

    options:
    -L local mode (must be first option)
    -h print this usage message
    -s use stdin for password prompt
    -c smb.conf file Use the given path to the smb.conf file
    -D LEVEL debug level
    -r MACHINE remote machine
    -U USER remote username
    extra options when run by root or in local mode:
    -a add user
    -d disable user
    -e enable user
    -i interdomain trust account
    -m machine trust account
    -n set no password
    -W use stdin ldap admin password
    -w PASSWORD ldap admin password
    -x delete user
    -R ORDER name resolve order

     

    5.重启smb服务
         service smb restart
  • 相关阅读:
    ExtJS4 Panel中嵌套PDF
    从 JavaScript 数组去重谈性能优化(转)
    js中top、parent、frame
    “N”在Sql Server字段类型中的重要性 (转)
    IE下lineheight的BUG解决 (转)
    ExtJS4 Dialog
    Chrome启动后打开第一个网页很慢的解决方案(转)
    ExtJS4 Grid改变单元格背景颜色
    form表单
    Detect IFrame Load Event 探索Iframe的加载事件
  • 原文地址:https://www.cnblogs.com/black-mamba/p/4976373.html
Copyright © 2011-2022 走看看