"Fossies" - the Fresh Open Source Software Archive 
Member "apg-2.2.3/doc/APG_TIPS" (7 Aug 2003, 3885 Bytes) of package /linux/privat/old/apg-2.2.3.tar.gz:
As a special service "Fossies" has tried to format the requested text file into HTML format (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 ============================================================
2 = TIPS FOR APG =
3 ============================================================
4 = This file contains some tips for APG. =
5 = =
6 = 1. If You wish to submit a tip please send an email to =
7 = <a-del@iname.com> and if i find it useful i'll put =
8 = Your tip in the APG_TIPS file of the next release. =
9 = I will also put Your tip on the APG website as soon =
10 = as it posible. =
11 = 2. If you wish to remove or update Your tip please send =
12 = en email to <a-del@iname.com>. I will remove/update =
13 = Your tip in the APG_TIPS file of the next release. =
14 = I'll remove/update Your tip on the APG website as =
15 = soon as it posible. =
16 = =
17 = Adel I Mirzazhanov =
18 = a-del@iname.com =
19 ============================================================
20
21 ######################################################
22 # 1. Elimination of certain characters from the output
23 # by Barton Hodges <barton@gcmcomputers.com>
24 ######################################################
25 I don't like to use "o"'s or "l"'s in my passwords
26 because they looke like zeros and ones instead of O's
27 and L's.
28
29 I hacked together a little shell script to accomplish
30 the elimination of certain characters from the output.
31
32 ----------[cut here]
33 #!/bin/sh
34
35 genpw () {
36 PW=$(/usr/local/bin/apg -L -m 10 -x 10 -n 1 | egrep -v [owl])
37 if [ "$PW" != "" ]; then
38 echo $PW
39 return 0;
40 else
41 return 1;
42 fi
43 }
44
45 until genpw; do : ; done
46 ----------[cut here]
47
48 Note:
49 Since apg-2.1.0b0 you can use [-e char_string] option
50 to do the same thing.
51
52 #######################################################
53 # 2. APG and xinetd
54 # by Tomaz Zupan <tomaz.zupan@orpo.si>
55 #######################################################
56
57 I use xinetd instead of inetd as per your documentation,
58 so I hope you (or anyone using apgd) might find usefull
59 this xinetd.conf entry. Arguments are tailored according
60 to my needs, but that shouldn't be a problem for anyone
61 that read man pages ...
62
63 --------> [cut here]
64 # default: on
65 # description: APGD is a deamon that returns randomly generated password
66 service pwdgen
67 {
68 port = 129
69 socket_type = stream
70 wait = no
71 only_from = localhost
72 user = pismonosa
73 server = /usr/local/sbin/apgd
74 server_args = -M ln -n 1 -m 6 -x 8 -a 1
75 instances = 1
76 log_on_failure += USERID
77 disable = no
78 }
79 --------> [cut here]
80
81 ######################################################
82 # 3. APG and PHP script
83 # from http://www.forth.com/rick/
84 ######################################################
85
86 After building and installing APG, you must make it
87 easily available. The simplest is as a web-page
88 reference. The simplest way to do this is by a php
89 script located in the root of the web server's data
90 tree:
91
92 --------> [cut here]
93 <html>
94 <body>
95 <pre>
96 <?
97 $foo = `/usr/local/bin/apg -n 20`;
98 echo $foo
99 ?>
100 </pre>
101 </body>
102 </html>
103 --------> [cut here]
104
105 ######################################################
106 # 4. APG v2.1.0b0 and [R,r] letters in mode string
107 # by Adel I. Mirzazhanov <a-del@iname.com>
108 ######################################################
109 Since version 2.1.0b0 You can not use symbols R,r to ask
110 APG not to generate symbols (' ` | \ ? $ ") when You
111 plan to use special symbol set for password generation.
112
113 But You stil can get the same resault with new option
114 [-e char_string] (see apg(1)). Just run APG like this:
115
116 apg -a1 -M s -e \'\`\|\?\$\"\\
117
118 This method will work for random password generation
119 only.