diff options
author | Sami Kerola | 2011-08-12 22:43:16 +0200 |
---|---|---|
committer | Sami Kerola | 2011-08-23 21:34:21 +0200 |
commit | a6ccf39bf88dccebea17bfc9c971d99584918883 (patch) | |
tree | 0bd4a5780f3e968796dfe386f23d0d6a7660c8a2 | |
parent | docs: clean up old readme files (diff) | |
download | kernel-qcow2-util-linux-a6ccf39bf88dccebea17bfc9c971d99584918883.tar.gz kernel-qcow2-util-linux-a6ccf39bf88dccebea17bfc9c971d99584918883.tar.xz kernel-qcow2-util-linux-a6ccf39bf88dccebea17bfc9c971d99584918883.zip |
docs: move setuid information from reame to hwclock.8
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
-rw-r--r-- | Documentation/hwclock.txt | 14 | ||||
-rw-r--r-- | hwclock/hwclock.8 | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/Documentation/hwclock.txt b/Documentation/hwclock.txt index 5c364212c..e76762334 100644 --- a/Documentation/hwclock.txt +++ b/Documentation/hwclock.txt @@ -1,17 +1,3 @@ Hwclock is a program that runs under Linux and sets and queries the Hardware Clock, which is often called the Real Time Clock, RTC, or CMOS clock. - -Sometimes, you need to install hwclock 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 system, there's probably -no need for users to use the direct ISA I/O method, so don't bother. - -To install setuid root, do something like this: - - chmod a=rx,u=s /sbin/hwclock - -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). diff --git a/hwclock/hwclock.8 b/hwclock/hwclock.8 index b693ae2b1..786a9c2f9 100644 --- a/hwclock/hwclock.8 +++ b/hwclock/hwclock.8 @@ -390,6 +390,20 @@ This second field is not used under Linux and is always zero. (See also .BR settimeofday (2).) +.SH Users 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 +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 +system, there's probably no need for users to use the direct ISA I/O method, +so don't bother. + +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). + .SH How hwclock Accesses the Hardware Clock .PP .B hwclock |