redhat:samba-server-redhat:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
redhat:samba-server-redhat:start [2017/09/18 15:02] – [Erstellen der Gruppen und User] michaelredhat:samba-server-redhat:start [2019/02/21 11:07] – [Erstellen und berechtigen der Verzeichnisse] michael
Line 93: Line 93:
 <code> <code>
 # mkdir -p /var/smbshare/{public,ferien_fotos,daten_simon,fressnapf} # mkdir -p /var/smbshare/{public,ferien_fotos,daten_simon,fressnapf}
 +</code>
 +</WRAP>
 +
 +<WRAP center box 100%>
 +**Setzen der korrekten SELinux Rules:**
 +
 +<code>
 +# setsebool -P samba_export_all_ro=1 samba_export_all_rw=1
 +# getsebool –a | grep samba_export
 +# semanage fcontext –at samba_share_t "/var/smbshare(/.*)?"
 +
 +# restorecon /finance
 </code> </code>
 </WRAP> </WRAP>
Line 101: Line 113:
 <code> <code>
 # cd /var/smbshare && chgrp -R smbusers /var/smbshare/ # cd /var/smbshare && chgrp -R smbusers /var/smbshare/
-# chcon -R -t samba_share_t /var/smbshare/ 
 # 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 /var/smbshare/ +# chmod -R 0770 /var/smbshare/ 
-# chmod -R 775 /var/smbshare/+# chmod 775 /var/smbshare/
 </code> </code>
 </WRAP> </WRAP>
  
  
----- 
  
 ===== Konfiguration des Samba-Dienstes ===== ===== Konfiguration des Samba-Dienstes =====
Line 146: Line 156:
  
 [public] [public]
 +   comment = Public Directory for all members who use SMB-Share
 +   browsable = yes
    path = /var/smbshare/public    path = /var/smbshare/public
    writable = yes    writable = yes
Line 153: Line 165:
    public = no    public = no
    valid users = @smbusers    valid users = @smbusers
 +   force group = smbusers
  
 [ferien_fotos] [ferien_fotos]
 +   comment = Private Directory for Michael and Jennifer
 +   browsable = yes
    path = /var/smbshare/ferien_fotos    path = /var/smbshare/ferien_fotos
    writable = yes    writable = yes
Line 162: Line 177:
    public = no    public = no
    valid users = @beziehung    valid users = @beziehung
 +   force group = beziehung 
 +   
 [daten_simon] [daten_simon]
 +   comment = Private Directory for Ions
 +   browsable = yes
    path = /var/smbshare/daten_simon    path = /var/smbshare/daten_simon
    writable = yes    writable = yes
Line 171: Line 189:
    public = no    public = no
    valid users = @ion    valid users = @ion
 +   force group = ion
  
 [hundenapf] [hundenapf]
 +   comment = Private Directory for all dogs
 +   browsable = yes
    path = /var/smbshare/fressnapf    path = /var/smbshare/fressnapf
    writable = yes    writable = yes
Line 180: Line 201:
    public = no    public = no
    valid users = @hunde    valid users = @hunde
 +   force group = hunde
  
 </sxh> </sxh>
Line 211: Line 233:
 <wrap em>Installation und Konfiguration von Samba abgeschlossen!</wrap> <wrap em>Installation und Konfiguration von Samba abgeschlossen!</wrap>
  
----- 
- 
-https://www.tecmint.com/install-samba4-on-centos-7-for-file-sharing-on-windows/ 
  • redhat/samba-server-redhat/start.txt
  • Last modified: 2019/03/08 11:08
  • by michael