Solved

smbmount - a bug ?

Posted on 2000-03-25
7
325 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
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

 
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

687 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