19.3 Included Modules

19.3.1 audit

A simple module to audit file access to the syslog facility. The following operations are logged:

  • share

  • connect/disconnect

  • directory opens/create/remove

  • file open /close/rename/unlink/chmod

19.3.2 extd_audit

This module is identical with the audit module above except that it sends audit logs to both syslog as well as the smbd log files. The log level for this module is set in the smb.conf file.

Valid settings and the information that will be recorded are shown in Table 19.1.

Table 19.1. Extended Auditing Log Information

Log Level

Log Details - File and Directory Operations

Creation / Deletion


Create / Delete / Rename / Permission Changes


Create / Delete / Rename / Perm Change / Open / Close

19.3.3 fake_perms

This module was created to allow Roaming Profile files and directories to be set (on the Samba server under UNIX) as read only. This module will, if installed on the Profiles share, report to the client that the Profile files and directories are writable. This satisfies the client even though the files will never be overwritten as the client logs out or shuts down.

19.3.4 recycle

A Recycle Bin-like module. Where used, unlink calls will be intercepted and files moved to the recycle directory instead of being deleted. This gives the same effect as the Recycle Bin on Windows computers.

The Recycle Bin will not appear in Windows Explorer views of the network file system (share) nor on any mapped drive. Instead, a directory called .recycle will be automatically created when the first file is deleted. Users can recover files from the .recycle directory. If the recycle:keeptree has been specified, deleted files will be found in a path identical with that from which the file was deleted.

Supported options for the recycle module are as follow:

recycle:repository ” Relative path of the directory where deleted files should be moved.

recycle:keeptree ” Specifies whether the directory structure should be kept or if the files in the directory that is being deleted should be kept seperately in the recycle bin.

recycle:versions ” If this option is set, two files with the same name that are deleted will both be kept in the recycle bin. Newer deleted versions of a file will be called " Copy #x of filename ".

recycle:touch ” Specifies whether a file's access date should be touched when the file is moved to the recycle bin.

recycle:maxsize ” Files that are larger than the number of bytes specified by this parameter will not be put into the recycle bin.

recycle:exclude ” List of files that should not be put into the recycle bin when deleted, but deleted in the regular way.

recycle:exclude_dir ” Contains a list of directories. When files from these directories are deleted, they are not put into the recycle bin but are deleted in the regular way.

recycle:noversions ” Opposite of recycle:versions . If both options are specified, this one takes precedence.

19.3.5 netatalk

A netatalk module will ease co-existence of Samba and netatalk file sharing services.

Advantages compared to the old netatalk module:

  • Does not care about creating .AppleDouble forks, just keeps them in sync.

  • If a share in smb.conf does not contain .AppleDouble item in hide or veto list, it will be added automatically.

Official Samba-3 HOWTO and Reference Guide
The Official Samba-3 HOWTO and Reference Guide, 2nd Edition
ISBN: 0131882228
EAN: 2147483647
Year: 2005
Pages: 297

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net