centos 安裝配置 samba 並實現與windows 共用

來源:互聯網
上載者:User

參考此處的安裝方法,如果沒網路的話 .

http://blog.chinaunix.net/space.php?uid=20715874&do=blog&cuid=733101

通常是有網路的, 所以沒必要那麼麻煩 。隨後就來 ^_^

--------------------------------------------------------------------

Host OS : Windows 7.

Guest OS : CentOS 5.7

Virtual Machine : Vmware Player 4 build.

Connection Type: Nat

--------------------------------------------------------------------

開啟 Terminal :

#yum install samba

#yum install system-config-samba

#setup disabled SELinux // 此處是為了讓外部存取CentOS 別被 SELinux 擋住啦

  |—Security Level Enabled // 修改

  |—Customize –> Allow inconing –> Samba 修改

#system-config-sabma

  |—Preference -> Samba Users -> Add User -> 如:

 

 |- Preference -> Server Settings ->Basic -> workgroup : workgroup

|- Preference -> Server Settings ->Basic -> Security : Encrypt Passwards: Yes

|- Add Share -> Access -> Only Allow access to specific users : ***(username)

|- Basic :

#/etc/init.d/smb start 啟動 samba
好了 , 至此可以訪問了 。

#/sbin/ifconfig (此步為了得到現在虛擬機器動態分配的地址,你可以給虛擬機器設定靜態ip)

 看一下 inet addr:192.168.72.128

回來Winodws OS , 在檔案管理工具器輸入
 \\192.168.72.128

OK , 成功訪問如下 :

 PS :

擴充一 :檔案夾許可權問題 <- 可以用chmod 777 *** 來修改 !

擴充二 : samba 檔案配置問題 <-  # vi /etc/samba/smb.conf 

擴充三 : samba 加入自啟動 <-  #vi /etc/gdm/custom.conf

剛入門網路, 很水, 希望備忘和能幫到需要的人 ^_^

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.