Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux:samba [2009/11/10 08:38] greebo |
linux:samba [2013/09/17 12:32] (current) zagi [Share Definitions] |
||
---|---|---|---|
Line 16: | Line 16: | ||
add machine script = / | add machine script = / | ||
+ | |||
+ | <pre> | ||
+ | @ECHO OFF | ||
+ | if %username%==GOST goto izhod | ||
+ | NET USE Z: /HOME /YES | ||
+ | NET USE G: \\SERVER\USERS | ||
+ | NET USE H: \\SERVER\MEDIA | ||
+ | NET TIME \\SERVER /SET /YES | ||
+ | :izhod | ||
+ | </ | ||
+ | |||
< | < | ||
pdbedit --pwd-must-change-time=timestamp username | pdbedit --pwd-must-change-time=timestamp username | ||
Line 82: | Line 93: | ||
The “vfs object” line calls in the plug-in that enables recycle bin capability. | The “vfs object” line calls in the plug-in that enables recycle bin capability. | ||
+ | ==== newer version ==== | ||
+ | |||
+ | If the required version of Samba is not installed, there are articles on how to update/ | ||
+ | |||
+ | |||
+ | |||
+ | To implement the network recycle folder Samba uses a Virtual File System (VFS) module. The various VFS modules that Samba can use are in the local directory: // | ||
+ | |||
+ | |||
+ | Documentation on the options for the recycle.so module and other VFS modules can be found in the local directory // | ||
+ | |||
+ | To implement a Samba recycle folder simply edit one of your shares to be similar to the example below: | ||
+ | |||
+ | |||
+ | **''/ | ||
+ | < | ||
+ | # | ||
+ | [SambaShare] | ||
+ | |||
+ | path = / | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | vfs object = recycle | ||
+ | recycle: | ||
+ | recycle: | ||
+ | recycle: | ||
+ | recycle: | ||
+ | recycle: | ||
+ | recycle: | ||
+ | recycle: | ||
+ | recycle: | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | This configuration only implements a recycle folder on the directory "Samba Share" | ||
+ | |||
+ | |||
+ | |||
+ | The most interesting option above is: | ||
+ | |||
+ | |||
+ | | ||
+ | |||
+ | |||
+ | |||
+ | This specifies where the deleted files will be stored. This is relative to the share path. From the above example "Samba Share" has the path / | ||
+ | |||
+ | |||
+ | |||
+ | For example: | ||
+ | |||
+ | Scott is browsing the "Samba Share" directory and deletes a file. The deleted file can now be found under / | ||
+ | Brad is browsing the "Samba Share" directory and deletes a file. The deleted file can now be found under / | ||
+ | |||
+ | |||
+ | It is important to note that the .deleted directory must be created prior to use. It must then allow users to write to that directory. This is just an example and can be setup differently to suit your particular situation. | ||
==== How can I list the currently active clients? ==== | ==== How can I list the currently active clients? ==== | ||
Line 110: | Line 180: | ||
=== smb.conf === | === smb.conf === | ||
<pre> | <pre> | ||
- | # | + | # |
+ | ======================= Global Settings ======================= | ||
+ | < | ||
[global] | [global] | ||
Line 351: | Line 422: | ||
| | ||
- | # | + | </ |
+ | # | ||
+ | ======================= Share Definitions ======================= | ||
+ | < | ||
# Un-comment the following (and tweak the other settings below to suit) | # Un-comment the following (and tweak the other settings below to suit) | ||
# to enable the default home directory shares. | # to enable the default home directory shares. | ||
Line 480: | Line 553: | ||
# #hide files = / | # #hide files = / | ||
# #veto files = / | # #veto files = / | ||
- | </pre> | + | </code> |