File: prelude-admin.1

package info (click to toggle)
libprelude 5.2.0-3%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 22,672 kB
  • sloc: ansic: 106,364; cpp: 65,981; sh: 13,078; perl: 683; makefile: 670; awk: 343; yacc: 319; lex: 177; xml: 61; python: 41
file content (154 lines) | stat: -rw-r--r-- 5,286 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
.TH "prelude-admin" 1 "19 June 2007"
.SH NAME
prelude-admin \- Manage agents accounts

.SH SYNOPSIS
.B prelude-admin 
<subcommand> [options] [args]

.B prelude-admin add <profile name> [--uid UID] [--gid GID]

.B prelude-admin chown <profile name> [--uid UID] [--gid GID]

.B prelude-admin del <profile name>

.B prelude-admin rename <profile name> <profile name>

.B prelude-admin register <profile name> <wanted permission> <registration-server address> [--uid UID] [--gid GID] [--passwd=PASSWD>] [--passwd-file=<FILE>]

.B prelude-admin registration-server <profile name> [--uid UID] [--gid GID] [--prompt] [--passwd=PASSWD>] [--passwd-file=<FILE>] [--keepalive] [--no-confirm] [--listen]

.B prelude-admin revoke <profile> <analyzerID> [--uid UID] [--gid GID]

.SH DESCRIPTION
In order for an agent to communicate with a manager, it must be registered. Registration involves several steps:
 - Allocating a unique identity for the agent
 - Creating directory to be used by the agent (example: failover purpose)
 - Registering to a remote 'prelude-manager': get a signed X509 certificate that will allow communication between agent and manager using the specified permissions. 

All this information is stored in an agent profile.

An agent profile is identified by its name. When an agent is started, it will load the profile of the same name as the program itself, that is, if your agent is named "prelude-lml", the agent will load the profile named "prelude-lml". 

The name of the profile can be overridden using the '--prelude --profile name_of_my_profile' command line option. It is possible to define the profile name so that you can have several instances of one agent running with different permissions, using different profiles. 

Note that profiles are not specific to agents, but are used in all programs of the Prelude suite (agents, managers, etc).

If you are not sure which permission your agent should get, just start it and default permissions will be displayed.

.SH OPTIONS

.B <profile name>
is the default name of the agent you are installing or your own defined name.

If you start your agent without prior registration, a warning is displayed including the default profile name on how to register the agent. 

.B <requested permission>
is the permission your agent needs. It is composed of permission attributes (idmef or admin) and access type: read/write (r/w). By default, an agent need permissions for writing IDMEF to a manager, and reading administrative command sent to it. That is: "idmef:w admin:r".

.B <manager address>
is the address of the prelude-manager you wish to register. This can either be its IP address or its hostname. If you made a local installation, you can write localhost to connect via unix socket.

Remember to use the correct uid/gid when registering your agent. For instance, if you want to register snort (running with snort euid / egid), use --uid snort --gid snort. 

.TP 5
.B add <analyzer profile>
Setup a new agent user.

.B --uid=UID
UID or user to use to setup agent files.

.B --gid=GID
GID or group to use to setup agent files.
.TP


.B chown <analyzer profile>
Change analyzer owner.

.B --uid=UID
UID or user to use to setup agent files.

.B --gid=GID
GID or group to use to setup agent files.
.TP


.B del <analyzer profile>
The delete command will remove the agent files created through "add" command. Once this is done, the analyzer can't be used unless "register" or "add" is called again.
.TP


.B rename <analyzer profile> <analyzer profile>
Rename an existing analyzer.
.TP


.B register <profile name> <wanted permission> <registration-server address>
Register an analyzer.

Register and create the analyzer basic setup if needed.
It will also configure communication of this analyzer with a
receiving analyzer (like a Manager) through the specified registration-server.

.B --uid=UID
UID or user to use to setup analyzer files.

.B --gid=GID
GID or group to use to setup analyzer files.

.B --passwd=PASSWD
Use provided password instead of prompting it.

.B --passwd-file=-|FILE
Read password from file instead of prompting it (- for stdin).
.TP


.B registration-server <profile name>
Start a registration server to register agents.
This is used in order to register 'sending' analyzer to 'receiving'
analyzer. <profile name> should be set to the profile name of
the 'receiving' analyzer, the one where 'sending' analyzer will
register to.

.B --uid=UID
UID or user to use to setup 'receiving' analyzer files.

.B --gid=GID
GID or group to use to setup 'receiving' analyzer files.

.B --prompt
Prompt for a password instead of auto generating it.

.B --passwd=PASSWD
Use provided password instead of auto generating it.

.B --passwd-file=-|FILE
Read password from file instead of auto generating it (- for stdin).

.B --keepalive
Register analyzer in an infinite loop.

.B --no-confirm
Do not ask for confirmation on agent registration.

.B --listen
Address to listen on for registration request (default is any:5553).
.TP

.B revoke <profile name>
Revoke access to <profile> for the given analyzerID.

.B --uid=UID
UID or user to use to setup analyzer files.

.B --gid=GID
GID to group to use to setup analyzer files.
.TP

.B --help
Print help

.SH AUTHOR
This man page has been written by Frederic Motte