local account = user.getuser(username)
-- FIXME: detect testing environment
- if luci.fs.isfile("/etc/shadow") and not luci.fs.access("/etc/shadow", "r") then
+ if luci.fs.stat("/etc/shadow") and not luci.fs.access("/etc/shadow", "r") then
return true
elseif account then
if account.passwd == "!" then