Probably /sbin is not in the user's PATH. To check this, at the command
line, type "env" and look for the last line that begins "PATH=" (it may wrap
to more than one line on your display, and this assumes you use bash for
your shell).
Assuming this is the problem there are two ways to fix it:
1. Have the user type "/sbin./halt" instead of "halt".
2. Modify the user's PATH to include /sbin . Again assuming bash, you do
this by editing (or creating) the file .profile in the user's home
directory, and putting at the end of it this line:
PATH=$PATH:/sbin
BTW, going to /sbin should solve this problem is the user's PATh contains ./
but not if it doesn't -- distributions aren't consistent about how they set
up the default PATH for non-root users, and I don't remember how RH does it.
At 10:32 PM 1/28/99 +0200, cristian wrote (slightly abriged):
>I should like to halt or reboot as user.
>I gave to the user the privilege to HALT using the Redhat GUI tool.
>The permissions for halt file are rwx r-x r-x.
>The halt file is in /sbin.
>When I try to halt as user I get the message halt: command not found.
>Even if I go to /sbin with cd /sbin the message is the same.
------------------------------------"Never tell me the odds!"---
Ray Olszewski -- Han Solo
762 Garland Drive
Palo Alto, CA 94303-3603
650.321.3561 voice 650.322.1209 fax [EMAIL PROTECTED]
----------------------------------------------------------------