Sponsored Content
Special Forums IP Networking read/write,write/write lock with smbclient fails Post 302401247 by swatidas11 on Friday 5th of March 2010 09:17:40 AM
Old 03-05-2010
read/write,write/write lock with smbclient fails

Hi,
We have smb client running on two of the linux boxes and smb server on another linux system. During a backup operation which uses smb, read of a file was allowed while write to the same file was going on.Also simultaneous writes to the same file were allowed.Following are the settings in the smb.conf file:
lock directory =/var/samba/lock
locking=yes
strict locking = no
oplocks=yes
level2 oplocks = no
kernel oplocks =yes
raw read= yes
raw write = yes
Could anyone please let me know that what can I do to disallow read while write is going on and also restrict simultaneous writes?
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

read and write from a file

I have tried to show the file name whose size is greater than 200 byte in current directory. Please help me. ls -l | tr -s " " " " | cut -f 5,9 -d " " >out.txt #set -a x `cat out.txt` i=0 `cat out.txt` | while do read x echo $x #re=200 j=0 if }" < "200" ] then echo $j j=`expr $j... (2 Replies)
Discussion started by: rinku
2 Replies

2. Shell Programming and Scripting

Find all files with group read OR group write OR user write permission

I need to find all the files that have group Read or Write permission or files that have user write permission. This is what I have so far: find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}' It shows me all files where group read = true, group write = true... (5 Replies)
Discussion started by: shunter63
5 Replies

3. Programming

read/write files

Hi all, I have a problem with some read/write functions. I have a .bin file which contains a lot of structures as follows: struct alumno { char id; char apellido1; char apellido2; char nombre; float nota1p; float nota2p; float notamedia; char photofilename; }; What I have... (3 Replies)
Discussion started by: Attenea
3 Replies

4. Shell Programming and Scripting

How to write a directory lock shell script?

Hi there, pleas I want this script urgently. how to lock a directory by shell script? (12 Replies)
Discussion started by: joneggk
12 Replies

5. UNIX for Advanced & Expert Users

when a process fails to write to /dev/log

Hi , when a process fails to write to /dev/log ? (1 Reply)
Discussion started by: Gopi Krishna P
1 Replies

6. Programming

Need help about read() and write() on TCP/IP

HI I need to implement a client/server TCP application. the customer is the client and the bartender is the server. When the customer enter the Bar, client connects to the server Server should reply the client immediately. Other wise if the server is busy, it should send an update message... (10 Replies)
Discussion started by: lixiao1212
10 Replies

7. Shell Programming and Scripting

Setuid not working in Linux as script fails to write to file.

Hi, I have the following 3 test files to test setuid bit which if it works I would like to implement in our application. However setuid doesnot seem to be having any impact on my test below.Following are the 3 files of interest in /tmp/ folder. $ ls -ltr *env* -rw------- 1 g332008 users 6... (23 Replies)
Discussion started by: waavman
23 Replies

8. Shell Programming and Scripting

Is it possible to write write multiple cronjobs in shellscript??

Hi All, I need the answer of below question? 1) How to write multiple cronjobs in shellscript? Is there any way or we cant write in shellscript... Regards, Priyanka (2 Replies)
Discussion started by: pspriyanka
2 Replies

9. Programming

Interactive Python 3.5+ sys.stdout.write() AND sys.stderr.write() bug?

(Apologies for any typos.) OSX 10.12.3 AND Windows 10. This is for the serious Python experts on at least 3.5.x and above... In script format sys.stdout.write() AND sys.stderr.write() seems to work correctly. Have I found a serious bug in the interactive sys.stdout.write() AND... (2 Replies)
Discussion started by: wisecracker
2 Replies
AMSAMBA(8)						  System Administration Commands						AMSAMBA(8)

