Return an rc from the passwd and group functions.
[pwmd.git] / doc / config.example
blobf6a5523c3c63fe1b1c9126a153448bc1869eaf29
1 # Example PWMD configuration file. Edit and save to ~/.pwmd/config or
2 # specify with the -f command line option. See the pwmd(1) manual page or the
3 # pwmd.info documentation for complete details of the options.
5 # The global section is for non-file related settings and defaults for data
6 # files without a file section of their own.
7 [global]
9 # Location of the pinentry binary.
10 #pinentry_path=/usr/bin/pinentry
12 # The number of seconds to wait for a pinentry before giving up.
13 #pinentry_timeout=30
15 # Location of the listening socket.
16 #socket_path=~/.pwmd/socket
18 # Socket permissions. This will override any umask setting.
19 #socket_perms=0600
21 # Usernames or groups obtained via SO_PEERCRED which are allowed to
22 # connect to the socket. Groups should be prefixed with a '@'. When not
23 # specified only the invoking user is allowed. You can also specify an SHA256
24 # TLS fingerprint by prefixing it with a '#'.
25 #allowed = username,another_user,@group,!not_this_user,#TLS-FINGERPRINT
27 # Same syntax as the 'allowed' parameter with one entry per line.
28 #allowed_file=~/path/to/file
30 # Username to use as the default in an element ACL. The default is the
31 # user that starts pwmd.
32 #invoking_user=nobody,@group,!notme,#TLSFINGERPRINT
34 # Same syntax as the 'invoking_user' parameter with one entry per line.
35 #invoking_file=~/path/to/file
37 # Allow killing another client of the same UID or TLS fingerprint when not an
38 # invoking_user.
39 #strict_kill=false
41 # When false, disable keeping backups for data files.
42 #backup=true
44 # Log file location.
45 #log_path=~/.pwmd/log
47 # Set to true to enable logging to log_path.
48 #enable_logging=false
50 # Disable to close the logging file descriptor (log_path) after writing each
51 # line.
52 #log_keepopen=true
54 # Set to true to enable logging to syslog.
55 #syslog=false
57 # The logging level: 0=connections and errors, 1=client commands.
58 #log_level=0
60 # Enable gpg-agent support.
61 #use_agent=false
63 # The location of the gpg-agent socket.
64 #gpg_agent_socket=~/.gnupg/S.gpg-agent
66 # Kill the smartcard daemon after each OPEN or SAVE.
67 #kill_scd=false
69 # Require the passphrase needed for a data file before each SAVE.
70 #require_save_key=true
72 # Set to false to call mlockall(2) after a client connects. Uses more memory
73 # but is also more secure. Most will probably find it overkill since the
74 # contents of all memory is cleared before being freed.
75 #disable_mlockall=true
77 # Disable the XPATH, LIST and DUMP commands. When "true" and a client sends
78 # these commands the error GPG_ERR_NOT_IMPLEMENTED will be returned.
79 #disable_list_and_dump=false
81 # When sending data to the client an XFER status message will be sent after
82 # N bytes. N is rounded to ASSUAN_LINELENGTH (1002) bytes.
83 #xfer_progress=8196
85 # A comma separated list of filenames to add to the file cache upon startup.
86 # You will be prompted for the passphrasefor each file if required. The files
87 # are looked for in ~/.pwmd/data. This also affects rcfile reloading via
88 # SIGHUP.
89 #cache_push=somefile,anotherfile
91 # The number of seconds to keep a file in the cache. If -1, the file will be
92 # kept forever. If 0 then every OPEN will require a passphrase.
93 #cache_timeout=600
95 # The maximum recursion depth when resolving elements that contain a "target"
96 # attribute. When this value is exceeded an error will be returned.
97 #recursion_depth=100
99 # The priority or nice value of the server process. The default is inherited
100 # from the parent process.
101 #priority=10
103 # The cipher to use for newly created files.
104 #cipher=aes256
106 # The default key parameters to use when generating a new keypair
107 # (RSA 2048 bit).
108 #keyparam=(genkey (rsa (nbits 4:2048)))
110 # The number of passphrase hashing iterations.  The default is the calibrated
111 # value of the machine for gpg-agent data files and 5000000 when not.
112 #s2k_count=0
114 # In tenths of a second, the amount of time to wait for a file lock before
115 # returning an error to the client.
116 #lock_timeout=50
118 # Whether to enable TCP/TLS server support. If enabled, both TCP and the local
119 # unix domain socket will listen for connections.
120 #enable_tcp=false
122 # If TCP is enabled, the port to listen on.
123 #tcp_port=6466
125 # The network interface to listen on.
126 #tcp_interface=eth1
128 # The number of seconds to wait for a network read and write to complete
129 # for TLS connections.
130 #tls_timeout=300
132 # Require the client to provide the key to open a file even if the file is
133 # cached.
134 #tcp_require_key=false
136 # The time in tenths of a second to wait for a new TCP connection.  Setting to
137 # 0 will disable waiting.
138 #tcp_wait=3
140 # Accept TCP connections from the specified protocol. One of: ipv4, ipv6 or
141 # any. The default is "any".
142 #tcp_bind=any
144 # The GnuTLS cipher suite and protocol to use.
145 #tls_cipher_suite=SECURE256
147 # TLS key exchange security level: low, medium or high.
148 #tls_dh_level=medium
150 # The interval in seconds to send the KEEPALIVE status message when
151 # not in a command.
152 #keepalive_interval=60
154 # Send client state information to all connected clients. 0=disable, 1=all,
155 # 2=invoking user clients only.
156 #send_state=2
158 # END GLOBAL SETTINGS
160 # File specific settings are allowed by placing the filename in braces. Each
161 # file can have it's own configuration settings from those listed below.
162 #[somefile]
163 #allowed=@group,!not_this_user,!#DENIEDFINGERPRINT
164 #cache_timeout=300
165 #passphrase=password
166 #passphrase_file=/path/to/file.key
167 #backup=true
168 #xfer_progress=1024
169 #recursion_depth=200