From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,9aee0c9e48d0a1a3 X-Google-Attributes: gid1164f8,public X-Google-Thread: 10b612,9aee0c9e48d0a1a3 X-Google-Attributes: gid10b612,public X-Google-ArrivalTime: 1990-04-17 17:58:49 PST Path: gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!psuvax1!psuvm!barilvm!bimacs!yedidya From: yedidya@bimacs.BITNET (Yedidya Israel) Newsgroups: comp.sys.dec,comp.unix.ultrix Subject: Re: Single user booting of DECStations and security Keywords: ultrix 3.0 decstation 2100 3100 security Message-ID: <1399@bimacs.BITNET> Date: 17 Apr 90 12:27:53 GMT References: <1990Apr5.123703.2251@maths.tcd.ie> Reply-To: yedidya@bimacs.biu.ac.il.UUCP (Yedidya Israel) Organization: Bar-Ilan University, Israel. Xref: gmdzi comp.sys.dec:2300 comp.unix.ultrix:2668 Posted: Tue Apr 17 13:27:53 1990 In article <1990Apr5.123703.2251@maths.tcd.ie> ajudge@maths.tcd.ie (Alan Judge) writes: >Has anybody come up with a satisfactory method of preventing users from >resetting DECStations and booting into single user mode? >I am thinking of implementing this by running a program from /.profile which >detects single user mode (somehow? getpid() == 3?), disables interrupts, >and demands the root password. I made the same on workstations, I don't think it differ on decstations. ASSUME that root uses csh (not sh!!!) when login, you would not have to check for single user. /.profile will be executed only in single user mode. /bin/login is a symlink to /usr/bin/login, in single user /usr is not always available and if not you will find yourself in trouble. So rm the link and make a real copy of login in /bin. Csh must get the same treatment, Another point to remember is that on Ultrix workstations /etc/ttys is usually configured to eliminate login on console (and enable ::0 - X vitual terminal - instead). Keep it off but mark it as secure (if you did not make it already). Now include these lines in /.profile echo -n "Single user " login root Test it before you trust it. -- | Israel Yedidya, Math & CS Department, Bar-Ilan U, Ramat-Gan, ISRAEL. | +----------------------------------------------------------------------+ | Bitnet: yedidya@bimacs | | Internet: yedidya@bimacs.biu.ac.il | | Arpa: yedidya%bimacs.bitnet@cunyvm.cuny.edu | | Uucp: ...!uunet!mcvax!humus!bimacs!yedidya | | Csnet: yedidya%bimacs.bitnet%cunyvm.cuny.edu@csnet-relay | \----------------------------------------------------------------------/ \--- If someone proves there is no God, I'll stop being religious ---/ --------------------------------------------------------------------