From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10952f,866b62e6b889ecf1 X-Google-Attributes: gid10952f,public X-Google-Thread: fee84,866b62e6b889ecf1 X-Google-Attributes: gidfee84,public From: martin.hepworth@blackwell.co.uk Subject: Re: DEC Unix 4.0B rsh (remote shell) security problem Date: 1997/12/12 Message-ID: <881923560.2142830597@dejanews.com>#1/1 X-Deja-AN: 297521116 References: X-Http-User-Agent: Mozilla/4.04 [en] (WinNT; I) X-Originating-IP-Addr: 195.70.69.2 () Organization: Deja News Posting Service X-Authenticated-Sender: martin.hepworth@blackwell.co.uk X-Article-Creation-Date: Fri Dec 12 10:46:00 1997 GMT Reply-To: martin.hepworth@blackwell.co.uk Newsgroups: comp.security.unix,comp.unix.osf.osf1 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 , 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