On Tue, 22 Jul 2003, Troy.A Johnson wrote:
> The program is located at "/sbin/grub-install"
> on Red Hat 9 and so you should run:
>
> # /sbin/grub-install /dev/fd0
>
> if "/sbin/" is not in your root user's
> path for some reason.
This is a good point to bring up. With the default configuration of
RedHat (and probably most distros), if you log in as root or use `su -`,
it'll load root's environment, including putting /sbin & /usr/sbin in the
$PATH. If you use `sudo` or just `su`, though, it won't load the
environment, and programs in /sbin and /usr/sbin won't run without the
full path (i.e., /usr/sbin/program). This was news to a few people at the
installfest, and to this day catches me on occasion.
Possible solutions:
a) log in directly as root
b) use `su -`
c) add /sbin & /usr/sbin to your $PATH
d) be prepared to type full paths a lot
Just thought I'd throw that out there.
Jima
_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list