Solved

smbmount - a bug ?

Posted on 2000-03-25
7
290 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
  • 4
  • 3
7 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 50 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 40

Expert Comment

by:jlevie
Comment Utility
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
Comment Utility
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
Comment Utility
Bloody hell !!

I just re-read...

I was using smbumount /home...

not umount.

:-D

Nick
0
 
LVL 40

Expert Comment

by:jlevie
Comment Utility
Well that would do it...
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now