Jump to content

locking access to a computer


Recommended Posts

I run a tekkit server and i would like to run a computer keycard system for access to areas.

I have no problems with the programming...my problem comes in the fact that anyone can access the computer, hold ctrl-T then use the redstone api to open the door turn on the factory etc.

Does anyone know of a way to limit peoples interaction with a computer block such that only I can interact directly with the computer? and anyone i want to allow access can simply toss in the keycard and they will be permitted entrance

thanks in advance

Link to comment
Share on other sites

There is a hook you can place into the running applications to Disable the Ctrl-T commands, Best if you make the boot app the reader, and make sure its a closed program, IE every possible output will reset the program, handle exceptions by Rebooting the machine if need be.

Just place this bit of code in the very first line of your program, but be sure that it runs flawlessly before you do so.

os.pullEvent = os.pullEventRaw

Link to comment
Share on other sites

There is a hook you can place into the running applications to Disable the Ctrl-T commands, Best if you make the boot app the reader, and make sure its a closed program, IE every possible output will reset the program, handle exceptions by Rebooting the machine if need be.

Just place this bit of code in the very first line of your program, but be sure that it runs flawlessly before you do so.

os.pullEvent = os.pullEventRaw

Easy to beat with a disk drive though.

Link to comment
Share on other sites

perfect, just what i was looking for these computers are going in areas where only mods and admin have build/destroy rights so easy enough to prevent access via disk drive

just moved away from keycards and am using a multi-security level login system on startup

cheers, thanks

Nice. For added security/expansion possibilities, make it RedNet built, with a server machine. Then you can add machines and passwords, and alter it remotely to boot.

Link to comment
Share on other sites

Nice. For added security/expansion possibilities, make it RedNet built, with a server machine. Then you can add machines and passwords, and alter it remotely to boot.

well i just put the .lua file on the server so in startup i just code shell.run("multiLock.lua",arg) where arg is my lock level (atm 1,2 or 3)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...