Posted 29 December 2014 - 02:16 PM
Hello, I wondered if I can revoke access to edit files, open files, delete files and such.
This is a program I made (below this) I want to revoke people's access to delete stuff, edit stuff and open some things.. can someone help me on that?
term.clear()
term.setCursorPos(1,1)
term.setTextColor(colors.cyan)
print("Welcome to this computer!")
sleep(1)
print(" ")
print("Would you like to sign in?")
sleep(1)
print("YES/NO, Remember its cap sensetive!")
write("YES/NO: ")
answear = read()
if answear == "YES" then
print("Please input password.")
sleep(2)
write("Password: ")
password = read("*")
if password == "1793" then
sleep(1)
print("Access Granted.")
sleep(1)
print("Thank you for using Eyax Security.")
sleep(1)
print("Enjoy!")
sleep(1)
term.clear()
term.setCursorPos(1,1)
term.setTextColor(colors.green)
else
print("Wrong password. Shutting down.")
sleep(2)
os.shutdown()
end
else if answear == "NO" then
print("Answear = No")
sleep(1)
print("Shutting down, thank you for using Eyax Security.")
sleep(2)
os.shutdown()
else
print("Please use caps! Would you like to reboot or shutdown?")
write("reboot/shutdown: ")
answear1 = read()
if answear1 == "reboot" then
print("Rebooting … Please wait.")
sleep(2)
os.reboot()
else if answear1 == "shutdown" then
print("Thank you for using Eyax Security! Goodbye!")
sleep(3)
os.shutdown()
end
end
end
end
This code was done in OneOS.
This is a program I made (below this) I want to revoke people's access to delete stuff, edit stuff and open some things.. can someone help me on that?
term.clear()
term.setCursorPos(1,1)
term.setTextColor(colors.cyan)
print("Welcome to this computer!")
sleep(1)
print(" ")
print("Would you like to sign in?")
sleep(1)
print("YES/NO, Remember its cap sensetive!")
write("YES/NO: ")
answear = read()
if answear == "YES" then
print("Please input password.")
sleep(2)
write("Password: ")
password = read("*")
if password == "1793" then
sleep(1)
print("Access Granted.")
sleep(1)
print("Thank you for using Eyax Security.")
sleep(1)
print("Enjoy!")
sleep(1)
term.clear()
term.setCursorPos(1,1)
term.setTextColor(colors.green)
else
print("Wrong password. Shutting down.")
sleep(2)
os.shutdown()
end
else if answear == "NO" then
print("Answear = No")
sleep(1)
print("Shutting down, thank you for using Eyax Security.")
sleep(2)
os.shutdown()
else
print("Please use caps! Would you like to reboot or shutdown?")
write("reboot/shutdown: ")
answear1 = read()
if answear1 == "reboot" then
print("Rebooting … Please wait.")
sleep(2)
os.reboot()
else if answear1 == "shutdown" then
print("Thank you for using Eyax Security! Goodbye!")
sleep(3)
os.shutdown()
end
end
end
end
This code was done in OneOS.