Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
| Nächste Überarbeitung | Vorherige Überarbeitung | ||
| fortgeschrittene:samba-member [2010/12/02 14:47] 127.0.0.1 Externe Bearbeitung | fortgeschrittene:samba-member [2014/02/20 19:28] (aktuell) ingo_wichmann | ||
|---|---|---|---|
| Zeile 3: | Zeile 3: | ||
| ====== Domänen-Mitglied ohne Winbind ====== | ====== Domänen-Mitglied ohne Winbind ====== | ||
| + | (nicht empfohlen) | ||
| ===== Pakete ===== | ===== Pakete ===== | ||
| samba | samba | ||
| Zeile 25: | Zeile 26: | ||
| CentOS: samba samba-common | CentOS: samba samba-common | ||
| + | openSuSE ab 11.4: samba-winbind  | ||
| ===== Winbind tdb Konfiguration ===== | ===== Winbind tdb Konfiguration ===== | ||
| ''/etc/samba/smb.conf'' : | ''/etc/samba/smb.conf'' : | ||
| Zeile 35: | Zeile 37: | ||
| template shell = /bin/bash | template shell = /bin/bash | ||
| winbind use default domain = Yes | winbind use default domain = Yes | ||
| + | |||
| + | # ab samba 3.4 notwendig: ( gibts da noch ne andere Lösung? ) | ||
| + | map untrusted to domain = yes | ||
| [freigabe] | [freigabe] | ||
| Zeile 41: | Zeile 46: | ||
| </file> | </file> | ||
| - | ====== Rechner in die Domäne aufnehmen ====== | + | openSuSE ab 11.4: | 
| - | /etc/init.d/winbind restart | + | /etc/init.d/smb stop | 
| + | /etc/init.d/nmb stop | ||
| CentOS 5: | CentOS 5: | ||
| /etc/init.d/smb stop | /etc/init.d/smb stop | ||
| Debian 5: | Debian 5: | ||
| /etc/init.d/samba stop | /etc/init.d/samba stop | ||
| + | |||
| + | |||
| + | ====== Rechner in die Domäne aufnehmen ====== | ||
| + | Bug in openSuSE 13.1 (PDC): AppArmor verhindert, dass auf dem PDC ein Benutzer angelegt werden kann. Lösung: auf dem PDC | ||
| + | systemctl stop apparmor.service | ||
| + | |||
| net rpc join -U smbadmin | net rpc join -U smbadmin | ||
| + | |||
| + | openSuSE ab 11.4: | ||
| + | /etc/init.d/winbind restart | ||
| + | /etc/init.d/smb start | ||
| + | /etc/init.d/nmb start | ||
| CentOS 5: | CentOS 5: | ||
| /etc/init.d/smb start | /etc/init.d/smb start | ||
| Zeile 55: | Zeile 71: | ||
| /etc/init.d/winbind restart | /etc/init.d/winbind restart | ||
| /etc/init.d/samba start | /etc/init.d/samba start | ||
| - | |||
| ===== Domänenaufname testen ===== | ===== Domänenaufname testen ===== | ||
| Zeile 66: | Zeile 81: | ||
| ''/etc/nsswitch.conf'' : | ''/etc/nsswitch.conf'' : | ||
| <file> | <file> | ||
| - | passwd:  compat winbind | + | passwd:  files winbind | 
| - | group:  compat winbind | + | group:  files winbind | 
| - | shadow:  compat winbind | + | shadow:  files winbind | 
| </file> | </file> | ||
| + | oder | ||
| + | |||
| + | ''/etc/nsswitch.conf'' : | ||
| + | <file> | ||
| + | passwd:  compat | ||
| + | group:  compat | ||
| + | shadow:  compat | ||
| + | passwd_compat:  winbind | ||
| + | group_compat:  winbind | ||
| + | shadow_compat:  winbind | ||
| + | </file> | ||
| + | |||
| + | echo '+::::Samba User::' >> /etc/passwd | ||
| + | echo '+:::' >> /etc/group | ||
| + | echo '+::::::::' >> /etc/shadow | ||
| Zeile 76: | Zeile 106: | ||
| getent passwd iw | getent passwd iw | ||
| + | |||
| + | ====== Checkliste ====== | ||
| + | ===== Ist Samba Domänenmitglied? ===== | ||
| + | net rpc testjoin -U smbadmin | ||