Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Using Samba
Prev Home Next

5.5.2.1 share modes

The most primitive locks available to Samba are deny-mode locks, known as share modes, which are employed by programs such as text editors to avoid accidental overwriting of files. For reference, the deny-mode locks are listed in Table 5.9.


Table 5.9: SMB Deny-Mode Locks

Lock

Description

DENY_NONE

Do not deny any other file requests.

DENY_ALL

Deny all open requests on the current file.

DENY_READ

Deny any read-only open requests on the current file.

DENY_WRITE

Deny any write-only open requests on the current file.

DENY_DOS

If opened for reading, others can read but cannot write to the file. If opened for writing, others cannot open the file at all.

DENY_FCB

Obsolete.

The share modes parameter, which enforces the use of these locks, is enabled by default. To disable it, use the following command:


[accounting]
	share modes = no

We highly recommend against disabling the default locking mechanism unless you have a justifiable reason for doing so. Most Windows and DOS applications rely on these locking mechanisms in order to work correctly, and will complain bitterly if this functionality is taken away.

Using Samba
Prev Home Next

 
 
  Published under the terms of the Creative Commons License Design by Interspire