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.
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.
15 # Location of the listening socket.
16 #socket_path=~/.pwmd/socket
18 # Socket permissions. This will override any umask setting.
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
41 # When false, disable keeping backups for data files.
47 # Set to true to enable logging to log_path.
50 # Disable to close the logging file descriptor (log_path) after writing each
54 # Set to true to enable logging to syslog.
57 # The logging level: 0=connections and errors, 1=client commands.
60 # Enable gpg-agent support.
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.
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.
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
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.
95 # The maximum recursion depth when resolving elements that contain a "target"
96 # attribute. When this value is exceeded an error will be returned.
99 # The priority or nice value of the server process. The default is inherited
100 # from the parent process.
103 # The cipher to use for newly created files.
106 # The default key parameters to use when generating a new keypair
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.
114 # In tenths of a second, the amount of time to wait for a file lock before
115 # returning an error to the client.
118 # Whether to enable TCP/TLS server support. If enabled, both TCP and the local
119 # unix domain socket will listen for connections.
122 # If TCP is enabled, the port to listen on.
125 # The network interface to listen on.
128 # The number of seconds to wait for a network read and write to complete
129 # for TLS connections.
132 # Require the client to provide the key to open a file even if the file is
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.
140 # Accept TCP connections from the specified protocol. One of: ipv4, ipv6 or
141 # any. The default is "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.
150 # The interval in seconds to send the KEEPALIVE status message when
152 #keepalive_interval=60
154 # Send client state information to all connected clients. 0=disable, 1=all,
155 # 2=invoking user clients only.
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.
163 #allowed=@group,!not_this_user,!#DENIEDFINGERPRINT
166 #passphrase_file=/path/to/file.key