HP-UNIX掛載WINDOWS共享文件夾

网友投稿 776 2022-09-22

HP-UNIX掛載WINDOWS共享文件夾

HP-UNIX掛載WINDOWS共享文件夾

root&test#/sbin/fs/nfs/mount -F nfs -o username=tip password=erpback.200 rw,suid, 192.168.1.1:/tip /backnfs mount: illegal file system specific option: username=tip

usage:  mount [-l][-v|-p]         mount [-F FStype][-eQ] -a         mount [-F FStype][-eQrV][-o specific_options]                 { special | directory }         mount [-F FStype][-eQrV][-o specific_options]                 special directory

出錯,查找使用cifsclient來配置

修改cifsclient下的參數RUN_CIFSCLIENT=1,默認為0,表示啟動cifsclient服務。

root&test#vi /etc/rc.config.d/cifsclient "/etc/rc.config.d/cifsclient" [唯讀] 13 行, 481 個字元  #!/sbin/sh ## ##  File:         /etc/rc.config.d/cifsclient ##  Description:  Startup configuration file for HP CIFS Client ##  CIFS-Client:  @(#)HP CIFS Client - Version A.02.02.01 ##  Revision:     @(#)/etc/rc.config.d/cifsclient: $Revision: 1.2 $ ## ##  _______if_______   _____________________then________________________ ##  RUN_CIFSCLIENT=1   CIFS Client starts when system enters run level 2 ##  RUN_CIFSCLIENT=0   CIFS Client must be started manually ##

RUN_CIFSCLIENT=1

root&test#/opt/cifsclient/bin/cifsclient startCIFS Client started; process id: 13780 root&test#mkdir backuproot&test#cd backuproot&test#cifsmount //192.168.1.1/tip /backupUNIX: Device busy root&test#cd /root&test#cifsmount //192.168.1.1/tip /backuproot&test#cd /backupl-bash: cd: /backup: 權限不符 root&test#cd /backup-bash: cd: /backup: 權限不符 root&test#bdfFilesystem          kbytes    used   avail %used Mounted on /dev/vg00/lvol3    2097152  978664 1109808   47% / /dev/vg00/lvol1    2024376   42216 1779720    2% /stand /dev/vg00/lvol8    8388608 3333360 5018496   40% /var /dev/vg00/lvol7    4194304 1480760 2692408   35% /usr /dev/vg00/lvol9    15728640 4835694 10552748   31% /u /dev/vg00/lvol4    2097152  794704 1292968   38% /tmp /dev/vg00/lvol6    8388608 3100184 5247136   37% /opt /dev/vgidp/lvidp   104837120 9521520 94570952    9% /ipeg /dev/vg00/lvol5    15728640 9267680 6410512   59% /home /dev/vghist/lvhist 209666048 185176224 24298560   88% /hist bdf: /backup: Permission deniedroot&test#cifsumount /backuproot&test#bdfFilesystem          kbytes    used   avail %used Mounted on /dev/vg00/lvol3    2097152  978664 1109808   47% / /dev/vg00/lvol1    2024376   42216 1779720    2% /stand /dev/vg00/lvol8    8388608 3333360 5018496   40% /var /dev/vg00/lvol7    4194304 1480760 2692408   35% /usr /dev/vg00/lvol9    15728640 4835694 10552748   31% /u /dev/vg00/lvol4    2097152  794704 1292968   38% /tmp /dev/vg00/lvol6    8388608 3100184 5247136   37% /opt /dev/vgidp/lvidp   104837120 9521520 94570952    9% /ipeg /dev/vg00/lvol5    15728640 9267680 6410512   59% /home /dev/vghist/lvhist 209666048 185176224 24298560   88% /hist root&test#cd /backuproot&test#ls root&test#cd .. root&test#cifslogin 192.168.1.1 -U tip -D CRB -stip's password on 192.168.1.1:  LOC: Netbios session refused LOC: Netbios session refused

修改配置文件cifsclient.cfg文件中smbOverTcp 的參數為yes

root&test#vi /etc/opt/cifsclient/cifsclient.cfg"/etc/opt/cifsclient/cifsclient.cfg" 355 行, 13514 個字元  # Name:    cifsclient.cfg # Project: HP CIFS Client # Author:  Christian Starkjohann <cs@obdev.at>, Hewlett-Packard Company # $Revision: 1.32 $ # Tabsize: 4 # (c) Copyright 1998-2004 by Christian Starkjohann.  All Rights Reserved. # (c) Copyright 1999-2006 by Hewlett-Packard Company.  All Rights Reserved. # @(#)HP CIFS Client - Version A.02.02.01

# ------------------------------------------------------------------------- # # ------------------------ Framework Configuration ------------------------ # # ------------------------------------------------------------------------- #

smbOverTcp = yes;                   # if set to "yes", tcpPort parameter is ignored

root&test#/opt/cifsclient/bin/cifsclient restartNo CIFS filesystems to unmount. The CIFS Client has been shut down. CIFS Client started; process id: 13967 root&test#cifslogin 192.168.1.1 -U tip -D CRB -stip's password on 192.168.1.1:  root&test#cifsmount //192.168.1.1/tip /backup -sroot&test#bdfFilesystem          kbytes    used   avail %used Mounted on /dev/vg00/lvol3    2097152  978664 1109808   47% / /dev/vg00/lvol1    2024376   42216 1779720    2% /stand /dev/vg00/lvol8    8388608 3333376 5018480   40% /var /dev/vg00/lvol7    4194304 1480760 2692408   35% /usr /dev/vg00/lvol9    15728640 4835694 10552748   31% /u /dev/vg00/lvol4    2097152  794704 1292968   38% /tmp /dev/vg00/lvol6    8388608 3100184 5247136   37% /opt /dev/vgidp/lvidp   104837120 9521520 94570952    9% /ipeg /dev/vg00/lvol5    15728640 9267680 6410512   59% /home /dev/vghist/lvhist 209666048 185176224 24298560   88% /hist 192.168.1.1:/tip                    1351678968  471080 1351207888    0% /backuproot&test#cd /backup root&test#lsnew root&test#vi lishao"lishao" [新檔案]  jlfdjaslfjal ~ ~ "lishao" [新檔案] 1 行, 13 個字元  root&test#lslishao  new root&test#cifslist  Mounted Object                      Mountpoint                          State  ------------------------------------------------------------------------------- \\192.168.1.1\tip               /backup                             MS     =============================================================================== Server            Local User        Remote User       Domain            State  ------------------------------------------------------------------------------- 192.168.1.1      root              tip            CRB               LS

打完收工。

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:什么是分布式缓存(开源的分布式缓存)
下一篇:类unix目录类 dirent.h   vs2013
相关文章

 发表评论

暂时没有评论,来抢沙发吧~