歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> 更多Linux >> SAMBA FOR HP-UX的配置

SAMBA FOR HP-UX的配置

日期:2017/2/27 9:36:24   编辑:更多Linux

 軟件環境:samba-2.0.7.tar.gz   操作系統:HP-UX 11。00   ***********************************************     Step1:<解壓軟件>     gzip -d samba-2.0.7.tar.gz   tar -xvf samba-2.0.7.tar   @生成samba-2。0。7目錄   ***********************************************   Step 2:   #cd samba-2.0.7/source   #configure(--help)   #make install(編譯samba)   #cp ./samba-2.0.7/example/smb.conf.default /usr//local/samba/lib/smb.conf   (到此samba安裝已經基本完成,先來的工作就是配置!)   *****************************************************************   Step 3:(配置smb。conf)   [global]   workgroup =talent   netbios name=l1000   passwd program=/usr/local/samba/bin/smbpasswd   smb passwd file=/usr/local/samba/private/smbpasswd   server string =Welcome to Samba Server/HP-UX   guest account=root(也可以是其他用戶,你所設置的用戶和你win用戶訪問你的權限是相關的)   security =share(有三種方式:share,user,server)   passWord server =l1000   encrypt passwords = yes   wins support = yes   lock Directory = /usr/local/samba/var/locks   share modes = yes   [public]   comment = Public Stuff   path = /frankswf(unix下,你所想共享的目錄)   public = yes   writable = yes   printable = no   write list = @staff   guest ok=yes     配置/etc/services   netbios-ssn 139/tcp   netbios-ns  137/udp   運行#/usr/local/samba/bin/testparm測試的的服務   *******************************************   Step 4:運行samba   #/usr/local/samba/bin/nmbd -D   #/usr/local/samba/bin/smbd -D     進入你的win下的網上鄰居,哈哈。。。看到unix了。(windows———〉hp-ux)  在unix使用/usr/local/samba/bin/smbclient //win-hostname/share directory/  成功了,我們可以互相訪問了。




Copyright © Linux教程網 All Rights Reserved