Hang up on Second reboot of Red Hat 7.1

Craig White plug-discuss@lists.PLUG.phoenix.az.us
Sun, 13 May 2001 20:26:35 -0700


> -----Original Message-----
> From: plug-discuss-admin@lists.plug.phoenix.az.us
> [mailto:plug-discuss-admin@lists.plug.phoenix.az.us]On Behalf Of Michael
> J. Schweppe
> Sent: Sunday, May 13, 2001 10:40 AM
> To: plug-discuss@lists.plug.phoenix.az.us
> Subject: Re: Hang up on Second reboot of Red Hat 7.1
>
>
> On Sun, 13 May 2001 02:21:03 -0700, KevinO
> <kevin_oconnor@geocities.com> wrote:
>
>
> >> How can I disable sendmail once I'm fully up?
> >
> >Just use the following commands as root, on a command line in a terminal
> >window or a virtual console.
> >
> >chkconfig sendmail off
>
> I tried this in root and got my old favorite bash: command not found.
> But like I said,  prior to getting the graphical login there is a
> small window of time where you can get into X, enter linux single user
> mode, kill sendmail and then back to init 5.  That is pretty slick!
>
> Thanks for the responsiveness guys.
>
----
perhaps this would be a good time to review some basic items.

if you login as a user and then su to root, you aren't likely to have the
same path variable as if you login as root. You can test this (or even
change this behavior) by typing  -   cat /root/.bash_profile  and   cat
/home/username/.bash_profile

Obviously, once you know this, you can edit your .bash_profile accordingly.

If you log in as a user and don't have the executable binaries in your path
variable (i.e. /bin;/sbin;/usr/bin;/usr/sbin), you can use the 'whereis'
command to locate the path for a particular executable item such as
chkconfig    by typing    -  whereis chkconfig  (on RH 7 it's in /sbin).
Knowing this, you can run chkconfig (after you su to root) by adding the
prefix to the command - i.e. /sbin/chkconfig sendmail off

Note that whereis is a bit limited in the type of files & paths that it will
check so you may find it more convenient to use the locate command instead.

All the rpm binaries from RedHat that I know of will install in one of those
four paths... /bin; /sbin; /usr/bin; or /usr/sbin. Other binaries installed
by tarballs or compiled by people with other distro's or ideas might put
them in /usr/local and the whereis command still might not find them.

Craig