免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3011 | 回复: 1

hpux上无法正常使用cifsclient [复制链接]

论坛徽章:
0
发表于 2009-11-29 17:53 |显示全部楼层
大家好:
    我最近在做一个实验,就是在windows2003上提供一个共享目录,然后在hpux11.23上使用cifsclient 来mount此共享目录,但总是报错,我的做法是:
1、在windows2003上共享 一个test目录
2、在hpux11.23上启动cifsclient服务(cifsclient start)
3、编辑/etc/hosts,增加windows2003的ip和主机名,保证nslookup能解析通过
4、cifsmount windows2003:/test /cifs
5、cifslist可以查看到
#cifslist
Mounted Object                      Mountpoint                          State
-------------------------------------------------------------------------------
                                                                        S     
\\WINDOWS2003\TEST                  /cifs                               M     
===============================================================================
Server            Local User        Remote User       Domain            State
-------------------------------------------------------------------------------
6、cifslogin windows2003 root
root's password on windows2003: XXXX
LOC: Netbios session refused
LOC: Netbios session refused

就卡在这始终过不去,尝试修改/etc/opt/cifsclient/cifsclient.cfg ,但现象都一样,不知大家谁碰到过这种情况,多谢!

论坛徽章:
0
发表于 2009-11-30 11:01 |显示全部楼层
貌似你CIFSMOUNT格式不对的,给你参考我做实验的过程。

----------------------------------------------------------------------------------------------
cifsmount -U test -P 123456 //prince/share /cdrom -I 192.168.1.129
注意//server为windows的主机名,千万不能为IP,会报错的,-I 后面为server的IP地址。

默认只有root能访问windows共享资源,如果要让其他用户访问,需要输入
cifslogin servername -U  serveruser
提示输入passwd,就OK了。
比如oracle用户需要访问//prince/share
cifslogin prince -U test

root@L2000:/cdrom#cifsmount
Name:
   cifsmount - mount CIFS filesystems
Usage:
   cifsmount [options] //<server>/<share> <mount_point>
Options:
    -r             Mount readonly
    -U <username>  Login on server as this user
    -D <domain>    Send this domain name to server
    -P <password>  Password given in commandline
    -I <IPaddress> Use this address or hostname for tcp connection
    -S             Read password from standard input (implies -N)
    -N             Don't prompt for a password
    -u             Allow sending password unencrypted
    -s             Store mount in mount database
    -h             Print short help and exit
    -v             Print version
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP