This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Subliminal's profile picture

Question about passwords.

Started by Subliminal, 14 September 2012 - 11:18 AM
Subliminal #1
Posted 14 September 2012 - 01:18 PM
Hello,
Just wanted to ask for a little advice on a small problem I am having.

I recently put a password on my terminal and made a startup file to go straight to the password page. The problem I am having is that if I get a blank floppy (A floppy drive is essential to the computer) and just make another startup file on that disk, then I have full access to the computer and can delete everything, if I wanted to.

I was wondering if there is a way to ensure that the terminal's startup file runs before the floppy's to avoid this bypassing?
I'm playing with friends on a multiplayer server, so I don't want them dropping a "sleep(99999999999999)" in my terminal.

—– —– —–

Additional question,
is my turtle a potential security hazard? I couldn't access my main terminal through him when I tried, but best to be safe.
Lettuce #2
Posted 14 September 2012 - 01:33 PM
You can TRY os.pullEventRaw(), that bypasses OS event handling, possibly keeping the current startup program the startup program, but to be honest, I've never made a password lock. For your next question, no, turtles cannot enter the password. They can send it through rednet if your pass-lock computer has a modem, but only if your computer accepts that. Short of busting your computer and sending the appropriate redstone signal itself, turtles can't bypass pass-lock doors.
KaoS #3
Posted 14 September 2012 - 01:41 PM
boot the password detector from a floppy drive that is hidden above the computer
Subliminal #4
Posted 14 September 2012 - 01:46 PM
That's great, the turtle can stay then.

However the floppy's startup file still overruled the terminal's.
A good suggestion though, i never thought of trying it.


and I didn't realise you could have two floppy drives connected to the terminals, never tried it.
I'll give it a try now and see if it works.

is this the only way to do it do you reckon?

—– —– —– —– —–

It works, but it stops you using any other disks, so I will just have to store everything on the actual computer instead.

However I now have top notch security, I'll just have to make a new terminal and set it up whenever I relocate, which isn't any trouble.
Thank you both for your help, it's much appreciated.