Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local computer = require("computer")
- local shell = require("shell")
- local args = shell.parse(...)
- if #args < 1 then
- io.write("Usage: useradd <name>")
- return
- end
- local result, reason = computer.addUser(args[1])
- if not result then
- io.stderr:write(reason)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement