home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gumby!destroyer!sol.ctr.columbia.edu!ursa!djms
- From: djms@bear.com (David J. Sullivan)
- Newsgroups: comp.sys.hp
- Subject: Re: HP 9000/370, no root password!
- Message-ID: <TDJMS.92Aug20131717@bite.bear.com>
- Date: 20 Aug 92 17:17:17 GMT
- References: <1992Aug15.022529.7176@mccc.edu> <1992Aug18.064054.8484@nessie.mcc.ac.uk>
- Sender: news@ursa.UUCP
- Organization: Bear, Stearns & Co. - FAST
- Lines: 32
- In-reply-to: avl@nessie.mcc.ac.uk's message of 18 Aug 92 06:40:54 GMT
-
- I was sort of aghast at the whole thing too. At least on our Suns you
- can set things so that it will ask for the root password when going
- single user. Ok, if the user has bootable media, you're screwed.
- But still I feel a whole lot better knowing that the average Joe who
- reads hpux_700 (in my case) and hits the power button can't become
- root. [If I was a whole lot more paranoid, there'd be no workstations
- in the open and HP would lose a lot of sales from us.]
-
- From what I could tell, the problem comes down to init calling /bin/su
- when going to single user state. If you could get /bin/su to ask for
- a password, then all should be fine.
-
- Here's my hack which works but is NOT supported by Hewlett Packard,
- Bear Stearns, or anyone else -- use at your own risk! Move /bin/su to
- /bin/realsu (keep it setuid), and create a new /bin/su (non setuid)
- that if it is called by root and if there are no arguments or only `-'
- supplied as an argument will ask for the root password. If the
- password is fine, call /bin/realsu.
-
- I'm checking to see if I can pass out the code (about 20 lines w/out
- comments, 84 with) over the net without people here getting bent out
- of shape. If it's ok, then I'll post it Monday. I have given the
- code to HP. What they do with it is beyond my control :-)
-
- A better solution would be to have a new flag to /bin/su, say -s, that
- says `check for the root password' and have init call /bin/su with
- that.
-
- David J. Sullivan Bear, Stearns & Co.
- Internet: sullivan@bear.com 245 Park Avenue, FAST 5-122
- Usenet: cmcl2!ursa!sullivan New York, New York 10167
- 212/272-3668 Fax: 212/272-5850
-