home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
ddjmag
/
ddj8906.arc
/
UNIXSE.ASC
< prev
next >
Wrap
Text File
|
1989-05-27
|
1KB
|
53 lines
_MAINTAINING SYSTEM SECURITY_
by Dale Moir
[EXAMPLE 1]
FOR (every users' home directory) DO
checkdir(directory)
DONE
PROCEDURE checkdir (directory)
FOR (every file in the directory) DO
IF ((file is executable) AND (file is writable)) THEN flag this file
ELSE IF (file is a directory) THEN checkdir(file)
DONE
ENDPROCEDURE
[EXAMPLE 2]
FOR (every user's home directory) DO
checkdir(directory)
DONE
PROCEDURE checkdir (directory)
IF (directory is writable) THEN flag this directory
FOR (every file in the directory) DO
IF ((file is executable) AND (file is writable)) THEN flag this file
IF (file is writable) THEN maybe flag this file
ELSE IF (file is directory) THEN checkdir(file)
DONE
ENDPROCEDURE
[EXAMPLE 3]
FOR (every file in the file system) DO
IF (filename is in likely-list) THEN flag this file
DONE
[EXAMPLE 4]
FOR (each remote host that is defined) DO
IF (directories other than "public" accessible) THEN flag this host
FOR (each command name in command list) DO
IF ((command !="rmail") AND (command!="lpr")) THEN flag this command
DONE
DONE