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 revisionBoth sides next revision
redhat:samba-server-redhat:start [2017/09/18 15:02] – [Erstellen der Gruppen und User] michaelredhat:samba-server-redhat:start [2017/09/18 15:15] 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 Berechtigungen:**
 +
 +<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>
Line 146: Line 157:
  
 [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 166:
    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 178:
    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 190:
    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 202:
    public = no    public = no
    valid users = @hunde    valid users = @hunde
 +   force group = hunde
  
 </sxh> </sxh>
Line 214: Line 237:
  
 https://www.tecmint.com/install-samba4-on-centos-7-for-file-sharing-on-windows/ https://www.tecmint.com/install-samba4-on-centos-7-for-file-sharing-on-windows/
 +https://www.tecmint.com/setup-samba-file-sharing-for-linux-windows-clients/
  • redhat/samba-server-redhat/start.txt
  • Last modified: 2019/03/08 11:08
  • by michael