Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
linux:samba [2008/01/29 01:18] a |
linux:samba [2009/11/08 15:40] greebo |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Samba ====== | ||
+ | |||
'' | '' | ||
// | // | ||
Line 11: | Line 13: | ||
+ | [global] | ||
+ | add machine script = / | ||
+ | |||
+ | < | ||
+ | pdbedit --pwd-must-change-time=timestamp username | ||
+ | timestamp je unix time ko mora spremenit password | ||
+ | ce das to na 0 pol bo moral spremenit | ||
+ | </ | ||
- | + | \\ | |
- | pdbedit --pwd-must-change-time=timestamp username | + | for i in `cat userlist`; |
- | timestamp je unix time ko mora spremenit password | + | \\ |
- | ce das to na 0 pol bo moral spremenit \\ | + | |
- | + | ||
smb.conf | smb.conf | ||
Line 28: | Line 35: | ||
disable netbios = yes | disable netbios = yes | ||
deadtime = 15 | deadtime = 15 | ||
+ | |||
+ | |||
+ | ===== Tips ===== | ||
+ | |||
+ | # mount -t cifs // | ||
+ | # umount /mnt # unmount file system | ||
+ | |||
+ | < | ||
+ | $ smbstatus | ||
+ | Samba version 3.0.33-3.7.el5 | ||
+ | PID | ||
+ | ------------------------------------------------------------------- | ||
+ | 32752 | ||
+ | 32733 | ||
+ | | ||
+ | |||
+ | Service | ||
+ | ------------------------------------------------------- | ||
+ | hal 32733 | ||
+ | laura 5320 wapiti | ||
+ | iTunes | ||
+ | hal 32752 | ||
+ | |||
+ | No locked files | ||
+ | </ | ||
+ | |||
+ | # smbcontrol 32733 close-share hal # close a single share instance, PID 32733 | ||
+ | # smbcontrol smbd close-share hal # nuke all clients mounting " | ||
+ | |||
+ | ===== Creating Recycle Bin for Samba storage ===== | ||
+ | |||
+ | The best option is to have a " | ||
+ | Here is an example of modifying the home directories of your users in samba configuration file | ||
+ | |||
+ | [homes] | ||
+ | comment = Home Directory | ||
+ | valid users = %S | ||
+ | browsable = no | ||
+ | guest ok = no | ||
+ | read only = no | ||
+ | vfs object = recycle | ||
+ | recycle: | ||
+ | recycle: | ||
+ | recycle: | ||
+ | |||
+ | The “vfs object” line calls in the plug-in that enables recycle bin capability. | ||
+ | |||
+ | |||
+ | ==== How can I list the currently active clients? ==== | ||
+ | The winbindd deamon can log its status to the winbind log file upon request using the signal USR2. | ||
+ | |||
+ | If debuglevel is set to 2 or above, the windbindd dameon will also print the list of clients currently active. | ||
+ | |||
+ | # killall -USR2 winbindd | ||
+ | |||
+ | The winbind log level can be set separately in the smb.conf (/ | ||
+ | |||
+ | log level = 2 winbind:3 | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | # service winbind reload | ||
+ | |||