From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10952f,417a102b63b1c275 X-Google-Attributes: gid10952f,public X-Google-Thread: 1164f8,417a102b63b1c275 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1995-03-03 22:01:12 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!agate!tonks.EECS.Berkeley.EDU!peterm From: peterm@tonks.EECS.Berkeley.EDU (Peter Mardahl) Newsgroups: comp.sys.dec,comp.security.unix Subject: Re: Accidental ROOT login! Date: 3 Mar 1995 21:52:38 GMT Organization: University of California, Berkeley Message-ID: <3j8336$f90@agate.berkeley.edu> References: <3j7boh$i8f@mordred.cc.jyu.fi> NNTP-Posting-Host: tonks.eecs.berkeley.edu Xref: bga.com comp.sys.dec:9637 comp.security.unix:11204 In article <3j7boh$i8f@mordred.cc.jyu.fi>, Marty.! wrote: >Hello > >One of the students here at Queen's recently complained of >"not having his stuff" when he logged in. >When he logged in again to demonstrate, we were greeted with the message > No directory! Logging in with home=/ >and then he was presented with a root shell! >Restoring his directory from a backup cured the problem, >but what could have caused it? How can we stop it happening again? > I have had this happen whenever my home directory was unavailable for some reason. You don't actually get a root shell. It is just that when it can't find your home directory, it puts you in / to start with, and it cannot find any .files, so it cannot initialize your prompt properly. I bet this person didn't actually have a root shell but only a shell with # as the prompt. If it happens again, make sure he is actually root and not himself by typeing 'whoami'. If it says 'root' then you do have problems. As to preventing it happening again, make sure that people's home directories are around all the time. It seems like his directory got accidentally damaged or deleted so that the system couldn't use it at the time he logged on. Regards, PeterM