I am trying to setup a samba script to be run by cron on backup time. I am trying to mount a Windows 2000 stand alone
server shares.
I tried both variants:
smbmount '\\servername\sharename' /mnt/backup -o username=user1,password="password"
smbmount //servername/sharename /mnt/backup -o username=user1,password="password"
and both are working fine sometimes (30%) and sometimes (70%) are working but the command prompt is not returning and
the script are failing.
If I run both command by hand also I got the share mounted and the shell cursor is not coming back. If I run ^C and use
mount I can see that the share was mounted.
Any hint what should I do to get back the shell prompt always, after I run the smbmount? (I always run umount
/mnt/backup between mounts).
Thank you,
Chris P.
thanks,
joe
**********************************
My post to linux.redhat.misc and comp.protocols.samba
**********************************
Here is the command I am using:
mount -t smbfs //computername/c$ /mnt/mountname -o
workgroup=domainname,username=scripts,password=xxxxxx
The problem is that sometimes it mounts right away and works perfectly,
but other times the command just hangs forever until I interrupt it.
After a umount I attemt to mount it again and the command hangs, however
most of the time it successfully mounts but the command is still
stalled! Any ideas? I have tried the commands smbmount, mount.smb, and
mount -t smbfs. I think it has something to do with the timing of
authentication on the Windows machine after a umount.
thanks
Red Hat 8.0
Kernel 2.4.20-18.9
bash-2.05b-20.1
mount-2.11y-9
samba-2.2.7a-8.9.0
Red Hat 9.0
Kernel 2.4.20-18.9
bash-2.05b-20.1
mount-2.11y-9
samba-2.2.7a-8.9.0
Red Hat 8.0
kernel-2.4.18-26.8.0
bash-2.05b-5
mount-2.11r-10
samba-2.2.5-10
But only sporadically on this system, leaving the shell hanging: