Aufgaben Bash Heredokument: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 9: Zeile 9:
 
<pre>
 
<pre>
 
[global]
 
[global]
         workgroup = <workgroup>
+
         workgroup = '''<workgroup>'''
 
         server role = standalone server
 
         server role = standalone server
 
         passdb backend = tdbsam
 
         passdb backend = tdbsam
 
         usershare allow guests = Yes
 
         usershare allow guests = Yes
[<share>]
+
['''<share>''']
 
         comment = share dir
 
         comment = share dir
         path = <path>
+
         path = '''<path>'''
 
         read only = No
 
         read only = No
 
         store dos attributes = Yes
 
         store dos attributes = Yes
 
         inherit acls = Yes
 
         inherit acls = Yes
 
</pre>
 
</pre>

Version vom 1. Juni 2023, 20:10 Uhr

Dies ist eine minimale Samba Konfiguratiom

  • Erstellen sie mit einem Skript unter zuhilfename eine HERE-Dokumentes
  • Bei diesem übergeb sie 3 Parameter
    • <workgroup>
    • <share>
    • <path>
  • Diese sollen variable verändert werden.
  • Das Skript soll den Inhalt auf die Standardausgabe zu schreiben.
[global]
        workgroup = '''<workgroup>'''
        server role = standalone server
        passdb backend = tdbsam
        usershare allow guests = Yes
['''<share>''']
        comment = share dir
        path = '''<path>'''
        read only = No
        store dos attributes = Yes
        inherit acls = Yes