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
MASKTEST(1)							    Test Suite							       MASKTEST(1)

NAME
masktest - Find differences in wildcard matching between Samba's implementation and that of a remote server. SYNOPSIS
masktest {//server/share} [-U user%pass] [-d debuglevel] [-W workgroup] [-n numloops] [-s seed] [-a] [-E] [-M max protocol] [-f filechars] [-m maskchars] [-v] DESCRIPTION
masktest is a utility for detecting differences in behaviour between Samba's own implementation and that of a remote server. It will run generate random filenames/masks and check if these match the same files they do on the remote file as they do on the local server. It will display any differences it finds. This utility is used by the Samba team to find differences in behaviour between Samba and Windows servers. OPTIONS
-U user%pass Specify the user and password to use when logging on on the shares. This parameter can be specified twice (once for the first server, once for the second). -s seed Seed the random number generator with the specified value. -n numops Set the number of operations to perform. -a Print the operations that are performed. -M max_protocol Maximum protocol to use. -f Specify characters that can be used when generating file names. Default: abcdefghijklm. -E Abort when difference in behaviour is found. -m maskchars Specify characters used for wildcards. -v Be verbose VERSION
This man page is correct for version 4.0 of the Samba suite. SEE ALSO
Samba AUTHOR
This utility is part of the Samba[1] suite, which is developed by the global Samba Team[2]. masktest was written by Andrew Tridgell. This manpage was written by Jelmer Vernooij. NOTES
1. Samba http://www.samba.org/ 2. Samba Team http://www.samba.org/samba/team/ Samba 4.0 06/17/2014 MASKTEST(1)