Posted 20 November 2012 - 02:43 AM
Hi,
I've been messing around with Lua a lot today and kinda just started learning it. Reading tutorials on how to code with it, and such and made my first own little OS lock system where you need a password to get into it. I've coded it with anti-terminate as well as a backdoor password encase something goes wrong, yadda yadda yaddda.
My question is, is there a way where I could set the lua file as read-only if I were to give it to someone over floppy? Or possibly by having it request a password if someone tries to edit it or something? I'm not sure how I could have it edit proof, but it'd be interesting to figure out.
This is a bit of an obscure question and certainly a random one, but I was wondering if anyone knew how to do something like this. I was thinking maybe creating another program that'll set read/write privileges on files, but I'm not sure of ComputerCraft has a sort of system like that, that I could play with.
Anyway, thanks for the help and if you can't think of anything either, you even reading this is greatly appreciated.
I've been messing around with Lua a lot today and kinda just started learning it. Reading tutorials on how to code with it, and such and made my first own little OS lock system where you need a password to get into it. I've coded it with anti-terminate as well as a backdoor password encase something goes wrong, yadda yadda yaddda.
My question is, is there a way where I could set the lua file as read-only if I were to give it to someone over floppy? Or possibly by having it request a password if someone tries to edit it or something? I'm not sure how I could have it edit proof, but it'd be interesting to figure out.
This is a bit of an obscure question and certainly a random one, but I was wondering if anyone knew how to do something like this. I was thinking maybe creating another program that'll set read/write privileges on files, but I'm not sure of ComputerCraft has a sort of system like that, that I could play with.
Anyway, thanks for the help and if you can't think of anything either, you even reading this is greatly appreciated.