[Samba] How to stop mount.cifs remembering password

Andy Gibbs andyg1001 at hotmail.co.uk
Mon Apr 12 02:16:52 MDT 2010

Hi again,

Sorry to bump this, but I would be grateful for any insight anyone might 
have on my problem.  I don't know whether this is a error on my system(s), 
or an intentional feature!  Is there a better newsgroup I should approach 
about this?


"Andy Gibbs" wrote in message news:hp1is8$trc$2 at dough.gmane.org...

> Dear all,
> I'm fairly new to Samba and CIFS and, for that matter, Linux in general.
> I'm having a problem with "mount.cifs" as provided with Debian 5.  I'm
> afraid I cannot say what version of mount.cifs I have since doing
> "mount.cifs -V" does not (contrary to the message it shows when I do this)
> actually show the version, but rather how to use the program.
> The problem I have is that having successfully logged into a Windows 
> shared
> folder, I can subsequently log in *without* the correct password.
> So...
> mount.cifs \\\folder /mnt -o user=joebloggs,pass=correct
> umount /mnt
> mount.cifs \\\folder /mnt -o user=joebloggs,pass=incorrect
> At this point it has remounted and given me full access, even though I've
> got my password wrong the second time (and each subsequent time).  I can
> even do "-o user=user,guest".  If I change user, then I must get the
> password right at least once, but then once I have got it right, I then no
> longer need to get it right.  The problem is that anyone using the 
> computer
> after someone has accessed the Windows share, can also then access it
> without knowing the password.
> As far as I can see, and I'm no expert, this is not a Windows problem 
> since
> in Windows, connecting to the folder requires the correct password every
> time.
> Is there any way I can force mount.cifs to forget the correct password so
> that it requires it to be correct each time?
> I'm sorry if I have not provided the correct information: I will happily 
> do
> so if told what to provide!  I have tried the Samba website and Google for
> answers, but haven't found the right search phrase.  If I've missed
> something, I'll happily just receive a link to the right page.
> Thanks for any help!
> Andy

More information about the samba mailing list