SAMBAFORHP-UX的配置
SAMBAFORHP-UX的配置,SAMBAFORHP-UX的配置
软件环境: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/
成功了,我们可以互相访问了。