I am building a OpenSUSE Linux Desktop for our users.
The build was patched with latest patches and had a bunch of software installed.
While testing I discovered that the user mounts to a windows 2003 server disconnected after an hour or so of inactivity on the mount.
Originally I was going to use SMB and have an icon on the desktop to connect to users home drive
[Desktop Entry]
Icon=network-workgroup
Type=Link
URL$e]=smb://servername/home$$/$USER1
X-SuSE-translate=true
However there is a problem with applications being able to write to smb connections in KDE 4. If I open a document form the SMB conection with openoffice it opens a blank document. This does not happen if I use Gnome.
I had some problems trying to get pam_mount to work so I went down the line of using a mount script that runs from
/etc/skel/.kde4/Autostart
and a umount script that runs from
/etc/skel/.kde4/Shutdown
I added users to sudoers to allow them to mount/umount without password. The script runs basically runs
mount -t cifs //servername/home$/username -o username=username ~/WinHome
However in testing I found the mount would disconnect, typing mount from a command line would show my mount had gone.
I originally thought it may be ‘Windows Server 2003 can drop idle connections after a specified time-out period (by default, 15 minutes)’
I changed a registry setting to increase the time however this did not fix the problem.
I then created a cron job to ls the mount every 15 mins, this seemed to help it lasted all day but dropped out over night.
Due to the SMB issue I thought it may be a KDE issue and possibly a Linux version issue.
I then built a default installations of
Mandriva 2010 with Gnome and just added the user to sudoers and did a sudo mount like the script.
The mount stayed connected overnight.
I then built a default installation of
OpenSUSE 11.2 with Gnome and just added the user to sudoers and did a sudo mount like the script.
The mount has stayed connected all day so far.
I then built a default installations of
Mandriva 2010 with KDE 4.3 and just added the user to sudoers and did a sudo mount like the script.
The mount has stayed connected all day so far.
I then built a default installation of
OpenSUSE with KDE4.3 and just added the user to sudoers and did a sudo mount like the script.
The mount disconnected after I checked it within an hour or so.
It appears OpenSUSE 11.2 and KDE 4.3 may have some issues, can anyone else verify this? Or have some ideas?