* [PATCH 1/6] docs: bring the rtcwake man page closer to standard formatting
@ 2014-07-27 18:58 Benno Schulenberg
2014-07-27 18:58 ` [PATCH 2/6] docs: sort the options in the man pages of hwclock and uuidd Benno Schulenberg
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: Benno Schulenberg @ 2014-07-27 18:58 UTC (permalink / raw)
To: util-linux
Also sort the options alphabetically, and use the standard comma
instead of the vertical bar to separate short from long option.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
---
sys-utils/rtcwake.8.in | 152 ++++++++++++++++++++++++------------------------
1 files changed, 77 insertions(+), 75 deletions(-)
diff --git a/sys-utils/rtcwake.8.in b/sys-utils/rtcwake.8.in
index 643b59d..5ec9c6c 100644
--- a/sys-utils/rtcwake.8.in
+++ b/sys-utils/rtcwake.8.in
@@ -16,19 +16,20 @@
.\" Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
.\" 02110-1301, USA.
.\"
-.TH RTCWAKE 8 "July 2007" "util-linux" "System Administration"
+.TH RTCWAKE 8 "July 2014" "util-linux" "System Administration"
.SH NAME
-rtcwake - enter a system sleep state until specified wakeup time
+rtcwake \- enter a system sleep state until specified wakeup time
.SH SYNOPSIS
.B rtcwake
-.RB [ options ]
+[options]
.RB [ \-d
.IR device ]
.RB [ \-m
.IR standby_mode ]
-.RB { "\-t \fItime_t\fP" | "\-s \fIseconds\fP" }
+.RB { "\-s \fIseconds\fP" | "\-t \fItime_t\fP" }
.SH DESCRIPTION
-This program is used to enter a system sleep state until specified wakeup time.
+This program is used to enter a system sleep state and to automatically
+wake from it at a specified time.
.PP
This uses cross-platform Linux interfaces to enter a system sleep state, and
leave it no later than a specified time. It uses any RTC framework driver that
@@ -37,121 +38,122 @@ supports standard driver model wakeup flags.
This is normally used like the old \fBapmsleep\fP utility, to wake from a suspend
state like ACPI S1 (standby) or S3 (suspend-to-RAM). Most platforms can
implement those without analogues of BIOS, APM, or ACPI.
-.P
+.PP
On some systems, this can also be used like \fBnvram-wakeup\fP, waking from states
like ACPI S4 (suspend to disk). Not all systems have persistent media that are
appropriate for such suspend modes.
-.SS Options
-.TP
-\fB-v\fP | \fB--verbose\fP
-Be verbose.
+.SH OPTIONS
.TP
-\fB-h\fP | \fB--help\fP
-Display help text and exit.
-.TP
-\fB-V\fP | \fB--version\fP
-Display version information and exit.
+.BR \-A , " \-\-adjfile " \fIfile
+Specify an alternative path to the adjust file.
.TP
-\fB-n\fP | \fB--dry-run\fP
-This option does everything apart from actually setting up the alarm,
-suspending the system, or waiting for the alarm.
-.TP
-\fB-A\fP | \fB--adjfile\fP \fIfile\fP
-Specifies an alternative path to the adjust file.
-.TP
-\fB-a\fP | \fB--auto\fP
-Reads the clock mode (whether the hardware clock is set to UTC or local time)
-from \fIadjtime\fP file. That's the location where the
+.BR \-a , " \-\-auto"
+Read the clock mode (whether the hardware clock is set to UTC or local time)
+from the \fIadjtime\fP file, where
.BR hwclock (8)
-stores that information. This is the default.
-.TP
-\fB-l\fP | \fB--local\fP
-Assumes that the hardware clock is set to local time, regardless of the
-contents of \fIadjtime\fP file.
+stores that information. This is the default.
.TP
-\fB-u\fP | \fB--utc\fP
-Assumes that the hardware clock is set to UTC (Universal Time Coordinated),
-regardless of the contents of \fIadjtime\fP file.
+.BR \-d , " \-\-device " \fIdevice
+Use the specified \fIdevice\fP instead of \fBrtc0\fP as realtime clock.
+This option is only relevant if your system has more than one RTC.
+You may specify \fBrtc1\fP, \fBrtc2\fP, ... here.
.TP
-\fB-d\fP \fIdevice\fP | \fB--device\fP \fIdevice\fP
-Uses \fIdevice\fP instead of \fIrtc0\fP as realtime clock. This option
-is only relevant if your system has more than one RTC. You may specify
-\fIrtc1\fP, \fIrtc2\fP, ... here.
+.BR \-l , " \-\-local"
+Assume that the hardware clock is set to local time, regardless of the
+contents of the \fIadjtime\fP file.
.TP
-\fB-s\fP \fIseconds\fP | \fB--seconds\fP \fIseconds\fP
-Sets the wakeup time to \fIseconds\fP in future from now.
-.TP
-\fB-t\fP \fItime_t\fP | \fB--time\fP \fItime_t\fP
-Sets the wakeup time to the absolute time \fItime_t\fP. \fItime_t\fP
-is the time in seconds since 1970-01-01, 00:00 UTC. Use the
-.BR date (1)
-tool to convert between human-readable time and \fItime_t\fP.
-.TP
-\fB-m\fP \fImode\fP | \fB--mode\fP \fImode\fP
-Use standby state \fImode\fP. Valid values are:
+.BR \-m , " \-\-mode " \fImode
+Go into the given standby state. Valid values for \fImode\fP are:
.RS
.TP
.B standby
-ACPI state S1. This state offers minimal, though real, power savings, while
-providing a very low-latency transition back to a working system. This is the
+ACPI state S1. This state offers minimal, though real, power savings, while
+providing a very low-latency transition back to a working system. This is the
default mode.
.TP
+.B freeze
+The processes are frozen, all the devices are suspended and all the processors
+idled. This state is a general state that does not need any platform-specific
+support, but it saves less power than Suspend-to-RAM, because the system is
+still in a running state. (Available since Linux 3.9.)
+.TP
.B mem
-ACPI state S3 (Suspend-to-RAM). This state offers significant power savings as
+ACPI state S3 (Suspend-to-RAM). This state offers significant power savings as
everything in the system is put into a low-power state, except for memory,
which is placed in self-refresh mode to retain its contents.
.TP
-.B freeze
-The processes are frozen, all the devices are suspended and all the processors
-idles. This state is a general state that does not need any platform specific
-support, but it saves less power than susepnd to RAM, because the system is
-still in a running state. (since Linux 3.9)
-.TP
.B disk
-ACPI state S4 (Suspend-to-disk). This state offers the greatest power savings,
+ACPI state S4 (Suspend-to-disk). This state offers the greatest power savings,
and can be used even in the absence of low-level platform support for power
-management. This state operates similarly to Suspend-to-RAM, but includes a
+management. This state operates similarly to Suspend-to-RAM, but includes a
final step of writing memory contents to disk.
.TP
.B off
-ACPI state S5 (Poweroff). This is done by calling '/sbin/shutdown'.
-Not officially supported by ACPI, but usually working.
+ACPI state S5 (Poweroff). This is done by calling '/sbin/shutdown'.
+Not officially supported by ACPI, but it usually works.
.TP
.B no
-Don't suspend. The rtcwake command sets RTC wakeup time only.
+Don't suspend, only set the RTC wakeup time.
.TP
.B on
-Don't suspend, but read RTC device until alarm time appears. This mode is
-useful for debugging.
+Don't suspend, but read the RTC device until an alarm time appears.
+This mode is useful for debugging.
.TP
.B disable
-Disable previously set alarm.
+Disable a previously set alarm.
.TP
.B show
Print alarm information in format: "alarm: off|on <time>".
The time is in ctime() output format, e.g. "alarm: on Tue Nov 16 04:48:45 2010".
.RE
-.PP
-.SH FILES
-.I @ADJTIME_PATH@
+.TP
+.BR \-n , " \-\-dry-run"
+This option does everything apart from actually setting up the alarm,
+suspending the system, or waiting for the alarm.
+.TP
+.BR \-s , " \-\-seconds " \fIseconds
+Set the wakeup time to \fIseconds\fP in the future from now.
+.TP
+.BR \-t , " \-\-time " \fItime_t
+Set the wakeup time to the absolute time \fItime_t\fP. \fItime_t\fP
+is the time in seconds since 1970-01-01, 00:00 UTC. Use the
+.BR date (1)
+tool to convert between human-readable time and \fItime_t\fP.
+.TP
+.BR \-u , " \-\-utc"
+Assume that the hardware clock is set to UTC (Universal Time Coordinated),
+regardless of the contents of the \fIadjtime\fP file.
+.TP
+.BR \-v , " \-\-verbose"
+Be verbose.
+.TP
+.BR \-V , " \-\-version"
+Display version information and exit.
+.TP
+.BR \-h , " \-\-help"
+Display help text and exit.
.SH NOTES
-Some PC systems can't currently exit sleep states such as \fImem\fP
+Some PC systems can't currently exit sleep states such as \fBmem\fP
using only the kernel code accessed by this driver.
They need help from userspace code to make the framebuffer work again.
+.SH FILES
+.I @ADJTIME_PATH@
.SH HISTORY
The program was posted several times on LKML and other lists
before appearing in kernel commit message for Linux 2.6 in the GIT
commit 87ac84f42a7a580d0dd72ae31d6a5eb4bfe04c6d.
-.SH AVAILABILITY
-The rtcwake command is part of the util-linux package and is available from
-ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
-.SH AUTHOR
+.SH AUTHORS
The program was written by David Brownell <dbrownell@users.sourceforge.net>
and improved by Bernhard Walle <bwalle@suse.de>.
.SH COPYRIGHT
-This is free software. You may redistribute copies of it under the terms
-of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
+This is free software. You may redistribute copies of it under the terms
+of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
.SH "SEE ALSO"
.BR hwclock (8),
.BR date (1)
+.SH AVAILABILITY
+The rtcwake command is part of the util-linux package and is available from the
+.UR ftp://\:ftp.kernel.org\:/pub\:/linux\:/utils\:/util-linux/
+Linux Kernel Archive
+.UE .
\ No newline at end of file
--
1.7.0.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/6] docs: sort the options in the man pages of hwclock and uuidd
2014-07-27 18:58 [PATCH 1/6] docs: bring the rtcwake man page closer to standard formatting Benno Schulenberg
@ 2014-07-27 18:58 ` Benno Schulenberg
2014-07-27 18:58 ` [PATCH 3/6] docs: remove all mention of helper= and uhelper= from umount man page Benno Schulenberg
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Benno Schulenberg @ 2014-07-27 18:58 UTC (permalink / raw)
To: util-linux
Also improve the formatting a bit.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
---
misc-utils/uuidd.8.in | 52 +++---
sys-utils/hwclock.8.in | 409 ++++++++++++++++++++++++------------------------
2 files changed, 228 insertions(+), 233 deletions(-)
diff --git a/misc-utils/uuidd.8.in b/misc-utils/uuidd.8.in
index c38d715..0e25fb1 100644
--- a/misc-utils/uuidd.8.in
+++ b/misc-utils/uuidd.8.in
@@ -2,12 +2,12 @@
.\" Copyright 2007 by Theodore Ts'o. All Rights Reserved.
.\" This file may be copied under the terms of the GNU Public License.
.\"
-.TH UUIDD 8 "June 2011" "util-linux" "System Administration"
+.TH UUIDD 8 "July 2014" "util-linux" "System Administration"
.SH NAME
uuidd \- UUID generation daemon
.SH SYNOPSIS
.B uuidd
-.RI [ options ]
+[options]
.SH DESCRIPTION
The
.B uuidd
@@ -20,8 +20,8 @@ numbers of threads running on different CPUs trying to grab UUIDs.
.BR \-d , " \-\-debug "
Run uuidd in debugging mode. This prevents uuidd from running as a daemon.
.TP
-.BR \-h , " \-\-help "
-Display help screen and exit.
+.BR \-F , " \-\-no-fork "
+Do not daemonize using a double-fork.
.TP
.BR \-k , " \-\-kill "
If currently a uuidd daemon is running, kill it.
@@ -32,22 +32,13 @@ of
.I number
UUIDs.
.TP
+.BR \-P , " \-\-no-pid "
+Do not create a pid file.
+.TP
.BR \-p , " \-\-pid " \fIpath\fR
Specify the pathname where the pid file should be written. By default,
the pid file is written to @localstatedir@/uuidd/uuidd.pid.
.TP
-.BR \-P , " \-\-no-pid "
-Do not create pid file.
-.TP
-.BR \-F , " \-\-no-fork "
-Do not daemonize using double-fork.
-.TP
-.BR \-S , " \-\-socket-activation "
-Do not create the socket and instead expect it to be provided by the calling
-process. Implies --no-fork and --no-pid. As of this writing, this option is
-supposed to be used only with systemd. This option must be enabled with a configure
-option.
-.TP
.BR \-q , " \-\-quiet "
Suppress some failure messages.
.TP
@@ -55,16 +46,20 @@ Suppress some failure messages.
Test uuidd by trying to connect to a running uuidd daemon and
request it to return a random-based UUID.
.TP
+.BR \-S , " \-\-socket-activation "
+Do not create a socket but instead expect it to be provided by the calling
+process. This implies \fB--no-fork\fR and \fB--no-pid\fR. This option is
+intended to be used only with \fBsystemd\fR(1). It needs to be enabled with
+a configure option.
+.TP
.BR \-s , " \-\-socket " \fIpath\fR
-Specify the pathname used for the unix-domain socket used by uuidd. By
-default, the pathname used is @localstatedir@/uuidd/request. This is primarily
+Make uuidd use this pathname for the unix-domain socket. By default, the
+pathname used is @localstatedir@/uuidd/request. This option is primarily
for debugging purposes, since the pathname is hard-coded in the libuuid
library.
.TP
-.BR \-T , " \-\-timeout " \fItimeout\fR
-Specify a timeout for uuidd. If specified, then uuidd will exit after
-.I timeout
-seconds of inactivity.
+.BR \-T , " \-\-timeout " \fInumber\fR
+Make uuidd exit after \fInumber\fR seconds of inactivity.
.TP
.BR \-t , " \-\-time "
Test uuidd by trying to connect to a running uuidd daemon and
@@ -72,8 +67,11 @@ request it to return a time-based UUID.
.TP
.BR \-V , " \-\-version "
Output version information and exit.
+.TP
+.BR \-h , " \-\-help "
+Display help screen and exit.
.SH EXAMPLE
-Start up a daemon, print 42 random keys, and then stop the daemon.
+Start up a daemon, print 42 random keys, and then stop the daemon:
.PP
.RS
.nf
@@ -86,9 +84,11 @@ uuidd -d -k -s /tmp/uuidd.socket
The
.B uuidd
daemon was written by Theodore Ts'o <tytso@mit.edu>.
-.SH AVAILABILITY
-The uuidd daemon is part of the util-linux package and is available from
-ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
.SH "SEE ALSO"
.BR uuid (3),
.BR uuidgen (1)
+.SH AVAILABILITY
+The uuidd daemon is part of the util-linux package and is available from the
+.UR ftp://\:ftp.kernel.org\:/pub\:/linux\:/utils\:/util-linux/
+Linux Kernel Archive
+.UE .
diff --git a/sys-utils/hwclock.8.in b/sys-utils/hwclock.8.in
index 1e77269..b11b45c 100644
--- a/sys-utils/hwclock.8.in
+++ b/sys-utils/hwclock.8.in
@@ -1,4 +1,4 @@
-.TH HWCLOCK 8 "August 2011" "util-linux" "System Administration"
+.TH HWCLOCK 8 "July 2014" "util-linux" "System Administration"
.SH NAME
hwclock \- query or set the hardware clock (RTC)
.SH SYNOPSIS
@@ -23,7 +23,35 @@ gains time at a certain rate when left to run).
You need exactly one of the following options to tell
.B hwclock
what function to perform:
+.TP
+.B \-\-adjust
+Add or subtract time from the Hardware Clock to account for systematic
+drift since the last time the clock was set or adjusted. See the
+discussion below, under \fBThe Adjust Function\fR.
+.TP
+.BR \-c , \ \-\-compare
+Periodically compare the Hardware Clock to the System Time and output
+the difference every 10 seconds. This will also print the frequency
+offset and tick.
+.TP
+.B \-\-getepoch
+Print the kernel's Hardware Clock epoch value to standard output.
+This is the number of years into AD to which a zero year value in the
+Hardware Clock refers. For example, if you are using the convention
+that the year counter in your Hardware Clock contains the number of
+full years since 1952, then the kernel's Hardware Clock epoch value
+must be 1952.
.PP
+This epoch value is used whenever
+.B hwclock
+reads or sets the Hardware Clock.
+.TP
+.BI \-\-predict
+Predict what the RTC will read at the time given by the
+.B \-\-date
+option, based on the adjtime file. This is useful for example if you
+need to set an RTC wakeup time to a distant future and want to account
+for the RTC drift.
.TP
.BR \-r , \ \-\-show
Read the Hardware Clock and print the time on standard output.
@@ -32,16 +60,10 @@ in Coordinated Universal Time. See the
.B \-\-utc
option.
Showing the Hardware Clock time is the default when no function is specified.
-
-.TP
-.B \-\-set
-Set the Hardware Clock to the time given by the
-.B \-\-date
-option.
.TP
.BR \-s , \ \-\-hctosys
Set the System Time from the Hardware Clock.
-
+.PP
Also set the kernel's timezone value to the local timezone
as indicated by the TZ environment variable and/or
.IR /usr/share/zoneinfo ,
@@ -51,17 +73,26 @@ would interpret them.
The obsolete tz_dsttime field of the kernel's timezone value is set
to DST_NONE. (For details on what this field used to mean, see
.BR settimeofday (2).)
-
+.PP
This is a good option to use in one of the system startup scripts.
.TP
-.BR \-w , \ \-\-systohc
-Set the Hardware Clock to the current System Time.
+.B \-\-set
+Set the Hardware Clock to the time given by the
+.B \-\-date
+option.
+.TP
+.B \-\-setepoch
+Set the kernel's Hardware Clock epoch value to the value specified by the
+.B \-\-epoch
+option. See the
+.B \-\-getepoch
+option for details.
.TP
.B \-\-systz
Set the kernel's timezone and reset the System Time based on the current timezone.
-
+.PP
The system time is only reset on the first call after boot.
-
+.PP
The local timezone is taken to be what is
indicated by the TZ environment variable and/or
.IR /usr/share/zoneinfo ,
@@ -71,166 +102,39 @@ would interpret them.
The obsolete tz_dsttime field of the kernel's timezone value is set
to DST_NONE. (For details on what this field used to mean, see
.BR settimeofday (2).)
-
+.PP
This is an alternate option to
.B \-\-hctosys
that does not read the hardware clock, and may be used in system startup
scripts for recent 2.6 kernels where you know the System Time contains
-the Hardware Clock time. If the Hardware Clock is already in UTC, it is
+the Hardware Clock time. If the Hardware Clock is already in UTC, it is
not reset.
.TP
-.B \-\-adjust
-Add or subtract time from the Hardware Clock to account for systematic
-drift since the last time the clock was set or adjusted. See discussion
-below.
-.TP
-.B \-\-getepoch
-Print the kernel's Hardware Clock epoch value to standard output.
-This is the number of years into AD to which a zero year value in the
-Hardware Clock refers. For example, if you are using the convention
-that the year counter in your Hardware Clock contains the number of
-full years since 1952, then the kernel's Hardware Clock epoch value
-must be 1952.
-
-This epoch value is used whenever
-.B hwclock
-reads or sets the Hardware Clock.
-.TP
-.B \-\-setepoch
-Set the kernel's Hardware Clock epoch value to the value specified by the
-.B \-\-epoch
-option. See the
-.B \-\-getepoch
-option for details.
-
-.TP
-.BI \-\-predict
-Predict what the RTC will read at time given by the
-.B \-\-date
-option based on the adjtime file. This is useful for example if you
-need to set an RTC wakeup time to distant future and want to account
-for the RTC drift.
+.BR \-w , \ \-\-systohc
+Set the Hardware Clock to the current System Time.
.TP
-.BR \-c , \ \-\-compare
-Periodically compare the Hardware Clock to the System Time and output
-the difference every 10 seconds. This will also print the frequency
-offset and tick.
+.BR \-V , \ \-\-version
+Display version information and exit.
.TP
.BR \-h , \ \-\-help
Display help text and exit.
-.TP
-.BR \-V , \ \-\-version
-Display version information and exit.
.SH OPTIONS
-.PP
-The first two options apply to just a few specific functions,
-the others apply to most functions.
-.TP
-.BI \-\-date= date_string
-You need this option if you specify the
-.B \-\-set
-or
-.B \-\-predict
-functions, otherwise it is ignored.
-It specifies the time to which to set the Hardware Clock, or the
-time for which to predict the Hardware Clock reading.
-The value of this option is an argument to the
-.BR date (1)
-program.
-For example:
-.sp
-.B " hwclock" --set --date="2011-08-14 16:45:05"
-.sp
-The argument must be in local time, even if you keep your Hardware Clock in
-Coordinated Universal time. See the
-.B \-\-utc
-option.
-
-.TP
-.BI \-\-epoch= year
-Specifies the year which is the beginning of the Hardware Clock's
-epoch, that is the number of years into AD to which a zero value in the
-Hardware Clock's year counter refers. It is used together with
-the \fB\-\-setepoch\fR option to set the kernel's idea of the epoch of the
-Hardware Clock, or otherwise to specify the epoch for use with
-direct ISA access.
-
-For example, on a Digital Unix machine:
-.sp
-.B " hwclock" --setepoch --epoch=1952
-
-.TP
-.BR \-u , \ \-\-utc
-.TP
-.B \-\-localtime
-Indicates that the Hardware Clock is kept in Coordinated Universal
-Time or local time, respectively. It is your choice whether to keep
-your clock in UTC or local time, but nothing in the clock tells which
-you've chosen. So this option is how you give that information to
-.BR hwclock .
-
-If you specify the wrong one of these options (or specify neither and
-take a wrong default), both setting and querying of the Hardware Clock
-will be messed up.
-
-If you specify neither
-.B \-\-utc
-nor
-.BR \-\-localtime ,
-the default is whichever was specified the last time
-.B hwclock
-was used to set the clock (i.e.
-.B hwclock
-was successfully run with the
-.BR \-\-set ,
-.BR \-\-systohc ,
-or
-.B \-\-adjust
-options), as recorded in the adjtime file. If the adjtime file doesn't
-exist, the default is UTC time.
-
-.TP
-.B \-\-noadjfile
-Disables the facilities provided by
-.IR @ADJTIME_PATH@ .
-.B hwclock
-will not read nor write to that file with this option. Either
-.B \-\-utc
-or
-.B \-\-localtime
-must be specified when using this option.
.TP
.BI \-\-adjfile= filename
-Overrides the default @ADJTIME_PATH@.
-
-.TP
-.BR \-f , \ \-\-rtc=\fIfilename\fB
-Overrides the default /dev file name, which is
-.IR /dev/rtc
-on many platforms but may be
-.IR /dev/rtc0 ,
-.IR /dev/rtc1 ,
-and so on.
+Override the default @ADJTIME_PATH@.
.TP
-.B \-\-directisa
-This option is meaningful only on an ISA machine or an Alpha (which implements
-enough of ISA to be, roughly speaking, an ISA machine for
-.BR hwclock 's
-purposes). For other machines, it has no effect. This option tells
-.B hwclock
-to use explicit I/O instructions to access the Hardware Clock.
-Without this option,
-.B hwclock
-will try to use the /dev/rtc device (which it assumes to be driven by the
-RTC device driver). If it is unable to open the device (for reading), it will
-use the explicit I/O instructions anyway.
+.B \-\-arc
+This option is equivalent to
+.B \-\-epoch=1980
+and is used to specify the most common epoch on Alphas
+with ARC console (but Ruffians have epoch 1900).
.TP
.B \-\-badyear
-Indicates that the Hardware Clock is incapable of storing years outside
+Indicate that the Hardware Clock is incapable of storing years outside
the range 1994-1999. There is a problem in some BIOSes (almost all
Award BIOSes made between 4/26/94 and 5/31/95) wherein they are unable
to deal with years after 1999. If one attempts to set the year-of-century
@@ -239,7 +143,7 @@ actually gets set is 94 (or 95). Thus, if you have one of these machines,
.B hwclock
cannot set the year after 1999 and cannot use the value of the clock as
the true time in the normal way.
-
+.PP
To compensate for this (without your getting a BIOS update, which would
definitely be preferable), always use
.B \-\-badyear
@@ -253,7 +157,7 @@ within the past year. For this to work, you had better do a
or
.B hwclock \-\-systohc
at least once a year!
-
+.PP
Though
.B hwclock
ignores the year value when it reads the Hardware Clock, it sets the
@@ -263,28 +167,80 @@ the true year. That way, the Hardware Clock inserts leap days where
they belong. Again, if you let the Hardware Clock run for more than a
year without setting it, this scheme could be defeated and you could
end up losing a day.
-
+.PP
.B hwclock
warns you that you probably need
.B \-\-badyear
whenever it finds your Hardware Clock set to 1994 or 1995.
.TP
-.B \-\-srm
-This option is equivalent to
-.B \-\-epoch=1900
-and is used to specify the most common epoch on Alphas
-with SRM console.
+.BI \-\-date= date_string
+You need this option if you specify the
+.B \-\-set
+or
+.B \-\-predict
+functions, otherwise it is ignored.
+It specifies the time to which to set the Hardware Clock, or the
+time for which to predict the Hardware Clock reading.
+The value of this option is an argument to the
+.BR date (1)
+program.
+For example:
+.PP
+.B " hwclock" --set --date="2011-08-14 16:45:05"
+.PP
+The argument must be in local time, even if you keep your Hardware Clock in
+Coordinated Universal time. See the
+.B \-\-utc
+option.
+
.TP
-.B \-\-arc
-This option is equivalent to
-.B \-\-epoch=1980
-and is used to specify the most common epoch on Alphas
-with ARC console (but Ruffians have epoch 1900).
+.B \-\-debug
+Display a lot of information about what
+.B hwclock
+is doing internally. Some of its function is complex and this output
+can help you understand how the program works.
+
.TP
-.B \-\-jensen
+.B \-\-directisa
+This option is meaningful only on an ISA machine or an Alpha (which implements
+enough of ISA to be, roughly speaking, an ISA machine for
+.BR hwclock 's
+purposes). For other machines, it has no effect. This option tells
+.B hwclock
+to use explicit I/O instructions to access the Hardware Clock.
+Without this option,
+.B hwclock
+will try to use the /dev/rtc device (which it assumes to be driven by the
+RTC device driver). If it is unable to open the device (for reading), it will
+use the explicit I/O instructions anyway.
+
+.TP
+.BI \-\-epoch= year
+Specifies the year which is the beginning of the Hardware Clock's
+epoch, that is the number of years into AD to which a zero value in the
+Hardware Clock's year counter refers. It is used together with
+the \fB\-\-setepoch\fR option to set the kernel's idea of the epoch of the
+Hardware Clock, or otherwise to specify the epoch for use with
+direct ISA access.
+.PP
+For example, on a Digital Unix machine:
+.PP
+.B " hwclock" --setepoch --epoch=1952
+
+.TP
+.BR \-f , \ \-\-rtc=\fIfilename\fB
+Overrides the default /dev file name, which is
+.IR /dev/rtc
+on many platforms but may be
+.IR /dev/rtc0 ,
+.IR /dev/rtc1 ,
+and so on.
+
.TP
.B \-\-funky\-toy
+.TP
+.B \-\-jensen
These two options specify what kind of Alpha machine you have. They
are invalid if you don't have an Alpha and are usually unnecessary
if you do, because
@@ -298,7 +254,7 @@ is mounted.
work, contact the maintainer to see if the program can be improved
to detect your system automatically. Output of `hwclock --debug'
and `cat /proc/cpuinfo' may be of interest.)
-
+.PP
Option
.B \-\-jensen
means you are running on a Jensen model. And
@@ -307,6 +263,52 @@ means that on your machine one has to use the UF bit instead
of the UIP bit in the Hardware Clock to detect a time transition. "Toy"
in the option name refers to the Time Of Year facility of the machine.
+.TP
+.B \-\-localtime
+Indicate that the Hardware Clock is kept in local time.
+.PP
+It is your choice whether to keep
+your clock in UTC or in local time, but nothing in the clock itself
+says which alternative
+you've chosen. So with \fB\-\-localtime\fR or \fB\-\-utc\fR
+you give this information to
+.BR hwclock .
+If you specify the wrong one (or specify neither and take a wrong default),
+both setting and querying the Hardware Clock will be messed up.
+.PP
+If you specify neither
+.B \-\-utc
+nor
+.BR \-\-localtime ,
+the default is whichever was specified the last time
+.B hwclock
+was used to set the clock (i.e.
+.B hwclock
+was successfully run with the
+.BR \-\-set ,
+.BR \-\-systohc ,
+or
+.B \-\-adjust
+options), as recorded in the adjtime file. If the adjtime file doesn't
+exist, the default is UTC time.
+
+.TP
+.B \-\-noadjfile
+Disable the facilities provided by
+.IR @ADJTIME_PATH@ .
+.B hwclock
+will not read nor write to that file with this option. Either
+.B \-\-utc
+or
+.B \-\-localtime
+must be specified when using this option.
+
+.TP
+.B \-\-srm
+This option is equivalent to
+.B \-\-epoch=1900
+and is used to specify the most common epoch on Alphas
+with SRM console.
.TP
.B \-\-test
@@ -314,26 +316,23 @@ Do everything except actually updating the Hardware Clock or anything
else. This is useful, especially in conjunction with
.BR \-\-debug ,
in learning about
-.BR hwclock .
+
.TP
-.B \-\-debug
-Display a lot of information about what
-.B hwclock
-is doing internally. Some of its function is complex and this output
-can help you understand how the program works.
+.BR \-u , \ \-\-utc
+Indicate that the Hardware Clock is kept in Coordinated Universal Time.
+See the discussion under \fB\-\-localtime\fR.
.SH NOTES
-
-.SH Clocks in a Linux System
+.SS Clocks in a Linux System
.PP
There are two main clocks in a Linux system:
.PP
.B The Hardware Clock:
This is a clock that runs independently of any control program running
in the CPU and even when the machine is powered off.
-
+.PP
On an ISA system, this clock is specified as part of the ISA standard.
The control program can read or set this clock to a whole second, but
the control program can also detect the edges of the 1 second clock
@@ -355,7 +354,7 @@ integrated real-time clock which is used for most other purposes.
.B The System Time:
This is the time kept by a clock inside the Linux kernel and driven by
a timer interrupt. (On an ISA machine, the timer interrupt is part of
-the ISA standard). It has meaning only while Linux is running on the
+the ISA standard.) It has meaning only while Linux is running on the
machine. The System Time is the number of seconds since 00:00:00
January 1, 1970 UTC (or more succinctly, the number of seconds since
1969). The System Time is not an integer, though. It has virtually
@@ -406,21 +405,21 @@ This second field is not used under Linux and is always zero.
(See also
.BR settimeofday (2).)
-.SH Users access and setuid
+.SS User access and setuid
.PP
Sometimes, you need to install
.B hwclock
-setuid root. If you want users other than the superuser to be able to
+setuid root. If you want users other than the superuser to be able to
display the clock value using the direct ISA I/O method, install it setuid
-root. If you have the /dev/rtc interface on your system or are on a non-ISA
+root. If you have the /dev/rtc interface on your system or are on a non-ISA
system, there's probably no need for users to use the direct ISA I/O method,
so don't bother.
-
+.PP
In any case, hwclock will not allow you to set anything unless you have the
-superuser real uid. (This is restriction is not necessary if you haven't
-installed setuid root, but it's there for now).
+superuser real uid. (This restriction is not necessary if you haven't
+installed setuid root, but it's there for now.)
-.SH How hwclock Accesses the Hardware Clock
+.SS How hwclock accesses the Hardware Clock
.PP
.B hwclock
uses many different ways to get and set Hardware Clock values.
@@ -452,14 +451,13 @@ Alpha, there is no way for
.B hwclock
to execute those I/O instructions, and so it uses instead the
/dev/port device special file, which provides almost as low-level an
-interface to the I/O subsystem).
-
+interface to the I/O subsystem.)
+.PP
This is a really poor method of accessing the clock, for all the
-reasons that user space programs are generally not supposed to do
-direct I/O and disable interrupts. Hwclock provides it because it is
+reasons that userspace programs are generally not supposed to do
+direct I/O and disable interrupts. \fBhwclock\fR provides it because it is
the only method available on ISA and Alpha systems which don't have
working rtc device drivers available.
-
.PP
On an m68k system,
.B hwclock
@@ -480,8 +478,7 @@ by specifying the
.B \-\-directisa
option.
-
-.SH The Adjust Function
+.SS The Adjust Function
.PP
The Hardware Clock is usually not very accurate. However, much of its
inaccuracy is completely predictable - it gains or loses the same amount
@@ -499,26 +496,26 @@ that keeps some historical information. This is called the adjtime file.
Suppose you start with no adjtime file. You issue a
.I hwclock \-\-set
command to set the Hardware Clock to the true current time.
-.B Hwclock
+.B hwclock
creates the adjtime file and records in it the current time as the
last time the clock was calibrated.
5 days later, the clock has gained 10 seconds, so you issue another
.I hwclock \-\-set
command to set it back 10 seconds.
-.B Hwclock
+.B hwclock
updates the adjtime file to show the current time as the last time the
clock was calibrated, and records 2 seconds per day as the systematic
drift rate. 24 hours go by, and then you issue a
.I hwclock \-\-adjust
command.
-.B Hwclock
+.B hwclock
consults the adjtime file and sees that the clock gains 2 seconds per
day when left alone and that it has been left alone for exactly one
day. So it subtracts 2 seconds from the Hardware Clock. It then
records the current time as the last time the clock was adjusted.
Another 24 hours goes by and you issue another
.IR "hwclock \-\-adjust" .
-.B Hwclock
+.B hwclock
does the same thing: subtracts 2 seconds and updates the adjtime file
with the current time as the last time the clock was adjusted.
.PP
@@ -577,23 +574,22 @@ You can use an adjtime file that was previously used with the
program with
.BR hwclock .
-
-.SH "Automatic Hardware Clock Synchronization By the Kernel"
-
+.SS Automatic Hardware Clock Synchronization by the Kernel
+.PP
You should be aware of another way that the Hardware Clock is kept
synchronized in some systems. The Linux kernel has a mode wherein it
copies the System Time to the Hardware Clock every 11 minutes.
This is a good mode to use when you are using something sophisticated
like ntp to keep your System Time synchronized. (ntp is a way to keep
your System Time synchronized either to a time server somewhere on the
-network or to a radio clock hooked up to your system. See RFC 1305).
-
+network or to a radio clock hooked up to your system. See RFC 1305.)
+.PP
This mode (we'll call it "11 minute mode") is off until something
turns it on. The ntp daemon xntpd is one thing that turns it on. You
can turn it off by running anything, including
.IR "hwclock \-\-hctosys" ,
that sets the System Time the old fashioned way.
-
+.PP
If your system runs with 11 minute mode on, don't use
.I hwclock \-\-adjust
or
@@ -604,9 +600,8 @@ at startup time to get a reasonable System Time until your system is
able to set the System Time from the external source and start 11
minute mode.
-
-.SH ISA Hardware Clock Century value
-
+.SS ISA Hardware Clock Century value
+.PP
There is some sort of standard that defines CMOS memory Byte 50 on an ISA
machine as an indicator of what century it is.
.B hwclock
@@ -614,11 +609,11 @@ does not use or set that byte because there are some machines that
don't define the byte that way, and it really isn't necessary anyway,
since the year-of-century does a good job of implying which century it
is.
-
+.PP
If you have a bona fide use for a CMOS century byte, contact the
.B hwclock
maintainer; an option may be appropriate.
-
+.PP
Note that this section is only relevant when you are using the "direct
ISA" method of accessing the Hardware Clock.
ACPI provides a standard way to access century values, when they
--
1.7.0.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/6] docs: remove all mention of helper= and uhelper= from umount man page
2014-07-27 18:58 [PATCH 1/6] docs: bring the rtcwake man page closer to standard formatting Benno Schulenberg
2014-07-27 18:58 ` [PATCH 2/6] docs: sort the options in the man pages of hwclock and uuidd Benno Schulenberg
@ 2014-07-27 18:58 ` Benno Schulenberg
2014-07-27 18:58 ` [PATCH 4/6] docs: improve the formatting of the chfn and chsh man pages Benno Schulenberg
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Benno Schulenberg @ 2014-07-27 18:58 UTC (permalink / raw)
To: util-linux
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
---
sys-utils/umount.8 | 21 ++++++++++-----------
1 files changed, 10 insertions(+), 11 deletions(-)
diff --git a/sys-utils/umount.8 b/sys-utils/umount.8
index 9d45157..54fe7ae 100644
--- a/sys-utils/umount.8
+++ b/sys-utils/umount.8
@@ -151,25 +151,24 @@ it finds the option \fBloop=...\fR in
or when the \fB\-d\fR option was given. Any still associated loop devices
can be freed by using \fBlosetup -d\fR; see
.BR losetup (8).
-.SH "EXTERNAL HELPERS"
+.SH EXTERNAL HELPERS
The syntax of external unmount helpers is:
.PP
-.BI /sbin/umount. suffix
+.RS
+.BI umount. suffix
.RI { directory | device }
.RB [ \-flnrv ]
.RB [ \-t
.IR type . subtype ]
+.RE
.PP
-where \fIsuffix\fR is the filesystem type or a value from a "uhelper=" or
-"helper=" mtab option. The \fB\-t\fR option can be used for filesystems
-with subtypes support (for example \fB/sbin/mount.fuse -t fuse.sshfs\fR).
+where \fIsuffix\fR is the filesystem type.
+The \fB\-t\fR option can be used for filesystems that
+have subtype support. For example:
.PP
-The \fBuhelper=\fR (unprivileged unmount helper) mount option can be used
-when non-root users need to be able to unmount a mountpoint which is not
-defined in \fI/etc/fstab\fR (e.g. devices mounted by udisk).
-.PP
-The \fBhelper=\fR mount option redirects all unmount requests to the
-\fB/sbin/umount.\fItype\fR helper independently of UID.
+.RS
+.B umount.fuse \-t fuse.sshfs
+.RE
.SH FILES
.TP
.B /etc/mtab
--
1.7.0.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 4/6] docs: improve the formatting of the chfn and chsh man pages
2014-07-27 18:58 [PATCH 1/6] docs: bring the rtcwake man page closer to standard formatting Benno Schulenberg
2014-07-27 18:58 ` [PATCH 2/6] docs: sort the options in the man pages of hwclock and uuidd Benno Schulenberg
2014-07-27 18:58 ` [PATCH 3/6] docs: remove all mention of helper= and uhelper= from umount man page Benno Schulenberg
@ 2014-07-27 18:58 ` Benno Schulenberg
2014-07-27 18:58 ` [PATCH 5/6] docs: give the man page of utmpdump the proper User Commands header Benno Schulenberg
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Benno Schulenberg @ 2014-07-27 18:58 UTC (permalink / raw)
To: util-linux
Also fix a pasting mistake where the chfn man page suggested
to use ypchsh or lchsh for non-local entries.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
---
login-utils/chfn.1 | 38 +++++++++++++++++---------------------
login-utils/chsh.1 | 24 ++++++++++--------------
2 files changed, 27 insertions(+), 35 deletions(-)
diff --git a/login-utils/chfn.1 b/login-utils/chfn.1
index 3b44fb3..564fed3 100644
--- a/login-utils/chfn.1
+++ b/login-utils/chfn.1
@@ -2,15 +2,11 @@
.\" chfn.1 -- change your finger information
.\" (c) 1994 by salvatore valente <svalente@athena.mit.edu>
.\"
-.\" this program is free software. you can redistribute it and
-.\" modify it under the terms of the gnu general public license.
-.\" there is no warranty.
+.\" This program is free software. You can redistribute it and
+.\" modify it under the terms of the GNU General Public License.
+.\" There is no warranty.
.\"
-.\" $Author: faith $
-.\" $Revision: 1.1 $
-.\" $Date: 1995/03/12 01:29:16 $
-.\"
-.TH CHFN 1 "July 2009" "util-linux" "User Commands"
+.TH CHFN 1 "July 2014" "util-linux" "User Commands"
.SH NAME
chfn \- change your finger information
.SH SYNOPSIS
@@ -38,40 +34,40 @@ program. The Linux
command will display four pieces of information that can be changed by
.BR chfn :
your real name, your work room and phone, and your home phone.
-
-.B chfn
-supports non-local entries (kerberos, LDAP, etc.\&) if linked with libuser,
-otherwise use ypchsh, lchsh or any other implementation for non-local
-entries.
-.SS COMMAND LINE
+.PP
Any of the four pieces of information can be specified on the command
line. If no information is given on the command line,
.B chfn
enters interactive mode.
-.SS INTERACTIVE MODE
+.PP
In interactive mode,
.B chfn
will prompt for each field. At a prompt, you can enter the new information,
or just press return to leave the field unchanged. Enter the keyword
"none" to make the field blank.
+.PP
+.B chfn
+supports non-local entries (kerberos, LDAP, etc.\&) if linked with libuser,
+otherwise use \fBypchfn\fR, \fBlchfn\fR or any other implementation for
+non-local entries.
.SH OPTIONS
.TP
-.BI "\-f, \-\-full-name " full-name
+.BR \-f , " \-\-full-name " \fIfull-name
Specify your real name.
.TP
-.BI "\-o, \-\-office " office
+.BR \-o , " \-\-office " \fIoffice
Specify your office room number.
.TP
-.BI "\-p, \-\-office-phone " office-phone
+.BR \-p , " \-\-office-phone " \fIoffice-phone
Specify your office phone number.
.TP
-.BI "\-h, \-\-home-phone " home-phone
+.BR \-h , " \-\-home-phone " \fIhome-phone
Specify your home phone number.
.TP
-.B "\-u, \-\-help"
+.BR \-u , " \-\-help"
Display help text and exit.
.TP
-.B "\-v, \-\-version"
+.BR \-v , " \-\-version"
Display version information and exit.
.SH "EXIT STATUS"
Returns 0 if operation was successful, 1 if operation failed or command syntax was not valid.
diff --git a/login-utils/chsh.1 b/login-utils/chsh.1
index 229f5e1..eb59c5c 100644
--- a/login-utils/chsh.1
+++ b/login-utils/chsh.1
@@ -2,15 +2,11 @@
.\" chsh.1 -- change your login shell
.\" (c) 1994 by salvatore valente <svalente@athena.mit.edu>
.\"
-.\" this program is free software. you can redistribute it and
-.\" modify it under the terms of the gnu general public license.
-.\" there is no warranty.
+.\" This program is free software. You can redistribute it and
+.\" modify it under the terms of the GNU General Public License.
+.\" There is no warranty.
.\"
-.\" $Author: faith $
-.\" $Revision: 1.1 $
-.\" $Date: 1995/03/12 01:28:58 $
-.\"
-.TH CHSH 1 "July 2009" "util-linux" "User Commands"
+.TH CHSH 1 "July 2014" "util-linux" "User Commands"
.SH NAME
chsh \- change your login shell
.SH SYNOPSIS
@@ -30,22 +26,22 @@ prompts for one.
.B chsh
supports non-local entries (kerberos, LDAP, etc.\&) if linked with libuser,
-otherwise use ypchsh, lchsh or any other implementation for non-local
-entries.
+otherwise use \fBypchsh\fR, \fBlchsh\fR or any other implementation for
+non-local entries.
.SH OPTIONS
.TP
-.BI "\-s, \-\-shell " shell
+.BR \-s , " \-\-shell " \fIshell
Specify your login shell.
.TP
-.B "\-l, \-\-list-shells"
+.BR \-l , " \-\-list-shells"
Print the list of shells listed in
.I /etc/shells
and exit.
.TP
-.B "\-u, \-\-help"
+.BR \-u , " \-\-help"
Display help text and exit.
.TP
-.B "\-v, \-\-version"
+.BR \-v , " \-\-version"
Display version information and exit.
.SH "VALID SHELLS"
.B chsh
--
1.7.0.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 5/6] docs: give the man page of utmpdump the proper User Commands header
2014-07-27 18:58 [PATCH 1/6] docs: bring the rtcwake man page closer to standard formatting Benno Schulenberg
` (2 preceding siblings ...)
2014-07-27 18:58 ` [PATCH 4/6] docs: improve the formatting of the chfn and chsh man pages Benno Schulenberg
@ 2014-07-27 18:58 ` Benno Schulenberg
2014-07-27 18:59 ` [PATCH 6/6] docs: bring the runuser and su man pages closer to standard formatting Benno Schulenberg
2014-07-29 10:16 ` [PATCH 1/6] docs: bring the rtcwake man page " Karel Zak
5 siblings, 0 replies; 7+ messages in thread
From: Benno Schulenberg @ 2014-07-27 18:58 UTC (permalink / raw)
To: util-linux
Also bring the formatting closer to standard.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
---
login-utils/utmpdump.1 | 19 ++++++++++++-------
1 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/login-utils/utmpdump.1 b/login-utils/utmpdump.1
index 933a3c9..68516d8 100644
--- a/login-utils/utmpdump.1
+++ b/login-utils/utmpdump.1
@@ -14,7 +14,7 @@
.\" along with this program; if not, write to the Free Software
.\" Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
.\"
-.TH UTMPDUMP "1" "July 2012" "util-linux" "System Administration"
+.TH UTMPDUMP 1 "July 2014" "util-linux" "User Commands"
.SH NAME
utmpdump \- dump UTMP and WTMP files in raw format
.SH SYNOPSIS
@@ -29,16 +29,21 @@ reads from stdin unless a
.I filename
is passed.
.SH OPTIONS
-.IP "\fB\-f\fR, \fB\-\-follow\fP"
+.TP
+.BR \-f , " \-\-follow"
Output appended data as the file grows.
-.IP "\fB\-o\fR, \fB\-\-output\fP \fIfile\fR
+.TP
+.BR \-o , " \-\-output " \fIfile
Write command output to \fIfile\fR instead of standard output.
-.IP "\fB\-r\fR, \fB\-\-reverse\fP
+.TP
+.BR \-r , " \-\-reverse"
Undump, write back edited login information into the utmp or wtmp files.
-.IP "\fB\-h\fR, \fB\-\-help\fP"
-Display help text and exit.
-.IP "\fB\-V\fR, \fB\-\-version\fP"
+.TP
+.BR \-V , " \-\-version"
Display version information and exit.
+.TP
+.BR \-h , " \-\-help"
+Display help text and exit.
.SH NOTES
.B utmpdump
can be useful in cases of corrupted utmp or wtmp entries. It can dump
--
1.7.0.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 6/6] docs: bring the runuser and su man pages closer to standard formatting
2014-07-27 18:58 [PATCH 1/6] docs: bring the rtcwake man page closer to standard formatting Benno Schulenberg
` (3 preceding siblings ...)
2014-07-27 18:58 ` [PATCH 5/6] docs: give the man page of utmpdump the proper User Commands header Benno Schulenberg
@ 2014-07-27 18:59 ` Benno Schulenberg
2014-07-29 10:16 ` [PATCH 1/6] docs: bring the rtcwake man page " Karel Zak
5 siblings, 0 replies; 7+ messages in thread
From: Benno Schulenberg @ 2014-07-27 18:59 UTC (permalink / raw)
To: util-linux
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
---
login-utils/runuser.1 | 77 +++++++++++++++++++++++-------------------------
login-utils/su.1 | 49 +++++++++++++++----------------
2 files changed, 61 insertions(+), 65 deletions(-)
diff --git a/login-utils/runuser.1 b/login-utils/runuser.1
index 34cc84d..3526c07 100644
--- a/login-utils/runuser.1
+++ b/login-utils/runuser.1
@@ -1,23 +1,19 @@
-.TH RUNUSER "1" "August 2012" "util-linux" "User Commands"
+.TH RUNUSER 1 "July 2014" "util-linux" "User Commands"
.SH NAME
runuser \- run a command with substitute user and group ID
.SH SYNOPSIS
-.B runuser
-[options] -u
-.IR user
+.BR runuser " [options] " \-u
+.I user
.IR "command " [ argument ...]
.LP
-.B runuser
-[options] [-]
-[
-.IR "user " [ argument ...]
-]
+.BR runuser " [options] [" \- ]
+.RI [ user " [" argument "...]]"
.SH DESCRIPTION
.B runuser
-allows to run commands with substitute user and group ID.
-If the option \fB\-u\fR is not given, falls back to
-.B su
-compatible semantics and a shell is executed.
+allows to run commands with a substitute user and group ID.
+If the option \fB\-u\fR is not given, it falls back to
+.BR su -compatible
+semantics and a shell is executed.
The difference between the commands
.B runuser
and
@@ -35,7 +31,7 @@ When called without arguments,
defaults to running an interactive shell as
.IR root .
.PP
-For backward compatibility
+For backward compatibility,
.B runuser
defaults to not change the current directory and to only set the
environment variables
@@ -54,32 +50,27 @@ This version of
uses PAM for session management.
.SH OPTIONS
.TP
-\fB\-c\fR \fIcommand\fR, \fB\-\-command\fR=\fIcommand\fR
+.BR \-c , " \-\-command" = \fIcommand
Pass
.I command
to the shell with the
.B \-c
option.
.TP
-\fB\-\-session\-command\fR=\fIcommand\fR
-Same as
-.B \-c ,
-but do not create a new session (discouraged).
-.TP
-\fB\-f\fR, \fB\-\-fast\fR
+.BR \-f , " \-\-fast"
Pass
.B \-f
to the shell, which may or may not be useful depending on the
shell.
.TP
-\fB\-g\fR, \fB\-\-group\fR=\fIgroup\fR\fR
-specify the primary group, this option is allowed to the root user only
+.BR \-g , " \-\-group" = \fIgroup
+The primary group to be used. This option is allowed for the root user only.
.TP
-\fB\-G\fR, \fB\-\-supp-group\fR=\fIgroup\fR\fR
-specify a supplemental group, this option is allowed to the root user only
+.BR \-G , " \-\-supp-group" = \fIgroup
+A supplemental group to be used. This option is allowed for the root user only.
.TP
-\fB\-\fR, \fB\-l\fR, \fB\-\-login\fR
-Starts the shell as a login shell with an environment similar to a real
+.BR \- , " \-l" , " \-\-login"
+Start the shell as a login shell with an environment similar to a real
login:
.RS 10
.TP
@@ -104,8 +95,8 @@ sets argv[0] of the shell to
in order to make the shell a login shell
.RE
.TP
-\fB\-m\fR, \fB\-p\fR, \fB\-\-preserve-environment\fR
-Preserves the entire environment, i.e. does not set
+.BR \-m , " \-p" , " \-\-preserve-environment"
+Preserve the entire environment, i.e. it does not set
.BR HOME ,
.BR SHELL ,
.B USER
@@ -113,9 +104,9 @@ nor
.BR LOGNAME .
The option is ignored if the option \fB\-\-login\fR is specified.
.TP
-\fB\-s\fR \fISHELL\fR, \fB\-\-shell\fR=\fISHELL\fR
-Runs the specified shell instead of the default. The shell to run is
-selected according to the following rules in order:
+.BR \-s , " \-\-shell" = \fIshell
+Run the specified \fIshell\fR instead of the default. The shell to run is
+selected according to the following rules, in order:
.RS 10
.TP
o
@@ -123,11 +114,11 @@ the shell specified with
.B \-\-shell
.TP
o
-The shell specified in the environment variable
+the shell specified in the environment variable
.B SHELL
if the
.B \-\-preserve-environment
-option is used.
+option is used
.TP
o
the shell listed in the passwd entry of the target user
@@ -143,11 +134,16 @@ option and the
.B SHELL
environment variables are ignored unless the calling user is root.
.TP
-\fB\-\-help\fR
-Display help text and exit.
+.BI \-\-session\-command= command
+Same as
+.B \-c ,
+but do not create a new session. (Discouraged.)
.TP
-\fB\-\-version\fR
+.BR \-V , " \-\-version"
Display version information and exit.
+.TP
+.BR \-h , " \-\-help"
+Display help text and exit.
.SH CONFIG FILES
.B runuser
reads the
@@ -227,9 +223,10 @@ global logindef config file
.BR shells (5),
.BR login.defs (5),
.BR su (1)
-.SH AUTHOR
-Derived from coreutils' su which was based on an implemenation by
-David MacKenzie and the Fedora runuser command by Dan Walsh.
+.SH HISTORY
+This \fB runuser\fR command was
+derived from coreutils' \fBsu\fR, which was based on an implemenation by
+David MacKenzie, and the Fedora \fBrunuser\fR command by Dan Walsh.
.SH AVAILABILITY
The runuser command is part of the util-linux package and is
available from
diff --git a/login-utils/su.1 b/login-utils/su.1
index 723ba15..d063582 100644
--- a/login-utils/su.1
+++ b/login-utils/su.1
@@ -1,10 +1,8 @@
-.TH SU "1" "October 2013" "util-linux" "User Commands"
+.TH SU 1 "July 2014" "util-linux" "User Commands"
.SH NAME
su \- run a command with substitute user and group ID
.SH SYNOPSIS
-.B su
-.RI [ options ]
-.RB [ \- ]
+.BR su " [options] [" \- ]
.RI [ user " [" argument ...]]
.SH DESCRIPTION
.B su
@@ -15,7 +13,7 @@ When called without arguments,
defaults to running an interactive shell as
.IR root .
.PP
-For backward compatibility
+For backward compatibility,
.B su
defaults to not change the current directory and to only set the
environment variables
@@ -43,31 +41,26 @@ implementations, such as support for a wheel group, have to be
configured via PAM.
.SH OPTIONS
.TP
-\fB\-c\fR, \fB\-\-command\fR=\fIcommand\fR
+.BR \-c , " \-\-command" = \fIcommand
Pass
.I command
to the shell with the
.B \-c
option.
.TP
-\fB\-\-session\-command\fR=\fIcommand\fR
-Same as
-.B \-c
-but do not create a new session (discouraged).
-.TP
-\fB\-f\fR, \fB\-\-fast\fR
+.BR \-f , " \-\-fast"
Pass
.B \-f
to the shell, which may or may not be useful, depending on the shell.
.TP
-\fB\-g\fR, \fB\-\-group\fR=\fIgroup\fR\fR
+.BR \-g , " \-\-group" = \fIgroup
Specify the primary group. This option is available to the root user only.
.TP
-\fB\-G\fR, \fB\-\-supp-group\fR=\fIgroup\fR\fR
+.BR \-G , " \-\-supp-group" = \fIgroup
Specify a supplemental group. This option is available to the root user only.
.TP
-\fB\-\fR, \fB\-l\fR, \fB\-\-login\fR
-Starts the shell as a login shell with an environment similar to a real
+.BR \- , " \-l" , " \-\-login"
+Start the shell as a login shell with an environment similar to a real
login:
.RS 10
.TP
@@ -92,8 +85,8 @@ sets argv[0] of the shell to
in order to make the shell a login shell
.RE
.TP
-\fB\-m\fR, \fB\-p\fR, \fB\-\-preserve-environment\fR
-Preserves the entire environment, i.e. it does not set
+.BR \-m , " \-p" , " \-\-preserve-environment"
+Preserve the entire environment, i.e. it does not set
.BR HOME ,
.BR SHELL ,
.B USER
@@ -101,8 +94,8 @@ nor
.BR LOGNAME .
This option is ignored if the option \fB\-\-login\fR is specified.
.TP
-\fB\-s\fR, \fB\-\-shell\fR=\fIshell\fR
-Runs the specified \fIshell\fR instead of the default. The shell to run is
+.BR \-s , " \-\-shell" = \fIshell
+Run the specified \fIshell\fR instead of the default. The shell to run is
selected according to the following rules, in order:
.RS 10
.TP
@@ -131,11 +124,16 @@ option and the
.B SHELL
environment variables are ignored unless the calling user is root.
.TP
-\fB\-\-help\fR
-Display help text and exit.
+.BI \-\-session-command= command
+Same as
+.B \-c
+but do not create a new session. (Discouraged.)
.TP
-\fB\-\-version\fR
+.BR \-V , " \-\-version"
Display version information and exit.
+.TP
+.BR \-h , " \-\-help"
+Display help text and exit.
.SH SIGNALS
Upon receiving either
.BR SIGINT ,
@@ -245,8 +243,9 @@ session required pam_lastlog.so nowtmp
.BR pam (8),
.BR shells (5),
.BR login.defs (5)
-.SH AUTHOR
-Derived from coreutils' su which was based on an implementation by
+.SH HISTORY
+This \fBsu\fR command was
+derived from coreutils' \fBsu\fR, which was based on an implementation by
David MacKenzie.
.SH AVAILABILITY
The su command is part of the util-linux package and is
--
1.7.0.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/6] docs: bring the rtcwake man page closer to standard formatting
2014-07-27 18:58 [PATCH 1/6] docs: bring the rtcwake man page closer to standard formatting Benno Schulenberg
` (4 preceding siblings ...)
2014-07-27 18:59 ` [PATCH 6/6] docs: bring the runuser and su man pages closer to standard formatting Benno Schulenberg
@ 2014-07-29 10:16 ` Karel Zak
5 siblings, 0 replies; 7+ messages in thread
From: Karel Zak @ 2014-07-29 10:16 UTC (permalink / raw)
To: Benno Schulenberg; +Cc: util-linux
On Sun, Jul 27, 2014 at 08:58:55PM +0200, Benno Schulenberg wrote:
> sys-utils/rtcwake.8.in | 152 ++++++++++++++++++++++++------------------------
> 1 files changed, 77 insertions(+), 75 deletions(-)
Merged all patches in the set. Thanks.
Karel
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-07-29 10:16 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-27 18:58 [PATCH 1/6] docs: bring the rtcwake man page closer to standard formatting Benno Schulenberg
2014-07-27 18:58 ` [PATCH 2/6] docs: sort the options in the man pages of hwclock and uuidd Benno Schulenberg
2014-07-27 18:58 ` [PATCH 3/6] docs: remove all mention of helper= and uhelper= from umount man page Benno Schulenberg
2014-07-27 18:58 ` [PATCH 4/6] docs: improve the formatting of the chfn and chsh man pages Benno Schulenberg
2014-07-27 18:58 ` [PATCH 5/6] docs: give the man page of utmpdump the proper User Commands header Benno Schulenberg
2014-07-27 18:59 ` [PATCH 6/6] docs: bring the runuser and su man pages closer to standard formatting Benno Schulenberg
2014-07-29 10:16 ` [PATCH 1/6] docs: bring the rtcwake man page " Karel Zak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).