Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung | ||
admin_grundlagen:samba [2017/04/28 12:32] ingo_wichmann [Samba Freigabe mounten] |
admin_grundlagen:samba [2023/01/13 14:08] ingo_wichmann [Samba starten] |
||
---|---|---|---|
Zeile 14: | Zeile 14: | ||
Fedora / Centos : | Fedora / Centos : | ||
- | yum install samba | + | yum install samba samba-client |
===== Minimal-Konfiguration ===== | ===== Minimal-Konfiguration ===== | ||
Zeile 40: | Zeile 40: | ||
)) | )) | ||
===== Samba starten ===== | ===== Samba starten ===== | ||
- | ((Bug in openSuSE 11.4: https://bugzilla.novell.com/show_bug.cgi?id=666450 http://en.opensuse.org/openSUSE:Most_annoying_bugs_11.4 | ||
- | /etc/init.d/boot.apparmor stop | ||
- | )) | ||
- | |||
- | SuSE, Centos (ab 6): | ||
- | chkconfig smb on | ||
- | chkconfig nmb on | ||
- | service smb start | ||
- | service nmb start | ||
- | Debian (bis 7): | + | SuSE (ab 14), Centos (ab 7): |
- | service samba restart | + | systemctl enable --now smb.service |
+ | systemctl enable --now nmb.service | ||
- | Ubuntu (14.04), Debian (ab 8): | + | Ubuntu (ab 14.04), Debian (ab 8): |
service smbd restart | service smbd restart | ||
service nmbd restart | service nmbd restart | ||
Zeile 83: | Zeile 75: | ||
==== Samba Freigabe mounten ==== | ==== Samba Freigabe mounten ==== | ||
Pakete: | Pakete: | ||
- | ''cifs-utils'' ( Debian ab 6.0 ) | + | ''cifs-utils'' ( Debian (ab 6.0), CentOS (ab 7) ) |
mkdir /mnt/freigabe | mkdir /mnt/freigabe | ||
mount -t cifs -o username=xxx,uid=localuser,gid=localgroup //notebook17/freigabe /mnt/freigabe | mount -t cifs -o username=xxx,uid=localuser,gid=localgroup //notebook17/freigabe /mnt/freigabe | ||
+ | (( Warum sehen die Berechtigungen in der Freigabe anders als im lokalen Verzeichnis aus? https://fosdem.org/2019/schedule/event/smb2_posix_extensions/ )) | ||
Zeile 111: | Zeile 103: | ||
lsof -ai -c nmbd -P | lsof -ai -c nmbd -P | ||
===== Windows Browsing ===== | ===== Windows Browsing ===== | ||
- | nmblookup -M arbeitsgruppe | + | nmblookup -M kurs |
===== Existiert ein passender Unix-Account? ===== | ===== Existiert ein passender Unix-Account? ===== |