you can change the text however you want. also the direction of the redstone output. now type "edit startup" into the computer and start copying this code into it.
local oldPull = os.pullEvent;
os.pullEvent = os.pullEventRaw;
term.clear()
term.setCursorPos(1,1)
correctpass = "Open"
write("Enter Password: ")
pass = read("*")
if pass == (correctpass) then
write("Opening Door")
redstone.setOutput("back", true )
sleep(3)
redstone.setOutput("back", false )
os.shutdown()
end
write("Incorrect Password")
sleep(3)
term.clear()
term.setCursorPos(1,1)
textutils.slowPrint("Intruder Alert Activating Alarm!")
sleep(1)
redstone.setOutput("back",true )
sleep(3)
redstone.setOutput("back",false )
os.shutdown()
os.pullEvent = oldPull;
now your done. press ctrl then s. then ctrl then e. now type reboot into the computer