diff --git a/Src/Hyperion-kernel/lib/modules/hyperion/40_auth.kmod b/Src/Hyperion-kernel/lib/modules/hyperion/40_auth.kmod index 9551ee1..3c11560 100644 --- a/Src/Hyperion-kernel/lib/modules/hyperion/40_auth.kmod +++ b/Src/Hyperion-kernel/lib/modules/hyperion/40_auth.kmod @@ -248,7 +248,6 @@ function auth.login(uid, password) return nil, "Authentication failure" end - local uid = tonumber(entry[1]) local sEntry = getShadowByUID(uid) if not sEntry then hashPassword(password, "aaaaaaaaaaaaaaaa") @@ -273,7 +272,7 @@ function auth.login(uid, password) _task.egid = tonumber(entry[2]) or uid end - kernel.log("AUTH: login uid=" .. tostring(uid) .. " (" .. username .. ")") + kernel.log("AUTH: login uid=" .. tostring(uid) .. " (" .. getPasswdByUID(uid)[3] .. ")") return true end diff --git a/Src/Hyperion-kernel/lib/modules/hyperion/92_setup.kmod b/Src/Hyperion-kernel/lib/modules/hyperion/92_setup.kmod index 926eb32..5fcdc09 100644 --- a/Src/Hyperion-kernel/lib/modules/hyperion/92_setup.kmod +++ b/Src/Hyperion-kernel/lib/modules/hyperion/92_setup.kmod @@ -96,8 +96,8 @@ if kernel.firstBoot then {"sbin", REG, 0, 0, RWX_RX_RX}, {"tmp", REG, 0, 0, RWXRWXRWX}, {"usr", REG, 0, 0, RWX_RX_RX}, - {"var", REG, 0, 0, RWX_RX_RX}, - {"opt", REG, 0, 0, RWXRWXRWX}, + {"var", REG, 0, 0, RWXRWXRWX}, + {"opt", REG, 0, 0, RWX_RX_RX}, }) mergeMeta("/bin", {