Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
linux:samba [2009/05/31 20:26]
a + more tips on samba
linux:samba [2012/05/16 13:48]
188.143.232.12 IoRQDlEzwcP
Line 1: Line 1:
-====== Samba ====== +and got 10 points.  THEN anoethr game came up to put 4 bottles in the bin and get 30 points.  I didn't think it would let me playso a total of 40 points for me!  Give it try!chriscapichris@msn.com
- +
-''**/etc/fstab**'' +
-   //server/share     /media/cifs/  cifs    rw,user,auto,credentials=/home/username/.smbcredentials,uid=1000,gid=100 1 2 +
- +
-   $ vim .smbcredentials +
- +
-''**.smbcredentials**'' +
-   username=foobar +
-   password=blabla +
- +
-   $ chmod 600 .smbcredentials +
- +
-<html><pre> +
-pdbedit --pwd-must-change-time=timestamp username +
-timestamp je unix time ko mora spremenit password +
-ce das to na 0 pol bo moral spremenit +
-</pre></html> +
- +
-smb.conf +
- +
-  strict syn = no +
-  sync always = no +
-  printable = no +
-  load printers = no +
-  preserve case = no +
-  default case = lower +
-  disable netbios = yes +
-  deadtime = 15 +
- +
- +
-===== Tips ===== +
- +
-   # mount -t cifs //server/hal /mnt -o user=hal,uid=hal,gid=hal   # mount and map ownerships +
-   # umount /mnt                                                   # unmount file system +
- +
-<code> +
-$ smbstatus  +
-Samba version 3.0.33-3.7.el5 +
-PID     Username      Group         Machine                         +
-------------------------------------------------------------------- +
-32752   hal           hal           elk          (192.168.4.1) +
-32733   hal           hal           elk          (192.168.4.1) +
- 5320   laura         laura         wapiti       (192.168.4.2) +
- +
-Service      pid     machine       Connected at +
-------------------------------------------------------- +
-hal          32733   elk           Tue May 26 14:57:15 2009 +
-laura        5320    wapiti        Tue May 12 11:33:32 2009 +
-iTunes       5320    wapiti        Tue May 12 11:33:29 2009 +
-hal          32752   elk           Tue May 26 15:02:29 2009 +
- +
-No locked files +
-</code> +
- +
-  # smbcontrol 32733 close-share hal       # close a single share instance, PID 32733 +
-  # smbcontrol smbd close-share hal        # nuke all clients mounting "hal" +
- +
-===== Creating Recycle Bin for Samba storage ===== +
- +
-The best option is to have a "Recycle bin" for every users on the samba server. +
-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:repository = RecycleBin +
-    recycle:keeptree = yes +
-    recycle:exclude = *.tmp, *.bak +
- +
-The “vfs object” line calls in the plug-in that enables recycle bin capability.  On the other lines, you’re setting the name of the recycle bin directory, telling Samba to preserve the whole structure of any directories that a user may delete, and finally, telling it to not keep certain types of files +
- +
- +
-====  How can 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 abovethe 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 (/etc/samba/smb.conf) file using the "log level" option, for example: +
- +
-    log level = 2 winbind:3 +
- +
-<note important> **Reload the configuration in winbind by either sending HUP signal to the winbindd daemon or by using "service winbind reload"**</note> +
- +
-   # service winbind reload +
- +
- +
- +
-===== samba + Windows Vista ===== +
- +
-<note important> +
-Microsoft's security policy on WIndwos Vista is interestingly set by default to exclude mapping to Samba shares. To fix this click **START | Run | secpol.msc**. Go to Local Policies | Security Options and find Network Security: LAN Manager authentication level \\ +
-Change the settings from Send NTLMv2 response only to Send LM & NTLM - use NTLMv2 session security if negotiated.  +
-Vista defaults to only send the more secure NTLMv2 protocol, which Samba (and, incidentally, some NAS devices) do not support. +
-</note> +
linux/samba.txt · Last modified: 2013/09/17 12:32 by zagi
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready