Solved

smbmount - a bug ?

Posted on 2000-03-25
7
317 Views
Last Modified: 2010-03-18
I have done a brief search here, and cannot find anything on this subject.

OK, have a network, and everything is hunky dory.

To mount a Win Drive on my Linux machine I have created 4 mount points for my 4 Windows machine drives thus:-
/home/winC  /home/winD  /home/winE  /home/winF [cdrom]

Apply:-

submount //<Windows Machine>/C /home/winC

and then get presented with password (as expected), enter password, and they mount fine, and are browseable in Linux as required :-)

But... if I make a typo in the smbclient <machine> part, or enter an incorrect password I get a device not found/busy MS type of error message, and nothing happens except the mount point becomes a file [52KB] (created 1974) (?) and the permissions are set so nobody (including root) has access to do anything with it.  I have done a page with 2 small screen dumps to aid you visualize the problem:-

http://www.nickw.co.uk/things/smb.htm

The only way I can remove these 'corrupted' folders is to re-boot!.

Is this a bug?  Is there any other way to delete these corrupt 'folders/files' other than rebooting?

Cheers,
Nick
0
Comment
Question by:Nick
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 50 total points
ID: 2656902
I don't exactly know where the problem is, but I do know what to do about it without rebooting. If the smbmount fails you can clear the mount point with a "umount /home/winC" and then re-issue the smbmount command with the correct data.
0
 
LVL 1

Author Comment

by:Nick
ID: 2657209
umount /home/winC

Yep, would work normally, but there is no directory/mount (after the 'failed' smbmount command) to unmount... it's recognised as a file ¿

I think this is a bug!

Nick

0
 
LVL 1

Author Comment

by:Nick
ID: 2657223
umount /home/winC

Yep, would work normally, but there is no directory/mount (after the 'failed' smbmount command) to unmount... it's recognised as a file ¿

I think this is a bug!

Nick

0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 40

Expert Comment

by:jlevie
ID: 2657265
Umm, that does look like a bug in something, but I'm not sure what. When I provoke the same failure (RedHat 6.1, Samba 2.0.5a-12), it doesn't garbage the mount point. It does case the mount point to be unusable until I unmount it or re-boot, hence my proposed answer.

Which Linux and Samba are you using?
0
 
LVL 1

Author Comment

by:Nick
ID: 2657364
Right, just done a deliberate incorrect password from console connecting to winD - the error message:-

tree connect failed: ERRSRV - ERRbadpw
smbmount: login failed
Could not umount /home/WinD: Device or resource busy
smbmount: exit

Then I get prompt back... jus tlooked, and got same 52 file created [winD]...

Specs:-

Linux 2.2.13-7mdk
KDE1.1.2
Samba 2.0.5a

Cheers,
Nick
0
 
LVL 1

Author Comment

by:Nick
ID: 2657373
Bloody hell !!

I just re-read...

I was using smbumount /home...

not umount.

:-D

Nick
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2657447
Well that would do it...
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question