bl双性强迫侵犯h_国产在线观看人成激情视频_蜜芽188_被诱拐的少孩全彩啪啪漫画

Linux服務器---安裝samba-創新互聯

安裝samba  

創新互聯公司專注于渝中企業網站建設,響應式網站設計,成都商城網站開發。渝中網站建設公司,為渝中等地區提供建站服務。全流程按需求定制設計,專業設計,全程項目跟蹤,創新互聯公司專業和態度為您提供的服務

1 、檢測samba是否安裝,如果沒有,那么可以使用yum來安裝。至少需要安裝3個軟件:samba, samba-client、samba-common

[root@localhost   pub]# rpm -qa | grep samba

samba-winbind-clients-3.6.9-164.el6.i686

samba-client-3.6.9-164.el6.i686

samba-common-3.6.9-164.el6.i686

samba4-libs-4.0.0-58.el6.rc4.i686

samba-winbind-3.6.9-164.el6.i686

[root@localhost   pub]# yum install y samba samba-client samba-common      // 如果沒有,那么可以用此命令安裝

 

2 、創建共享目錄

[root@localhost   /]# mkdir /wj        // 創建目錄

[root@localhost   /]# chmod 777 /wj   // 設置權限

 

3 、修改配置文件“/etc/samba/smb.cnf”

[root@localhost   /]# gedit /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   = share           // 這里默認是 user ,改為 share ,這樣不用輸入密碼就可訪問

    passdb backend = tdbsam

 

    [wj]                // 創建共享目錄配置

    comment=wj       // 名字

    path=/wj         // 路徑

    read only=no    // 是否只讀,這里為 no ,這樣用戶就可以創建文件夾

    guest ok=yes    // 是否允許 guest 用戶登錄

    browseable=yes // 是否可以瀏覽目錄

 

4 、修改防火墻,打開tcp的端口137、138、139、445

[root@localhost wj]# gedit /etc/sysconfig/iptables

-A INPUT -m state --state NEW -m tcp -p tcp --dport 137 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 138 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 445 -j ACCEPT

 

 [root@localhost wj]# service iptables restart

iptables :將鏈設置為政策   ACCEPT filter nat                [ 確定 ]

iptables :清除防火墻規則:                                  [ 確定 ]

iptables :正在卸載模塊:                                    [ 確定 ]

iptables :應用防火墻規則:                                  [ 確定 ]

iptables :載入額外模塊: nf_conntrack_ftp                   [ 確定 ]

 

5 、啟動smb服務

[root@localhost   wj]# service smb start

啟動 SMB 服務:                                             [ 確定 ]

 

6 、測試,在終端輸入命令“testparm”,可以看到共享目錄的信息

[root@localhost   wj]# testparm

Load smb config   files from /etc/samba/smb.conf

rlimit_max:   increasing rlimit_max (1024) to minimum Windows limit (16384)

Processing   section "[homes]"

Processing   section "[printers]"

Processing   section "[wj]"

WARNING: The security=share   option is deprecated

Loaded services   file OK.

Server role:   ROLE_STANDALONE

Press enter to   see a dump of your service definitions

[global]

    workgroup = MYGROUP

    server string = Samba Server Version %v

    security = SHARE

    log file = /var/log/samba/log.%m

    max log size = 50

    idmap config * : backend = tdb

    cups options = raw

 

[homes]

    comment = Home Directories

    read only = No

    browseable = No

 

[printers]

    comment = All Printers

    path = /var/spool/samba

    printable = Yes

    print ok = Yes

    browseable = No

 

[wj]

    comment = wj            // 名字

    path = /wj              // 路徑

    read only = No         // 是否只讀

    guest ok = Yes         // 是否允許 guest 訪問

 

7 、從windows測試,按下快捷鍵“window+r”,在彈出的窗口輸入命令“smb:\\192.168.0.113”,可以看到本機的共享目錄

Linux服務器---安裝samba

Linux服務器---安裝samba

做了一個Linux學習的平臺,目前出來一個雛形,各位可以參考使用
鏈接: https://pan.baidu.com/s/1GOLVU2CbpBNGtunztVpaCQ   密碼:n7bk

Linux服務器---安裝samba

新聞名稱:Linux服務器---安裝samba-創新互聯
標題路徑:http://vcdvsql.cn/article46/jighg.html

成都網站建設公司_創新互聯,為您提供微信公眾號網站設計公司網站改版商城網站定制開發App設計

廣告

聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯

成都定制網站網頁設計