Samba - prevent locking of selected files over network?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Samba - prevent locking of selected files over network?
# 1  
Old 07-14-2009
Samba - prevent locking of selected files over network?

I have a samba server which is serving a mixture of files. One main application uses a data file and creates a temporary working execution file at startup and holds that temp execution file open for the duration of the program's execution (but doesn't use the file at all after initial startup).

The problem is when a second user wants to run the application (and they all do) they cannot create/replace the temp file because it is file locked over the network by the other running copy of the application, despite the application not using it any more. The application is a long running program, we're talking hours at a time.

This results in us having to remove the file from the unix file system manually at user request so the next user using the application against the share succeeds in creating the temp file and starting up.

So the question is, is it possible to selectively disable file locking over the network in samba (preferably by regex)?
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Avoid locking between two files:

Hi frnz, I have requirement as follows.. There are two Modules say A and B...n both have few set of files..we have one script which read these files and load into database(vertica) table..while running script smtimes i encounter an error like one table is getting loaded from A module file... (7 Replies)
Discussion started by: gnnsprapa
7 Replies

2. Linux

Samba: Network Route was not found

Assalam o Alaikum! After configuring and starting service of samba, when I access shared folder from windows XP it gives this error " Network Route was not found". My server IP 192.168.1.252, client is on same network. selinux is disabled smb,conf: workgroup = WORKGROUP server string =... (2 Replies)
Discussion started by: ukengr
2 Replies

3. Emergency UNIX and Linux Support

Samba server does not show up in Windows Network Places

Hi all, I have run into this problem while trying to setup a CentOS based NAS for a friend of mine. We are using CentOS 6. The share on server can be accessed by it's IP. I have setup netbios name for the server. But that does not help. We need it to show up on Windows Network Places... (3 Replies)
Discussion started by: admin_xor
3 Replies

4. Solaris

samba network path not found

Hello I am new to solaris samba. After configuring samba through swat I can see the the machine listed under windows workgroup computers. when selected it shows the shared directories, But when trying to connect to shares shows a error network path not found. At the same time solaris network... (5 Replies)
Discussion started by: kc2dws
5 Replies

5. Linux

Auto map network drive using SAMBA with batch file

Hi everyone. I have several shares (see smb.conf below). Each setup fairly similarly, and several groups. My end goals are: 1) to have the share automatically map as the P: drive to members of the employees group 2) to have the share automatically map as the t: drive to members of the tech... (0 Replies)
Discussion started by: unassassinable
0 Replies

6. UNIX for Dummies Questions & Answers

using wget on selected network interfaces

Hi there, I have a Linux Debian server with 2 network cards each connected through a different gateway : auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.1.224 netmask 255.255.255.0 gateway 192.168.1.1 auto eth1 iface eth1 inet... (5 Replies)
Discussion started by: chebarbudo
5 Replies

7. AIX

Locking a file when using VI to prevent multiple-edit sessions by diff users

At the office, we often have to edit one file with VI. We are 4-6 workers doing it and sometimes can be done at the same time. We have found a problem and want to prevent it with a file lock. Is it possible and how ? problem : Worker-a starts edit VI session on File-A at 1PM Worker-b... (14 Replies)
Discussion started by: Browser_ice
14 Replies

8. Filesystems, Disks and Memory

How to connect to a Network disk using SAMBA

Hi, I have a network disk that runs windows xp embedded. It doesnt support NFS. But Samba is supported. How do i connect to it through solaris 9. What are the steps required. I have the IP address of the drive. Thanks (1 Reply)
Discussion started by: R00tSc0rpi0n
1 Replies
Login or Register to Ask a Question
TDBBACKUP(8)															      TDBBACKUP(8)

NAME
tdbbackup - tool for backing up and for validating the integrity of samba .tdb files SYNOPSIS
tdbbackup [-ssuffix] [-v] [-h] DESCRIPTION
This tool is part of the samba(1) suite. tdbbackup is a tool that may be used to backup samba .tdb files. This tool may also be used to verify the integrity of the .tdb files prior to samba startup or during normal operation. If it finds file damage and it finds a prior backup the backup file will be restored. OPTIONS
-h Get help information. -s suffix The -s option allows the adminisistrator to specify a file backup extension. This way it is possible to keep a history of tdb backup files by using a new suffix for each backup. -v The -v will check the database for damages (currupt data) which if detected causes the backup to be restored. COMMANDS
GENERAL INFORMATION The tdbbackup utility can safely be run at any time. It was designed so that it can be used at any time to validate the integrity of tdb files, even during Samba operation. Typical usage for the command will be: tdbbackup [-s suffix] *.tdb Before restarting samba the following command may be run to validate .tdb files: tdbbackup -v [-s suffix] *.tdb Samba .tdb files are stored in various locations, be sure to run backup all .tdb file on the system. Important files includes: o secrets.tdb - usual location is in the /usr/local/samba/private directory, or on some systems in /etc/samba. o passdb.tdb - usual location is in the /usr/local/samba/private directory, or on some systems in /etc/samba. o *.tdb located in the /usr/local/samba/var directory or on some systems in the /var/cache or /var/lib/samba directories. VERSION
This man page is correct for version 3.0 of the Samba suite. AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. The tdbbackup man page was written by John H Terpstra. TDBBACKUP(8)