Browse Source

creating and setting folder permissions

PVA
Roman Steiner 3 years ago
parent
commit
a2e3451f26
  1. 16
      scripts/createFolders.sh
  2. 14
      scripts/folderpermissions.csv

16
scripts/createFolders.sh

@ -0,0 +1,16 @@
#!/bin/bash
SAS_ADMIN=/home/jan/sas-admin
# anlegen von foldern funktioniert nur in subfoldern aber nicht im root folder. unklar warum
# python -W ignore ../createfolders.py --file folders.csv
$SAS_ADMIN -k folders create --name Leistung --description "Öffentlich zugängliche Berichte aus dem Leistungsbereich"
$SAS_ADMIN -k folders create --name Medizin --description "Öffentlich zugängliche Berichte aus dem Medizinbereich"
$SAS_ADMIN -k folders create --name RehaControlling --description "Steuerngsreport für die Eigenen Einrichtungen"
$SAS_ADMIN -k folders create --name Forschung --description "nicht öffentliche Berichte der Forschungsabteilung"
$SAS_ADMIN -k folders create --name "Entwicklung HSCO" --description "nicht öffentliche Berichte die noch in Entwicklung sind"
$SAS_ADMIN -k folders create --name "DWH Demo" --description "nicht öffentliche Bereich für DWH-Entwicklung"
python -W ignore ../folderauth.py --file folderpermissions.csv

14
scripts/folderpermissions.csv

@ -0,0 +1,14 @@
/Forschung,group,hfil,full
/Entwicklung HSCO,group,hsco,full
/Entwicklung HSCO,group,dwh,full
/DWH Demo,group,hsco,read
/DWH Demo,group,dwh,full
/Leistung,group,dwh,full
/Leistung,group,hsco,full
/Leistung,authenticatedUsers,,read
/Medizin,group,dwh,full
/Medizin,group,hsco,full
/Medizin,authenticatedUsers,,read
/RehaControlling,group,dwh,full
/RehaControlling,group,hsco,full
/RehaControlling,authenticatedUsers,,read
1 /Forschung group hfil full
2 /Entwicklung HSCO group hsco full
3 /Entwicklung HSCO group dwh full
4 /DWH Demo group hsco read
5 /DWH Demo group dwh full
6 /Leistung group dwh full
7 /Leistung group hsco full
8 /Leistung authenticatedUsers read
9 /Medizin group dwh full
10 /Medizin group hsco full
11 /Medizin authenticatedUsers read
12 /RehaControlling group dwh full
13 /RehaControlling group hsco full
14 /RehaControlling authenticatedUsers read
Loading…
Cancel
Save