Discussion Locked

Samba Disconnecting from NT Share

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I use the smbmount command to mount an NT share (a different server) to my Linux box. The share stays open for a while, then disconnects. After it drops off, if I try and do an ls command to see the shared directory on the Linux box, I get an Input/output error. I can do an smbmount command again to remount. Is there any way to keep the connection open permanently? I am using the share to connect via my Apache web server so it is important that it stays connected all the time.

Please help...
I am using the latest version of Samba on Red Hat 6.2

5 replies

by hasse mcse/brainbench

Hi!

Instead of using smbmount do this:
mount -t smbfs //my_NT_Srv/share /mnt/point

This is how I mount shares in RH6.2 and they stay connected until I dissmount them.

Also consider turning of the automounter if it is running or configure it not to disconnect that mount point after the timeout time.

/Hasse

by trieis

Run following command in Windows Nt Server like administrator

net config server /autodisconnect:0

This command disable inactivity time session.

This discussion is closed to new replies.