mjbarber@hearst.com
2002-Jul-04 10:45 UTC
[Samba] Failed mount of Windows share on Linux box
System: Redhat 7.3 Kernel 2.4.18-5 Samba 2.2.5-1 [root@wptzfileserver root]# mount -t smbfs -o username=administrator,password=password,debug=4 //lnpznc078ph01/D$ /home/LotusNotes/ INFO: Debug class all level = 2 (pid 17329 from pid 17329) mount.smbfs started (version 2.2.5) added interface ip=192.168.67.21 bcast=192.168.67.255 nmask=255.255.255.0 resolve_lmhosts: Attempting lmhosts lookup for name lnpznc078ph01<0x20> getlmhostsent: lmhost entry: 127.0.0.1 localhost resolve_hosts: Attempting host lookup for name lnpznc078ph01<0x20> resolve_wins: Attempting wins lookup for name lnpznc078ph01<0x20> resolve_wins: WINS server == <192.168.67.12> bind succeeded on port 0 nmb packet from 192.168.67.12(137) header: id=17897 opcode=Query(0) response=Yes header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 answers: nmb_name=LNPZNC078PH01<20> rr_type=32 rr_class=1 ttl=0 answers 0 char ....C. hex 0000C0A8430F Got a positive name query response from 192.168.67.12 ( 192.168.67.15 ) Connecting to 192.168.67.15 at port 139 17329: session request ok 17329: session setup ok 17329: tconx ok execvp of smbmnt failed. Error was No such file or directory.smbmnt failed: 1 [root@wptzfileserver root]# Those of you familiar with Windows NT 4.0 servers know that I am attempting to connect to the D: drive through the hidden admin share. The username and password are correct. I can connect from a Windows 2000 box. This problem occurrs for every attempt to mount any windows shares. I am using the Linux box as a domain member authentication = DOMAIN. This problem was apparent to me in 2.2.4 and I was hoping to get different results with 2.2.5. Obviously not. smbclient tells me I have the share name correct. Any help would be great. Thanks, Michael Barber WPTZ/WNNE Computer Services Administrator Plattsburgh, NY USA
On Thu, 4 Jul 2002 mjbarber@hearst.com wrote: } [root@wptzfileserver root]# mount -t smbfs -o username=administrator,password=password,debug=4 //lnpznc078ph01/D$ /home/LotusNotes/ } [...] } Got a positive name query response from 192.168.67.12 ( 192.168.67.15 ) } Connecting to 192.168.67.15 at port 139 } 17329: session request ok } 17329: session setup ok } 17329: tconx ok } execvp of smbmnt failed. Error was No such file or directory.smbmnt failed: 1 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ There's your clue. "smbmnt" couldn't be found, so the final step failed. Jim -- Jim Watt wattjg@appliedbiosystems.com Applied Biosystems Voice (desk): +1 408 577 2228 3833 North First Street Fax: +1 408 894 9307 San Jose CA 95134-1701 Voice (main): +1 408 577 2200
I can mount shares on an xp server with: smbmount //AHAMM002/print$ /mnt/NetWork/AHAMM002/print$ But, it fails with mount -t smbfs. Also, make sure you are not getting caught by the special meaning of $ in the bash script. Joel> > System: Redhat 7.3 > Kernel 2.4.18-5 > Samba 2.2.5-1 > > [root@wptzfileserver root]# mount -t smbfs -o username=administrator,password=password,debug=4 //lnpznc078ph01/D$ /home/LotusNotes/ > INFO: Debug class all level = 2 (pid 17329 from pid 17329) > mount.smbfs started (version 2.2.5) > added interface ip=192.168.67.21 bcast=192.168.67.255 nmask=255.255.255.0 > resolve_lmhosts: Attempting lmhosts lookup for name lnpznc078ph01<0x20> > getlmhostsent: lmhost entry: 127.0.0.1 localhost > resolve_hosts: Attempting host lookup for name lnpznc078ph01<0x20> > resolve_wins: Attempting wins lookup for name lnpznc078ph01<0x20> > resolve_wins: WINS server == <192.168.67.12> > bind succeeded on port 0 > nmb packet from 192.168.67.12(137) header: id=17897 opcode=Query(0) response=Yes > header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes > header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0 > answers: nmb_name=LNPZNC078PH01<20> rr_type=32 rr_class=1 ttl=0 > answers 0 char ....C. hex 0000C0A8430F > Got a positive name query response from 192.168.67.12 ( 192.168.67.15 ) > Connecting to 192.168.67.15 at port 139 > 17329: session request ok > 17329: session setup ok > 17329: tconx ok > execvp of smbmnt failed. Error was No such file or directory.smbmnt failed: 1 > [root@wptzfileserver root]# > > > Those of you familiar with Windows NT 4.0 servers know that I am attempting > to connect to the D: drive through the hidden admin share. The username > and password are correct. I can connect from a Windows 2000 box. This > problem occurrs for every attempt to mount any windows shares. I am using > the Linux box as a domain member authentication = DOMAIN. This problem was > apparent to me in 2.2.4 and I was hoping to get different results with > 2.2.5. Obviously not. smbclient tells me I have the share name correct. > > Any help would be great. > Thanks, > Michael Barber > WPTZ/WNNE > Computer Services Administrator > Plattsburgh, NY USA > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
mjbarber@hearst.com
2002-Jul-07 10:37 UTC
[Samba] Failed mount of Windows share on Linux box
I was reading the message wrong. I thought it was unable to find the windows share. oops. I am compiling from the SRPM found on the samba website. With a stock kernel. Any guess where the command went or why I am missing it. You are right though. It is not in /usr/bin/ where I would expect to find it. Thanks for the help Michael Barber WPTZ/WNNE Computer Services Administrator Hearst-Argyle Inc. Plattsburgh, NY 12901 Jim Watt <wattjg@appliedbiosystems.com> on 07-04-2002 14:32:18 Please respond to Jim Watt <wattjg@appliedbiosystems.com> To: mjbarber@hearst.com cc: samba@lists.samba.org Subject: Re: [Samba] Failed mount of Windows share on Linux box On Thu, 4 Jul 2002 mjbarber@hearst.com wrote: } [root@wptzfileserver root]# mount -t smbfs -o username=administrator,password=password,debug=4 //lnpznc078ph01/D$ /home/LotusNotes/ } [...] } Got a positive name query response from 192.168.67.12 ( 192.168.67.15 ) } Connecting to 192.168.67.15 at port 139 } 17329: session request ok } 17329: session setup ok } 17329: tconx ok } execvp of smbmnt failed. Error was No such file or directory.smbmnt failed: 1 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ There's your clue. "smbmnt" couldn't be found, so the final step failed. Jim -- Jim Watt wattjg@appliedbiosystems.com Applied Biosystems Voice (desk): +1 408 577 2228 3833 North First Street Fax: +1 408 894 9307 San Jose CA 95134-1701 Voice (main): +1 408 577 2200