NAME
amsamba - Amanda Application to interface with smbclient DESCRIPTION
Amsamba is an Amanda Application API script. It should not be run by users directly. It uses smbclient to backup and restore data. The diskdevice in the disklist (DLE) must have the form '//CIFSHOST/SHARE/SUBDIR' where CIFSHOST is the CIFS host containing the data to be backed up, SHARE is the share to connect, and subdir is the subdirectory to backup. '/subdir' can be ommited, in which case the complete share is archived. Unlike most applications, amsamba backs up and restores data located on a different system from that where amsamba itself runs. The host containing the data is the CIFS host. In practice, amsamba is usually run on the same system as the Amanda server, with a DLE like localhost "//CIFSHOST/SHARENAME" amsamba-dumptype Include or exclude can be used, but not both. The path for 'exclude list' or 'include list' must be absolute path on the CIFS host. The estimate calculates the complete size of the share, without regard for include or exclude directives. It will be larger than the actual dump if you use include or exclude. Using 'estimate server' in the dumptype could give better estimate. PROPERTIES
This section lists the properties that control amsamba's functionality. See amanda-applications(7) for information on application properties and how they are configured. SMBCLIENT-PATH The path to the smbclient binary. The default is set when Amanda is built by the --with-smbclient configure option. GNUTAR-PATH The path to the gnutar binary. The default is set when Amanda is built by the --with-gnutar configure option. gnutar is used to create the index. AMANDAPASS Location of the amandapass file, defaulting to "$CONFIG_DIR/amandapass". Relative pathnames are relative to the configuration directory, "$CONFIG_DIR/<config>". Note that this file is located on the client, not on the server. The format of the file is as follow: Sharename User%Password Domain Sharename is '//HOST/SHARE' without the SUBDIR. Sharename can be quoted, it can be '*' to match all share, it can be '//pc-host/*' to match all share on pc-host. User is the username use to connect to the share. Password is the password use to connect to the share. '%Password' is optional if the user can connect to the share without password. 'User%Password' is optional, the user 'guest' without password is use to connect to the share. Domain is optional. Example: //another-pc/share otheruser%otherpw domain //another-pc/share otheruser%otherpw //another-pc/share myuser mydomain //another-pc/share myuser //another-pc/share ALLOW-ANONYMOUS This username without password is used to connect to the share if no matching entry is found in the amandapass file. DIRECTORY For restore command only, the data is recoved in that directory. Must be a unix path for "tar" RECOVER-MODE or a smb path for "smb" recover-MODE. RECOVER-MODE "tar" or "smb", default to "tar". If "tar", the data is recovered on the local machine, If "smb", the data is recovered on the smb client machine. INCLUDE AND EXCLUDE LISTS
This application supplies exclude lists via the smbclient -TX option. Normal shell-style wildcard expressions, using * and ?, are not supported. All expressions are matched only from the base directory of the DLE. Expressions that match a directory may have a leading or trailing "/". Example expressions: ./temp-files # exclude top-level dir "temp-files" entirely ./temp-files/ # same /temp-files # same temp-files # same ./temp-files/* # BAD: does nothing *.iso # BAD: does nothing proxy/local/cache # exclude "cache" in dir "proxy/local" Include lists are supported only if excludes are not given. They are handled via the smbclient -TI option. Include matching is identical to the exclude matching described above. EXAMPLE
define application app_amsamba { property "SMBCLIENT-PATH" "/usr/bin/smbclient" property "GNUTAR-PATH" "/bin/tar" property "AMANDAPASS" /etc/amandapass" property "ALLOW-ANONYMOUS" "guest" } SEE ALSO
amanda(8), amanda.conf(5), amanda-applications(7) The Amanda Wiki: : http://wiki.zmanda.com/ AUTHOR
Jean-Louis Martineau <martineau@zmanda.com> Zmanda, Inc. (http://www.zmanda.com) Amanda 3.3.1 02/21/2012 AMSAMBA(8)
All times are GMT -4. The time now is 09:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy