X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/763d5e6ad88ef3ba1cd1d7742d060e4f1e54c6b8..ba39faf632da43d64106536f256153c2092346e4:/doc/disorder.1.in diff --git a/doc/disorder.1.in b/doc/disorder.1.in index 4e6e184..847ae35 100644 --- a/doc/disorder.1.in +++ b/doc/disorder.1.in @@ -1,5 +1,5 @@ .\" -.\" Copyright (C) 2004, 2005, 2006 Richard Kettlewell +.\" Copyright (C) 2004, 2005, 2006, 2007 Richard Kettlewell .\" .\" This program is free software; you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by @@ -24,14 +24,7 @@ disorder \- DisOrder jukebox client .RI [ OPTIONS ] .RB [ -- ] .RI [ COMMANDS ...] -.br -.B disorder -.B --length -.RI [ OPTIONS ] -.RB [ -- ] -.IR PATH ... .SH DESCRIPTION -Without the \fB--length\fR option, .B disorder is used to query the \fBdisorderd\fR(8) daemon from the command line. It may be used to request tracks, scratch tracks, query the current @@ -54,10 +47,6 @@ Enable debugging. .B --help\fR, \fB-h Display a usage message. .TP -.B --length\fR, \fB-L -Calculate the length in seconds of the files specified using the tracklength -plugin. -.TP .B --version\fR, \fB-V Display version number. .TP @@ -65,6 +54,19 @@ Display version number. List all known commands. .SH COMMANDS .TP +.B adduser \fIUSER PASSWORD\fR +Create a new user with default rights. +.TP +.B authorize \fIUSER\fR +Chooses a password for \fIUSER\fR and adds it to \fIconfig.private\fR. Also +creates an appropriate \fIconfig.USER\fR, be owned by the user. +.IP +If at least one \fBauthorize\fR command succeeds then the server is +automatically told to re-read its configuration. +.TP +.B deluser \fIUSER\fR +Delete a user. +.TP .B dirs \fIDIRECTORY\fR [\fB~\fIREGEXP\fR] List all the directories in \fIDIRECTORY\fR. .IP @@ -74,6 +76,9 @@ directories with a basename matching the regexp will be returned. .B disable Disables playing after the current track finishes. .TP +.B edituser \fIUSER PROPERTY VALUE +Set some property of a user. +.TP .B enable (Re-)enable playing. .TP @@ -143,15 +148,26 @@ Enable random play. List recently played tracks. The first entry is the oldest track, the last entry is the most recently played one. .TP +.B reconfigure +Make the daemon reload its configuration file. +.TP .B remove \fITRACK\fR Remove a track from the queue. .TP +.B rescan +Rescan the filesystem for new tracks. There is an automatic daily rescan but +if you've just added some tracks and want them to show up immediately, use this +command. +.TP .B resolve \fITRACK\fR Resolve aliases for \fITRACK\fR and print out the real track name. .TP .B resume Resume the current track after a pause. .TP +.B rtp-address +Report the RTP brodcast address used by the server (if any). +.TP .B scratch Scratch the currently playing track. .TP @@ -168,7 +184,7 @@ for example: You can limit the search to tracks with a particular tag, too, using the \fBtag:\fR modifier. For example: .IP -.B "disorder search 'love tag:depressing' +.B "disorder search 'love tag:depressing'" .TP .B set \fITRACK\fR \fIKEY\fR \fIVALUE\fR Set the preference \fIKEY\fR for \fITRACK\fR to \fIVALUE\fR. @@ -179,6 +195,9 @@ Set a global preference. .B set-volume \fBLEFT\fR \fBRIGHT\fR Sets the volume. .TP +.B shutdown +Shut down the daemon. +.TP .B stats List server statistics. .TP @@ -191,6 +210,12 @@ Unset the preference \fIKEY\fR for \fITRACK\fR. .B unset-global \fIKEY\fR Unset the global preference \fIKEY\fR. .TP +.B userinfo \fIUSER PROPERTY +Get some property of a user. +.TP +.B users +List known users. +.TP .B version Report the daemon's version number. .PP @@ -200,22 +225,6 @@ and .BR remove , tracks may be specified by name or by ID. If you use the name and a track appears twice in the queue it is undefined which is affected. -.SS "Privileged Commands" -These commands are only available to privileged users. -.TP -.B become \fIUSER\fR -Become another user. -.TP -.B reconfigure -Make the daemon reload its configuration file. -.TP -.B rescan -Rescan the filesystem for new tracks. There is an automatic daily rescan but -if you've just added some tracks and want them to show up immediately, use this -command. -.TP -.B shutdown -Shut down the daemon. .SH PREFERENCES Currently the following preferences are supported. Some are expected to be set by users, others updated automatically by plugins. @@ -260,23 +269,18 @@ is not present. .B unscratched The number of times the track has been played to completion without being scratched. -.SH "Superuser Commands" -These commands will (generally) only work for root, who must be a privileged -user. -.TP -.B authorize \fIUSER\fR -Chooses a password for \fIUSER\fR and adds it to \fIconfig.private\fR. Also -creates an appropriate \fIconfig.USER\fR, be owned by the user. -.IP -If at least one \fBauthorize\fR command succeeds then the server is -automatically told to re-read its configuration. .SH NOTES .B disorder is locale-aware. If you do not set the locale correctly then it may not handle non-ASCII data properly. .PP -The client determines which user to attempt to authenticate as by -examining the current UID. +The client determines which user to attempt to authenticate as by examining the +current UID. This can be overridden in a per-user configuration file, see +\fBdisorder_config\fR(5). +.PP +See \fBdisorder_protocol\fR(5) for the rights required to run each command. +(For instance, \fBshutdown\fR requires the \fBadmin\fR right, which most users +would not normally have.) .PP This program is not intended to run in a setuid environment. .PP