On Thu, 28 May 1998, Fred Smith wrote:

> On Thu, May 28, 1998 at 05:54:49PM +0300, arda wrote:
> > sorry for asking such a simple question but I can't login to my newly
> > installed RedHat box with telnet..
> > 
> > I can login as ordinary users , but the login says "Incorrect Password "
> > when I try to access the machine from other computers.. I can login when I'm
> > on the console..  In slackware linux I know the use of hosts.deny or
> > hosts.allow, but in RedHat linux I couldn't configure it..  Please help..
> 
> couldn't tell ya, prolly something simple, though, once one finds it!

Very close, it's /etc/securetty. By default, RedHat only allows root
logins on the console, which from a security standpoint, is a Good
Thing(tm). It is ALWAYS better to log in as a normal user and su (OK,
almost always, but I won't get into exceptions).

> > There's also another question I'd like to ask.  when I login as an ordinary
> > user and use "su" to be root, that's ok, i can be the root, but I still
> > can't execute the binaty files under /sbin.   It says "bash: reboot: command
> > not found".. why is that for? I can copy, delete that file... Even the file
> > is executable, and i'm the owner,  I still can't execute? why?
> 
> Lemme see, you prolly did:
> 
>       su root
>       cd /sbin
>       reboot
> 
> right?
> 
> Did you try:
>       ./reboot
> instead?
> 
> If you look, you'll note that "." is NOT in your PATH environment. This is
> done on purpose, as a (sort of weak) security measure against trojans. It's
> a good idea to not change it, but to get in the habit of using ./<progname>
> if you want to run something from your current directory.

What I usually do to avoid this is to add the lines:

PATH="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
export PATH

to root's .bashrc (/root/.bashrc) file.

+-----------------------------+--------------------------------+
| Jakob 'Sparky' Kaivo        |          [EMAIL PROTECTED] |
| NoDomainName Networks       |    http://www.nodomainname.net |
+-----------------------------+--------------------------------+


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to