Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
linux:samba [2010/01/29 17:47] 93.103.1.78 |
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 169: | Line 180: | ||
| === smb.conf === | === smb.conf === | ||
| <pre> | <pre> | ||
| - | # | + | # |
| + | ======================= Global Settings ======================= | ||
| + | < | ||
| [global] | [global] | ||
| Line 410: | 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 539: | Line 553: | ||
| # #hide files = / | # #hide files = / | ||
| # #veto files = / | # #veto files = / | ||
| - | </pre> | + | </code> |

