Samba: Difference between revisions

From DWIKI
mNo edit summary
mNo edit summary
Line 1: Line 1:
==Documentation==
=Documentation=


*[http://www.samba.org Homepage]
*[http://www.samba.org Homepage]
Line 12: Line 12:
*[http://docs.hp.com/en/B8725-90074/ch11s02.html Samba Domain Model]
*[http://docs.hp.com/en/B8725-90074/ch11s02.html Samba Domain Model]
*[http://searchenterpriselinux.techtarget.com/tip/0,289483,sid39_gci1155693,00.html groups members etc]
*[http://searchenterpriselinux.techtarget.com/tip/0,289483,sid39_gci1155693,00.html groups members etc]
 
==Samba and ACLs==
==Software==
*http://www.bluelightning.org/linux/samba_acl_howto/
*http://www.samba.org/samba/GUI/
==Migration==
 
===Samba and ACLs===
http://www.bluelightning.org/linux/samba_acl_howto/
 
===Migration===
*[http://us3.samba.org/samba/docs/man/Samba-Guide/ntmigration.html NT to Samba migration]
*[http://us3.samba.org/samba/docs/man/Samba-Guide/ntmigration.html NT to Samba migration]
*[http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/NT4Migration.html Migration from NT4 PDC to Samba-3 PDC]
*[http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/NT4Migration.html Migration from NT4 PDC to Samba-3 PDC]
Line 25: Line 20:
*[http://www.opensubscriber.com/message/samba%40lists.samba.org/2866267.html Migrating profiles]
*[http://www.opensubscriber.com/message/samba%40lists.samba.org/2866267.html Migrating profiles]


== Samba and LDAP ==
 
 
 
 
 
= Samba and LDAP =
*[http://autosambaldap.sourceforge.net/ Automated Samba + LDAP Installation For FreeBSD 7.1]
*[http://autosambaldap.sourceforge.net/ Automated Samba + LDAP Installation For FreeBSD 7.1]
*[http://wiki.samba.org/index.php/Samba_&_LDAP Samba&LDAP doc]
*[http://wiki.samba.org/index.php/Samba_&_LDAP Samba&LDAP doc]
Line 64: Line 64:




==Terms==
=Software=
*http://www.samba.org/samba/GUI/
 
 
=Terms=
*[[RID]]
*[[RID]]
*[[SID]]
*[[SID]]


== Commands and tools==
= Commands and tools=
===net===
==net==
*[http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/NetCommand.html Chapter 13. Remote and Local Management: The Net Command]
*[http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/NetCommand.html Chapter 13. Remote and Local Management: The Net Command]
===testparm===
==testparm==
===pdbedit===
==pdbedit==
  pdbedit -L
  pdbedit -L
===smbmount===
==smbmount==
  or just mount -t smbfs -o username=foo,password=bar //server/share /mnt/point
  mount -t smbfs -o username=someuser //servername/sharename /mnt/sharename/
===[[smbclient]]===
 
===smbstatus===
If you get very vague warnings on debian this means you didn't install one of many smb* packages, probably '''smbfs'''
===smbtree===
 
===nmblookup===
 
 
==[[smbclient]]==
==smbstatus==
==smbtree==
==nmblookup==
  nmblookup -M domainname
  nmblookup -M domainname


===wins===
==wins==
Windows Name Server?
 




Line 93: Line 102:
*gsambad too manage samba users
*gsambad too manage samba users


==Windows commands==
=Windows commands=
(if not found, install NT 4.0 Resource Kit)
(if not found, install NT 4.0 Resource Kit)
===nltest===
==nltest==
http://support.microsoft.com/kb/158148
http://support.microsoft.com/kb/158148


===gpresult===
==gpresult==
===gpedit===
==gpedit==


==FAQ==
=FAQ=
===Cannot update roaming profile===
==Cannot update roaming profile==
Usually because a file is in use, check out
Usually because a file is in use, check out
  HKEY_CURRENT_USER\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon\ExcludeProfileDirs
  HKEY_CURRENT_USER\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon\ExcludeProfileDirs




===Windows complaining about wrong rights on profile===
==Windows complaining about wrong rights on profile==
*http://gentoo-wiki.com/HOWTO_Implement_Samba_as_your_PDC#Configure_Windows_XP_clients
*http://gentoo-wiki.com/HOWTO_Implement_Samba_as_your_PDC#Configure_Windows_XP_clients
*http://support.microsoft.com/kb/327259
*http://support.microsoft.com/kb/327259
Line 113: Line 122:




===No security tab in Explorer===
==No security tab in Explorer==
*http://www.mydigitallife.info/2006/07/19/missing-or-no-security-tab-found-in-windows-xp-professional/
*http://www.mydigitallife.info/2006/07/19/missing-or-no-security-tab-found-in-windows-xp-professional/


Line 120: Line 129:
  profile acls = yes
  profile acls = yes


===Can't join domain===
==Can't join domain==
close all shares
close all shares
log in to windows, no anonymous 'login'
log in to windows, no anonymous 'login'


===on access virus scanning===
==on access virus scanning==
*http://johannes.jakeapp.com/blog/?p=54
*http://johannes.jakeapp.com/blog/?p=54
*http://www.dazuko.org
*http://www.dazuko.org


===smbmount===
mount -t smbfs -o username=someuser //servername/sharename /mnt/sharename/
If you get very vague warnings on debian this means you didn't install one of many smb* packages, probably '''smbfs'''


===Windows cannot connect to the domain, etc..===
==Windows cannot connect to the domain, etc..==
Switch to workgroup, set system name first, reboot, join domain again, reboot.
Switch to workgroup, set system name first, reboot, join domain again, reboot.




===win2k: Error joining domain: User name could not be found===
==win2k: Error joining domain: User name could not be found==
means samba couldn't find MACHINE name, probably a failing add machine script?
means samba couldn't find MACHINE name, probably a failing add machine script?
also check /var/log/samba/log.machinename for Get_Pwnam and "add machine"
also check /var/log/samba/log.machinename for Get_Pwnam and "add machine"


===create_builtin_users: Failed to create Users===
==create_builtin_users: Failed to create Users==
http://www.rmschneider.com/writing/xp_and_samba.html
http://www.rmschneider.com/writing/xp_and_samba.html




===Unable to sync browse lists in this workgroup===
==Unable to sync browse lists in this workgroup==
  Unable to find the Domain Master Browser name for the workgroup
  Unable to find the Domain Master Browser name for the workgroup
  find_domain_master_name_query_fail
  find_domain_master_name_query_fail


===synching mess===
==synching mess==
turn off csc policy
turn off csc policy

Revision as of 10:24, 30 December 2010

Documentation

Samba and ACLs

Migration




Samba and LDAP

Samba as PDC

net rpc group addmem  "Domain Users" someuser

nt 4.0 reskit to manage domain users!!

cpau.exe to run stuff as other user

remember to add option netbios-name-servers to dhcpd.conf


Software


Terms

Commands and tools

net

testparm

pdbedit

pdbedit -L

smbmount

mount -t smbfs -o username=someuser //servername/sharename /mnt/sharename/

If you get very vague warnings on debian this means you didn't install one of many smb* packages, probably smbfs


smbclient

smbstatus

smbtree

nmblookup

nmblookup -M domainname

wins

  • gsambad too manage samba users

Windows commands

(if not found, install NT 4.0 Resource Kit)

nltest

http://support.microsoft.com/kb/158148

gpresult

gpedit

FAQ

Cannot update roaming profile

Usually because a file is in use, check out

HKEY_CURRENT_USER\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon\ExcludeProfileDirs


Windows complaining about wrong rights on profile


No security tab in Explorer

Windows did not load your profile because a server copy of the profile folder already exists that does not have the correct security

profile acls = yes

Can't join domain

close all shares log in to windows, no anonymous 'login'

on access virus scanning


Windows cannot connect to the domain, etc..

Switch to workgroup, set system name first, reboot, join domain again, reboot.


win2k: Error joining domain: User name could not be found

means samba couldn't find MACHINE name, probably a failing add machine script? also check /var/log/samba/log.machinename for Get_Pwnam and "add machine"

create_builtin_users: Failed to create Users

http://www.rmschneider.com/writing/xp_and_samba.html


Unable to sync browse lists in this workgroup

Unable to find the Domain Master Browser name for the workgroup
find_domain_master_name_query_fail

synching mess

turn off csc policy