.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.0102 (Pod::Simple 3.45) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "RAZOR-ADMIN 1" .TH RAZOR-ADMIN 1 2024-09-01 "perl v5.40.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME "razor\-admin" \- Razor Registering Agent .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 1 \& razor\-admin [options] [ \-register | \-create | \-discover ] .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" \&\f(CW\*(C`razor\-admin\*(C'\fR is the Razor Agent that performs administrative functions, most notably registering (\-register) .SH USAGE .IX Header "USAGE" \&\f(CW\*(C`razor\-admin\*(C'\fR must have one of the following arguments: .ie n .IP """\-register""" 4 .el .IP \f(CW\-register\fR 4 .IX Item "-register" Registers a new identity, used for authenticating with Razor Nomination Servers. Identities are a user + password pair stored in \&\f(CW\*(C`/identity\-\*(C'\fR. The first time \f(CW\*(C`razor\-admin \-register\*(C'\fR exits successfully, a symlink \f(CW\*(C`identity\*(C'\fR is created to point to the active \f(CW\*(C`identity\-\*(C'\fR file. After that, new identities can be created, but in order to use them the symlink \&\f(CW\*(C`identity\*(C'\fR must be changed to point to them. In general, it should be called once from the command line. Exits 0 for success, exits 1 on failure with a human-readable output message. .Sp Both \fBrazor\-report\fR\|(1) and \fBrazor\-revoke\fR\|(1) require user authentication to work, \fBrazor\-check\fR\|(1) does not. This allows the Razor Nomination Server to keep track of how many messages a user reports and revokes. The more messages a user correctly reports and/or correctly revokes, the more trust the user earns. Likewise, when messages are incorrectly reported or revoked, the trust goes down for that user. Highly trusted users will have the most affect on the Razor database. .ie n .IP """\-discover""" 4 .el .IP \f(CW\-discover\fR 4 .IX Item "-discover" Force discovery. This will create \f(CW\*(C`server.*.lst\*(C'\fR files in . .ie n .IP """\-create""" 4 .el .IP \f(CW\-create\fR 4 .IX Item "-create" Explicitly creates \f(CW\*(C`razor\-agent.conf\*(C'\fR file in , as well as if it does not exist. Normally loads \f(CW\*(C`/etc/razor/razor\-agent.conf\*(C'\fR if it exists, using defaults for anything not found. Does not attempt to register with server, but will do discovery, see \f(CW\*(C`\-discover\*(C'\fR. .SH OPTIONS .IX Header "OPTIONS" \&\f(CW\*(C`razor\-admin\*(C'\fR takes following optional arguments: .ie n .IP """\-h""" 4 .el .IP \f(CW\-h\fR 4 .IX Item "-h" Print a usage message and exit. .ie n .IP """\-v""" 4 .el .IP \f(CW\-v\fR 4 .IX Item "-v" Print the version number and exit. .ie n .IP """\-d | \-\-verbose""" 4 .el .IP "\f(CW\-d | \-\-verbose\fR" 4 .IX Item "-d | --verbose" Print debugging information. .ie n .IP """\-debuglevel=n | \-dl=n""" 4 .el .IP "\f(CW\-debuglevel=n | \-dl=n\fR" 4 .IX Item "-debuglevel=n | -dl=n" Set debug level to 'n'. Default is 3 without \f(CW\*(C`\-d\*(C'\fR option, 9 with. .ie n .IP """\-s""" 4 .el .IP \f(CW\-s\fR 4 .IX Item "-s" Simulate a check. Do everything except talk to the server. .ie n .IP """\-conf=filename""" 4 .el .IP \f(CW\-conf=filename\fR 4 .IX Item "-conf=filename" Specifies an alternate configuration file. If not specified, it is computed, see \fBrazor\-agents\fR\|(1) manpage for details. See \fBrazor\-agent.conf\fR\|(5) manpage for various configuration options. The default is \f(CW\*(C`/razor\-agent.conf\*(C'\fR. .ie n .IP """\-home=directory""" 4 .el .IP \f(CW\-home=directory\fR 4 .IX Item "-home=directory" Specify razorhome directory. This is where the configuration file, logfiles, identities, and server files live. If not specified, it is computed, see \fBrazor\-agents\fR\|(1) manpage for details. .ie n .IP """\-logfile=file""" 4 .el .IP \f(CW\-logfile=file\fR 4 .IX Item "-logfile=file" Specify file to log to instead of what is in the configuration file. The default is \f(CW\*(C`/razor\-agent.log\*(C'\fR. .ie n .IP """\-ident=filename""" 4 .el .IP \f(CW\-ident=filename\fR 4 .IX Item "-ident=filename" Specify an identify file to use for storing a newly registered identity. If not specified, \f(CW\*(C`/identity\-\*(C'\fR is used. .ie n .IP """\-rs=razor.server.com""" 4 .el .IP \f(CW\-rs=razor.server.com\fR 4 .IX Item "-rs=razor.server.com" Use this Razor Nomination Server instead of reading \&\f(CW\*(C`servers.nomination.lst\*(C'\fR. .ie n .IP """\-user=user@domain.com""" 4 .el .IP \f(CW\-user=user@domain.com\fR 4 .IX Item "-user=user@domain.com" Request to be known as this username. Must be less than 64 chars and may contain A\-Z, a\-z, 0\-9, as well printable chars [ex: \- _ @ . + / ]. If not specified, a username will be assigned. Razor users are encouraged to use their email addresses as their username. .ie n .IP """\-pass=password""" 4 .el .IP \f(CW\-pass=password\fR 4 .IX Item "-pass=password" Request this password. Valid chars are the same as for \-user. If not specified, it will be assigned. .ie n .IP """\-l""" 4 .el .IP \f(CW\-l\fR 4 .IX Item "-l" The identity created during this \f(CW\*(C`razor\-admin\*(C'\fR becomes the default. Normally, the first identity file created by \f(CW\*(C`razor\-admin\*(C'\fR is the default one used. .SH EXAMPLES .IX Header "EXAMPLES" .IP "razor-admin \-d \-create" 4 .IX Item "razor-admin -d -create" With no global razorhome defined (default) in /etc/razor/razor\-agents.conf, creates .razor directory in user's home directory. .Sp With global razorhome defined in /etc/razor/razor\-agents.conf, will try to use that one, will fail if it does not have correct permissions. .IP "razor-admin \-register" 4 .IX Item "razor-admin -register" Registers a new identity, storing it in razorhome. User and pass will be server generated. An identity is required for \fBrazor\-report\fR\|(1) and \fBrazor\-revoke\fR\|(1). .IP "razor-admin \-register \-user me@a.com" 4 .IX Item "razor-admin -register -user me@a.com" Attempts to register a new identity using the user name 'me\e@a.com'. Will fail if user is already taken. .IP "razor-admin \-d \-create \-home=/home/me/.razor" 4 .IX Item "razor-admin -d -create -home=/home/me/.razor" Creates .razor directory in user's home directory, which will then be the default home unless specified from cmd-line. Sends debugging information to stdout, and does not talk to any Razor Servers. .IP "razor-admin \-d \-create \-home=/etc/razor" 4 .IX Item "razor-admin -d -create -home=/etc/razor" Creates global razorhome, /etc/razor. This is the magic directory that will be consulted if no razorhome is specified on the cmd-line or found in user's home directory. .SH AUTHORS .IX Header "AUTHORS" Vipul Ved Prakash , and Chad Norwood .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBrazor\-agents\fR\|(1), \fBrazor\-agent.conf\fR\|(5), \fBrazor\-check\fR\|(1), \&\fBrazor\-report\fR\|(1), \fBrazor\-revoke\fR\|(1), \fBrazor\-whitelist\fR\|(5) .SH LICENSE .IX Header "LICENSE" This is free software, distributed under the Artistic License 2.0.