Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: martin.hepworth@blackwell.co.uk
Subject: Re: DEC Unix 4.0B rsh (remote shell) security problem
Date: 1997/12/12	[thread overview]
Message-ID: <881923560.2142830597@dejanews.com> (raw)
In-Reply-To: MPG.efa25a630b8b0e8989681@mitswa


HI I may be being thick here, but why not just change the rsh call to
su????IE make the call in your script

su oracle -c "ls; dbstart; do_what_ever"

I see no reason to make the rsh call and have .rhosts lying around .

You're running as root at the rc#.d stage so you won't need to passwd
authenticate

Martin Hepworth
Blackwells Information Services
tel +44 1865 792792 x 3233

WYDSIWGY - 1st rule of computer security
What You don't See Is What Gets you



In article <MPG.efa25a630b8b0e8989681@mitswa>,
  cmuir@mitswa.com.au.no.spam wrote:
>
> Howdy.
>
> Really hope somebody can help me because I'm stuck.
>
> I've just installed an Oracle database onto a DEC Alpha 1000A running DEC
> UNIX 4.0B.  Under the /sbin/init.d directory I've created a file as per
> the Oracle instructions to automatically start up and shut down the
> database as the Alpha powers up and down.  In both the /sbin/rc0.d and
> rc2.d init directories there is a logical link to this file.
>
> My problem is that the file I created, written in Bourne shell makes a
> call to the UNIX command 'rsh' from the root user similar to the
> following:
>
> rsh -l oracle Bobafett ls
>
> where:
> 1) 'oracle' is the user to execute the ls command
> 2) 'Bobafett' is the local machine
>
> The user 'oracle' has a .rhosts file located in its home directory.  The
> entry in the file specifies 'Bobafett root'.
>
> Now my understanding is this command should login as oracle and execute
> the ls command on Bobafett without requiring a password as the .rhosts
> file allows the root user through.  Unfortunately the command reports
> back 'Permission Denied' and fails to execute the ls command.
>
> Does anybody have idea why DEC UNIX 4 does this?  I know this didn't
> happen under DEX UNIX 3.
>
> I would appreciate if you could email your reply directly to me.  Just
> remove the '.no.spam' from my email address below.
>
> Thanks for your time :)
>
> Chris
>
> --
> Chris Muir
> Software Engineer
> MITS (WA) Pty Ltd
> mailto:cmuir@mitswa.com.au.no.spam
>
> If you wish to contact me just remove the '.no.spam'
> from my email address above.

-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet



      parent reply	other threads:[~1997-12-12  5:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-11  5:00 DEC Unix 4.0B rsh (remote shell) security problem Chris Muir
1997-12-11  5:00 ` John Sheldrake
1997-12-11  5:00   ` Paul Szabo
1997-12-12  5:00 ` martin.hepworth [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox