centos 6.4 samba 安裝配置(記錄)

來源:互聯網
上載者:User

標籤:style   blog   http   color   io   os   ar   for   檔案   

前提:    關掉防火牆    service iptables stop 

    或

    chkconfig iptables off (永久關閉防火牆)

    關閉SELinux

    setenforce 0   

    或

    vi /etc/sysconfig/selinux
    把 SELINUX=enforcing 修改為SELINUX= disabled 

    退出儲存,並且重啟

     

一    安裝    [[email protected] lee]# yum install samba smbfs smbclient
二    建立目錄    [[email protected] ~]$ mkdir share    [[email protected] ~]$ chmod 777 /home/lee/share/
三    修改samba設定檔    [[email protected] lee]# cp /etc/samba/smb.conf smb_backup.conf    [[email protected] lee]# vi /etc/samba/smb.conf                     將下面部分加入到smb.conf 末尾        [share]
 path = /share available = yes browseable = yes public = yes writable = yes

四    建立samba賬戶    [[email protected] lee]# touch /etc/samba/smbpasswd    [[email protected] lee]# smbpasswd -a lee

如果還不能訪問,嘗試修改/etc/samba/smb.conf# ----------------------- Standalone Server Options ------------------------## Scurity can be set to user, share(deprecated) or server(deprecated)## Backend to store user information in. New installations should# use either tdbsam or ldapsam. smbpasswd is available for backwards# compatibility. tdbsam requires no further configuration.
         security = user==>  security = share

來源: <http://blog.chinaunix.net/uid-8625039-id-3983932.html>  其他細節參考:http://www.cnblogs.com/mchina/archive/2012/12/18/2816717.html



來自為知筆記(Wiz)

centos 6.4 samba 安裝配置(記錄)

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.