TIP: Click on subject to list as thread! ANSI
echo: linuxhelp
to: John Beckett
from: Randall Parker
date: 2006-07-25 17:09:44
subject: Re: How to figure if I have SAMBA installed?

From: Randall Parker 

John Beckett wrote:
> Randall Parker
>

> wrote in message news::
>> Is sbin supposed to be on my path?
> I don't know, but I suspect not (unless you are logged in directly as
> root, which is considered bad form).

Here's my path before logging in as root:

[randall{at}localhost browsers]$ echo $PATH
/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/randall/bin

Here's my longer path after logging in as root:

[root{at}localhost browsers]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bi
n
:/home/randall/bin

So all it adds for the root is /usr/kerberos/bin.

BTW, the hostname command does not change the hostname permanently. The
manual says one has to edit the /etc/hosts file to do that. But am I
supposed to then change localhost.localdomain or localhost or both? See
below:

[root{at}localhost browsers]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               localhost.localdomain localhost

216.144.1.254   news.barkto.com

Aside: I did the news.barkto.com addition in hopes of speeding up access to
this group. Didn't help any.

>
> The experienced admin is supposed to always type a full path when
> executing stuff as root, in order to avoid running malware that might have
> the same name (e.g. a fake 'ifconfig' executable).
>
>> How can I check that?
> I think:
> echo $PATH
>

--- BBBS/NT v4.01 Flag-5
* Origin: Barktopia BBS Site http://HarborWebs.com:8081 (1:379/45)
SEEN-BY: 633/267 270 5030/786
@PATH: 379/45 1 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.