from small one page howto to huge articles all in one place
 

search text in:





Poll
Which kernel version do you use?





poll results

Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

95814

userrating:

average rating: 1.7 (83 votes) (1=very good 6=terrible)


May 25th. 2007:
Words

486

Views

211270

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

92678

userrating:

average rating: 1.3 (28 votes) (1=very good 6=terrible)


April, 26th. 2006:

Druckversion
You are here: manpages





USERDB

Section: Double Precision, Inc. (8)
Updated: 08/25/2013
Index Return to Main Contents
 

NAME

userdb - manipulate /etc/courier/authlib/userdb  

SYNOPSIS

userdb {addr} set {field=value...}
userdb {addr} unset {field...}
userdb {addr} del
userdb {path/addr} [set | unset | del] ...
userdb -f {file} {adr} [set | unset | del] ...
userdb -show {path}
userdb -show {path} {addr}
userdb -show -f {file}
userdb -show -f {file} {addr}
 

DESCRIPTION

userdb

is a convenient script to individually manipulate entries in /etc/courier/authlib/userdb. See m[blue]makeuserdb(8)m[][1] for a description of its contents. /etc/courier/authlib/userdb can always be edited using any text editor, but userdb is a convenient way to modify this file from another script.

/etc/courier/authlib/userdb can also be a subdirectory, instead of a file. Specify foo/bar/addr to manipulate addr in the file /etc/courier/authlib/userdb/foo/bar. You can also use the -f flag: -f /etc/courier/authlib/userdb/foo/bar is equivalent. Use whatever form makes the most sense to you.

/etc/courier/authlib/userdb must not have any group or world permissions. That's because its contents may include system passwords (depending upon the application which uses this virtual user account database).

Each line in /etc/courier/authlib/userdb takes following form:

addr<TAB>field=value|field=value...

addr specifies a unique virtual address. It is followed by a single tab character, then a list of field=value pairs, separated by vertical slash characters. See m[blue]makeuserdb(8)m[][1] for field definitions.

A text editor can be used to add blank lines or comments in /etc/courier/authlib/userdb. Any blank lines or comments are ignored by the userdb script.

The names of the actual fields, and their contents, are defined entirely by applications that use the /etc/courier/authlib/userdb database, the userdb command just adds or removes arbitrary fields.

For example:

userdb default/info set mail=/home/mail/info

This command accesses the address "info" in /etc/courier/authlib/userdb/default.

If the second argument to userdb is "set", the remaining arguments are taken as field=value pairs, which are added to the record for addr. If there is no record for addr, a new record will be appended to the file. If addr exists, any existing values of any specified fields are removed. If =value is missing, userdb stops and prompts for it. This is useful if you're setting a password field, where you do not want to specify the password on the command line, which can be seen by the ps(1) command. If userdb is being executed by a script, the value can be provided on standard input.

Use "unset" to delete fields from an existing record. Use "del" to delete all fields in the existing record, plus the record itself.  

DISPLAYING /etc/courier/authlib/userdb

If the first argument to userdb is -show, userdb displays the contents of /etc/courier/authlib/userdb. If /etc/courier/authlib/userdb is a subdirectory, path must refer to a specific file in /etc/courier/authlib/userdb. The -f option can be used instead of path in order to specify an arbitrary file.

If addr is not specified, userdb produces a list, on standard output, containing all addresses found in the file, on per line. If addr is specified, userdb produces a list, on standard output, of all the fields in /etc/courier/authlib/userdb for this addr.  

REBUILDING /etc/courier/authlib/userdb.dat

The actual virtual account/address database is /etc/courier/authlib/userdb.dat. This is a binary database file. /etc/courier/authlib/userdb is the plain text version. After running userdb, execute the m[blue]makeuserdb(8)m[][1] command to rebuild /etc/courier/authlib/userdb.dat for the changes to take effect.  

BUGS

addr must be unique. If /etc/courier/authlib/userdb is a subdirectory, it's possible to create the same addr in different files in the subdirectory. This is an error that is not currently detected by userdb, however the subsequent m[blue]makeuserdb(8)m[][1] command will fail with an error message.  

FILES

/etc/courier/authlib/userdb - plain text file, or directory of plain text files

.lock.filename - lock file for filename

.tmp.filename - temporary file used to create new contents of filename  

SEE ALSO

m[blue]makeuserdb(8)m[][1], m[blue]userdbpw(8)m[][2]  

NOTES

1.
makeuserdb(8)
[set $man.base.url.for.relative.links]/makeuserdb.html
2.
userdbpw(8)
[set $man.base.url.for.relative.links]/userdbpw.html


 

Index

NAME
SYNOPSIS
DESCRIPTION
DISPLAYING /etc/courier/authlib/userdb
REBUILDING /etc/courier/authlib/userdb.dat
BUGS
FILES
SEE ALSO
NOTES


Please read "Why adblockers are bad".



Other free services
toURL.org
Shorten long
URLs to short
links like
http://tourl.org/2
tourl.org
.
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server
www.reversednslookup.org
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2013 Sascha Nitsch Unternehmensberatung UG(haftungsbeschränkt)
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 3.4 ms