@ECHO OFF
REM NDIRCMP4.BAT
REM NDIR Vergleichstest mit kleinerem Baum, /SHORT, /RIGHTS und Trustee-Aenderungen.
REM
REM Linux-Vorbereitung:
REM   sh mkndirdata.sh /var/mars_nwe/SYS
REM
REM DOS-Annahmen:
REM   NPUBLIC = Novell Tools
REM   PUBLIC  = unsere Tools
REM   NDIRN   = Novell-Vergleichsbaum
REM   NDIRU   = Unser Vergleichsbaum
REM
REM Hinweis:
REM   Fuer lange Ausgaben nutzen wir /SHORT /CONTINUOUS.
REM   Die PAUSEs sind absichtlich fuer Screenshots.

ECHO.
ECHO === NDIRCMP4: kompakter NDIR Test ===
ECHO Erwartet vorhandene Testbaeume NDIRN und NDIRU.
ECHO Falls nicht vorhanden: Linux mkndirdata.sh ausfuehren.
ECHO.
PAUSE

ECHO.
ECHO === Block 1A: Novell Basis NDIRN ===
ECHO NPUBLIC\NDIR NDIRN
NPUBLIC\NDIR NDIRN
PAUSE

ECHO === Block 1B: Unser Basis NDIRU ===
ECHO PUBLIC\NDIR NDIRU
PUBLIC\NDIR NDIRU
PAUSE

ECHO.
ECHO === Block 2A: Novell /DATES ===
ECHO NPUBLIC\NDIR NDIRN /DATES
NPUBLIC\NDIR NDIRN /DATES
PAUSE

ECHO === Block 2B: Unser /DATES ===
ECHO PUBLIC\NDIR NDIRU /DATES
PUBLIC\NDIR NDIRU /DATES
PAUSE

ECHO.
ECHO === Block 3A: Novell /RIGHTS ===
ECHO NPUBLIC\NDIR NDIRN /RIGHTS
NPUBLIC\NDIR NDIRN /RIGHTS
PAUSE

ECHO === Block 3B: Unser /RIGHTS ===
ECHO PUBLIC\NDIR NDIRU /RIGHTS
PUBLIC\NDIR NDIRU /RIGHTS
PAUSE

ECHO.
ECHO === Block 4B: Unser /SUB /SHORT ===
ECHO PUBLIC\NDIR NDIRU /SUB /SHORT /CONTINUOUS
PUBLIC\NDIR NDIRU /SUB /SHORT /CONTINUOUS
PAUSE

ECHO.
ECHO === Block 5B: Unser /SUB /RIGHTS /SHORT ===
ECHO PUBLIC\NDIR NDIRU /SUB /RIGHTS /SHORT /CONTINUOUS
PUBLIC\NDIR NDIRU /SUB /RIGHTS /SHORT /CONTINUOUS
PAUSE

ECHO.
ECHO === Block 6B: Unser wildcard *.EXE /SUB /SHORT ===
ECHO PUBLIC\NDIR NDIRU\*.EXE /SUB /SHORT /CONTINUOUS
PUBLIC\NDIR NDIRU\*.EXE /SUB /SHORT /CONTINUOUS
PAUSE

ECHO.
ECHO === Block 7B: Ausgangsrechte vor GRANT/REVOKE/REMOVE ===
ECHO PUBLIC\RIGHTS NDIRU\SUB1
PUBLIC\RIGHTS NDIRU\SUB1
ECHO.
ECHO PUBLIC\NDIR NDIRU /SUB /RIGHTS /SHORT /CONTINUOUS
PUBLIC\NDIR NDIRU /SUB /RIGHTS /SHORT /CONTINUOUS
PAUSE

ECHO.
ECHO === Block 8B: GRANT eingeschraenkte Rechte auf NDIRU\SUB1 ===
ECHO PUBLIC\GRANT R F FOR NDIRU\SUB1 TO USER MARIO
PUBLIC\GRANT R F FOR NDIRU\SUB1 TO USER MARIO
ECHO.
ECHO PUBLIC\RIGHTS NDIRU\SUB1
PUBLIC\RIGHTS NDIRU\SUB1
ECHO.
ECHO PUBLIC\NDIR NDIRU /SUB /RIGHTS /SHORT /CONTINUOUS
PUBLIC\NDIR NDIRU /SUB /RIGHTS /SHORT /CONTINUOUS
PAUSE

ECHO.
ECHO === Block 9B: GRANT mehr Rechte auf NDIRU\SUB1 ===
ECHO PUBLIC\GRANT R W C E M F A FOR NDIRU\SUB1 TO USER MARIO
PUBLIC\GRANT R W C E M F A FOR NDIRU\SUB1 TO USER MARIO
ECHO.
ECHO PUBLIC\RIGHTS NDIRU\SUB1
PUBLIC\RIGHTS NDIRU\SUB1
ECHO.
ECHO PUBLIC\NDIR NDIRU /SUB /RIGHTS /SHORT /CONTINUOUS
PUBLIC\NDIR NDIRU /SUB /RIGHTS /SHORT /CONTINUOUS
PAUSE

ECHO.
ECHO === Block 10B: REVOKE W M von NDIRU\SUB1 ===
ECHO PUBLIC\REVOKE W M FOR NDIRU\SUB1 FROM USER MARIO
PUBLIC\REVOKE W M FOR NDIRU\SUB1 FROM USER MARIO
ECHO.
ECHO PUBLIC\RIGHTS NDIRU\SUB1
PUBLIC\RIGHTS NDIRU\SUB1
ECHO.
ECHO PUBLIC\NDIR NDIRU /SUB /RIGHTS /SHORT /CONTINUOUS
PUBLIC\NDIR NDIRU /SUB /RIGHTS /SHORT /CONTINUOUS
PAUSE

ECHO.
ECHO === Block 11B: REMOVE Trustee von NDIRU\SUB1 ===
ECHO PUBLIC\REMOVE USER MARIO FROM NDIRU\SUB1
PUBLIC\REMOVE USER MARIO FROM NDIRU\SUB1
ECHO.
ECHO PUBLIC\RIGHTS NDIRU\SUB1
PUBLIC\RIGHTS NDIRU\SUB1
ECHO.
ECHO PUBLIC\NDIR NDIRU /SUB /RIGHTS /SHORT /CONTINUOUS
PUBLIC\NDIR NDIRU /SUB /RIGHTS /SHORT /CONTINUOUS
PAUSE

ECHO.
ECHO === Fertig ===
