Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
redhat:samba-server-redhat:start [2017/09/18 11:04] – michael | redhat:samba-server-redhat:start [2019/02/21 11:07] – [Übersicht über die geplante Konfiguration] michael | ||
---|---|---|---|
Line 9: | Line 9: | ||
Im ersten Schritt werden zuerst die vorausgesetzten Vorbereitungen zur späteren Konfiguration der SMB-Shares durchgeführt. Folgende Vorgaben gelten für die bevorstehende Konfiguration. | Im ersten Schritt werden zuerst die vorausgesetzten Vorbereitungen zur späteren Konfiguration der SMB-Shares durchgeführt. Folgende Vorgaben gelten für die bevorstehende Konfiguration. | ||
- | <WRAP center round box 100%> | + | <WRAP center round box 80%> |
==== Vorgaben ==== | ==== Vorgaben ==== | ||
'' | '' | ||
Line 16: | Line 16: | ||
</ | </ | ||
- | ---- | ||
===== Installation des Samba-Servers ===== | ===== Installation des Samba-Servers ===== | ||
Line 41: | Line 40: | ||
<WRAP center box 100%> | <WRAP center box 100%> | ||
- | **Erstellen der User :** | + | **Erstellen der lokalen |
- | Entweder, | + | Entweder, |
< | < | ||
- | # useradd | + | # useradd michael |
- | # useradd | + | # useradd jennifer |
... | ... | ||
</ | </ | ||
- | <wrap em> | + | <wrap em> |
< | < | ||
- | # for user in michael jennifer simon bambo svenja; do sudo useradd | + | # for user in michael jennifer simon bambo svenja; do sudo useradd $user; done |
</ | </ | ||
</ | </ | ||
Line 65: | Line 64: | ||
'' | '' | ||
< | < | ||
- | # usermod -G smbusers, | + | # usermod |
- | # usermod -G smbusers, | + | # usermod |
- | # usermod -G smbusers, | + | # usermod |
- | # usermod -G smbusers, | + | # usermod |
- | # usermod -G smbusers, | + | # usermod |
</ | </ | ||
</ | </ | ||
Line 93: | Line 92: | ||
< | < | ||
# mkdir -p / | # mkdir -p / | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <WRAP center box 100%> | ||
+ | **Setzen der korrekten SELinux Rules:** | ||
+ | |||
+ | < | ||
+ | # setsebool -P samba_export_all_ro=1 samba_export_all_rw=1 | ||
+ | # getsebool –a | grep samba_export | ||
+ | # semanage fcontext –at samba_share_t "/ | ||
+ | |||
+ | # restorecon /finance | ||
</ | </ | ||
</ | </ | ||
Line 103: | Line 114: | ||
# chgrp beziehung ferien_fotos && chgrp ion daten_simon && chgrp hunde fressnapf | # chgrp beziehung ferien_fotos && chgrp ion daten_simon && chgrp hunde fressnapf | ||
- | # chmod -R 2770 / | + | # chmod -R 0770 / |
# chmod 775 / | # chmod 775 / | ||
</ | </ | ||
Line 109: | Line 120: | ||
- | ---- | ||
===== Konfiguration des Samba-Dienstes ===== | ===== Konfiguration des Samba-Dienstes ===== | ||
Line 145: | Line 155: | ||
[public] | [public] | ||
+ | | ||
+ | | ||
path = / | path = / | ||
| | ||
Line 152: | Line 164: | ||
| | ||
valid users = @smbusers | valid users = @smbusers | ||
+ | force group = smbusers | ||
[ferien_fotos] | [ferien_fotos] | ||
+ | | ||
+ | | ||
path = / | path = / | ||
| | ||
Line 161: | Line 176: | ||
| | ||
valid users = @beziehung | valid users = @beziehung | ||
+ | force group = beziehung | ||
+ | |||
[daten_simon] | [daten_simon] | ||
+ | | ||
+ | | ||
path = / | path = / | ||
| | ||
Line 170: | Line 188: | ||
| | ||
valid users = @ion | valid users = @ion | ||
+ | force group = ion | ||
[hundenapf] | [hundenapf] | ||
+ | | ||
+ | | ||
path = / | path = / | ||
| | ||
Line 179: | Line 200: | ||
| | ||
valid users = @hunde | valid users = @hunde | ||
+ | force group = hunde | ||
</ | </ | ||
Line 210: | Line 232: | ||
<wrap em> | <wrap em> | ||
- | ---- | ||
- | |||
- | https:// |