samba軟體包介紹(七)

來源:互聯網
上載者:User

一、Samba項目開發---http://www.samba.org
二、Fedora core/RedHat Linux提供的軟體包
samba samba伺服器軟體包
samba-client samba用戶端工具
samba-common通用工具和庫

三、安裝Samba軟體包
1、安裝rpmdb-fedora/rpmdb-redhat軟體包(一般在第三第安裝光碟片)
#rpm -ivh rpmdb-fedora*.rpm
2、安裝samba軟體(一般都在第一張安裝光碟片)
#rpm -ivh --aid samba*.rpm
3、檢查軟體包的內容
#rpm -ql samba
#rpm -ql samba-common
#rpm -ql samba-client
 
四、Samba用戶端工具(常用)
1、smbtree
作用:顯示區域網路中的所有共用主機和目錄列表
用法:smbtree -[-b][-D][-U username%password]
2、nmblookup
作用:顯示一台主機的netbios主機名稱
3、smbclient
作用:顯示/登入區域網路中的共用資料夾
用法:smbclient -L host
      smbclient //host/share
4、smbtar
作用:遠程備份網路位置的檔案(需要稍作修改)
用法:smbtar -s server -u user -p password -x sharename -t output
例:smbtar -s win2000 -u redhat -p redhat -x shartname -t bak.tar
[root@server root]# tar tvf bak.tar

5、smbmount
作用:遠程掛載
smbmount //10.0.5.73/share /mnt -o username=yxm%yxm

五、Samba伺服器配置
1、修改設定檔/etc/samba/smb.conf
workgroup = workgroup
security = share
[sharename]
 path=/usr/share/docs
 comment=share documents
 public=yes
2、重新啟動smb 伺服器
#service smb restart
#chkconfig smb on
3、測試
#smbclient -L localhost -N

 

聯繫我們

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