-- password model methods module (..., package.seeall) strsplit = require "split" -- no initializer in model - use controller.init for that get = function (self) f = io.open ("/etc/shadow") c = f:read("*l") temp = strsplit(":", c) if temp[2] == "!" then status = "not set" else status = "set" end f:close() return (cfe{value=status, name="password"}) end