summaryrefslogtreecommitdiff
path: root/dviware/psprint/vms/pass.ps
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /dviware/psprint/vms/pass.ps
Initial commit
Diffstat (limited to 'dviware/psprint/vms/pass.ps')
-rw-r--r--dviware/psprint/vms/pass.ps22
1 files changed, 22 insertions, 0 deletions
diff --git a/dviware/psprint/vms/pass.ps b/dviware/psprint/vms/pass.ps
new file mode 100644
index 0000000000..9910654ad4
--- /dev/null
+++ b/dviware/psprint/vms/pass.ps
@@ -0,0 +1,22 @@
+% Verify and/or change a LaserWriter's system password.
+% The following code would also work on a Linotronic but not on a
+% PrintServer 40 (which uses a string instead of an integer).
+
+72 72 translate 0 0 moveto
+/Times-Roman findfont 10 scalefont setfont
+
+0 % current system password?
+serverdict begin
+statusdict begin
+ checkpassword
+ { (Password correct. ) show }
+ { (Password incorrect! ) show }
+ ifelse
+% uncomment to change the password to 999999 (use some other large number!)
+% 0 999999 setpassword
+% { (Password changed.) show }
+% { (Password NOT changed!) show }
+% ifelse
+end
+
+showpage