Samba: Difference between revisions

From DWIKI
Line 64: Line 64:


== Commands and tools==
== Commands and tools==
*net
===net===
*testparm
===testparm===
*pdbedit
===pdbedit===
*smbmount or just mount -t smbfs -o username=foo,password=bar //server/share /mnt/point
pdbedit -L
*[[smbclient]]
===smbmount===
*smbstatus
or just mount -t smbfs -o username=foo,password=bar //server/share /mnt/point
*smbtree
===[[smbclient]]===
*nmblookup -M domainname
===smbstatus===
===smbtree===
===nmblookup===
nmblookup -M domainname
 
 
 


*[http://sourceforge.net/projects/lam  LDAP Account Manager]
*[http://sourceforge.net/projects/lam  LDAP Account Manager]
Line 79: Line 85:
*gsambad too manage samba users
*gsambad too manage samba users


===windows===
==Windows commands==
*nltest
===nltest===
*gpresult
===gpresult===
*gpedit
===gpedit===


==FAQ==
==FAQ==

Revision as of 14:03, 8 January 2009

Documentation

Samba and ACLs

http://www.bluelightning.org/linux/samba_acl_howto/

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


Terms

Commands and tools

net

testparm

pdbedit

pdbedit -L

smbmount

or just mount -t smbfs -o username=foo,password=bar //server/share /mnt/point

smbclient

smbstatus

smbtree

nmblookup

nmblookup -M domainname



  • gsambad too manage samba users

Windows commands

nltest

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

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..

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

synching mess

turn off csc policy