* DEC Unix 4.0B rsh (remote shell) security problem
@ 1997-12-11 5:00 Chris Muir
1997-12-11 5:00 ` John Sheldrake
1997-12-12 5:00 ` martin.hepworth
0 siblings, 2 replies; 4+ messages in thread
From: Chris Muir @ 1997-12-11 5:00 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: DEC Unix 4.0B rsh (remote shell) security problem
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
1 sibling, 1 reply; 4+ messages in thread
From: John Sheldrake @ 1997-12-11 5:00 UTC (permalink / raw)
On Thu, 11 Dec 1997 16:31:04 +0800, cmuir@mitswa.com.au.no.spam.please
(Chris Muir) rambled on about:
>
>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'.
>
>Unfortunately the command reports
>back 'Permission Denied' and fails to execute the ls command.
>
Aswell as entries in $HOME/.rhosts you should have entries in
/etc/hosts.equiv so that
machine1:/etc/hosts.equiv has machine2
and
machine2:/etc/hosts.equiv has machine1
--------------------------------------------------------------------
to reply to email use the address below |
--------------------------------------------------------------------
AJ Sheldrake - |There are 3 kinds of people in the world,|
john.sheldrake@virgin.net |those who can count and those who can't. |
--------------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: DEC Unix 4.0B rsh (remote shell) security problem
1997-12-11 5:00 ` John Sheldrake
@ 1997-12-11 5:00 ` Paul Szabo
0 siblings, 0 replies; 4+ messages in thread
From: Paul Szabo @ 1997-12-11 5:00 UTC (permalink / raw)
In article <MPG.efa25a630b8b0e8989681@mitswa>
cmuir@mitswa.com.au.no.spam.please (Chris Muir) writes:
> rsh -l oracle Bobafett ls
> The user 'oracle' has a .rhosts file located in its home directory. The
> entry in the file specifies 'Bobafett root'.
> ... the command reports back 'Permission Denied' and fails ...
Are you using C2 security? Check that user oracle is not marked Nologin in
/etc/passwd. If it is you have to use vipw to allow oracle login: neither
dxaccounts nor edauth will do. Also try (as root) '/bin/login -f oracle':
beware of password expiry.
Also check the rsh setup: that you are running rshd in /etc/inetd.conf; the
permissions on the .rhosts file (read 'man rhosts'), ...
In article <3490ce97.525375862@news.virgin.net> not.me@a.b.com (John
Sheldrake) also replies:
> As well as entries in $HOME/.rhosts you should have entries in
> /etc/hosts.equiv ...
No, you do not need that. Only add things to /etc/hosts.equiv if you are
absolutely sure you want them.
---
[ The email address is munged in the headers and in the lines below, in an ]
[ attempt to avoid junk (spam) mail. Sorry about the inconvenience caused. ]
---
Paul Szabo - System Manager // School of Mathematics and Statistics
psz at maths . usyd . edu . au // University of Sydney, NSW 2006, Australia
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: DEC Unix 4.0B rsh (remote shell) security problem
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-12 5:00 ` martin.hepworth
1 sibling, 0 replies; 4+ messages in thread
From: martin.hepworth @ 1997-12-12 5:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1997-12-12 5:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox