having an odd issue trying to log in to an xp home share
from mandriva linux 2007.1.
have a bash script in linux that tries to log on to the
xp share with this line:
Code:
sudo smbmount //D200/Capture\ \(E\) $HOME/mnt/d200 -o username=D200,password=xp-password-here,rw
as you can see, the xp password is included in the smbmount
command. i spite of that, though, i am asked for a password.
this only happens the first time i try to log in to the xp
box. after that, the same script running on different boxes
can log in freely to the xp box.
if it was that simple, though, i could just do a smbmount
and then unmount just before i ran the script so things
would be ok. problem is that there seems to be some kind of
timeout in play here.
when i tested the scripts on a small project they worked
fine. on an actual run, though, that takes a long time, the
timeout seems to come into play and i'm again asked for the
password. needless to say, this gums up the running of the
script.
i also noticed this when i was debugging the script. if i
ran a couple of tests back to back, everything was fine. if
i had to take time to rework something in the script, though,
i'd be asked for the password again.
how can i get around this?
is there a timeout setting somewhere in xp?
on the other hand, could this have something to do with the
sudo command that preceeds the smbmount command?
i just installed sudo, specifically for the purpose of
running this script.
could it be sudo that's asking for the password?
how can i check that?
the password is the same for all of the boxes and accounts.
it's a small network i use here at home.
thanks for any insights,
BabaG