From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] plan 9 ports to unix (including libdraw) From: mirtchov@cpsc.ucalgary.ca In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Mon, 20 Oct 2003 14:07:02 -0600 Topicbox-Message-UUID: 7475cf26-eacc-11e9-9e20-41e7f4b1d025 > I'm willing to accept that 'reset' is a less-than-sensible way to reboot a > machine. no, you need this: NAME halt, reboot, poweroff - stop the system. SYNOPSIS /sbin/halt [-n] [-w] [-d] [-f] [-i] [-p] [-h] /sbin/reboot [-n] [-w] [-d] [-f] [-i] /sbin/poweroff [-n] [-w] [-d] [-f] [-i] [-h] also: NAME shutdown - bring the system down SYNOPSIS /sbin/shutdown [-t sec] [-arkhncfF] time [warning-message] but that's not all! you are also required to have the usermode utilities. To quote: The usermode package contains the userhelper program, which can be used to allow configured programs to be run with superuser privileges by ordinary users. It provides, among other things, the very user-helpful: /usr/bin/halt /usr/bin/poweroff /usr/bin/reboot which allow a normal user to reboot the console without having administrative privileges! You may say "but why don't you just remove the usermode package, eh?" The answer is hidden here, try to find it: root@fbsd# rpm -ev usermode error: Failed dependencies: usermode is needed by (installed) redhat-config-proc-0.18-1 usermode >= 1.36 is needed by (installed) redhat-config-securitylevel-1.0.1-1 usermode >= 1.36 is needed by (installed) redhat-config-xfree86-0.6.7-1 usermode = 1.63-1 is needed by (installed) usermode-gtk-1.63-1 usermode >= 1.36 is needed by (installed) redhat-config-services-0.8.2-1 usermode is needed by (installed) gtoaster-1.0beta5-9 usermode is needed by (installed) xawtv-3.74-4 usermode >= 1.36 is needed by (installed) redhat-config-date-1.5.15-1 usermode is needed by (installed) gdm-2.4.0.7-14 usermode >= 1.36 is needed by (installed) up2date-gnome-3.0.7.2-1 root@fbsd# Now, the $0.02 question is: "Can you guess which of the two 'reboot' programs, the one that wants root, and the one that doesn't, comes first in a default RedHat user's $PATH?" andrey ps: I had to run sed on this email to change all the '-' in the pasted man pages from the special short dash symbol that Red Hat uses, surely to prevent me from searching for documentation on specific options by typing '/-d' for example. pps: I'm sending this email as a pissed off FreeBSD user, not as a pissed off Plan 9 user. Plan 9 is so detached from such debaucheries, that their vile nature is incomprehensible to the average 9fan, thus cannot drive him (her) to such curmudgeonry as witnessed in this email.