dont assert user creation
This commit is contained in:
6
gen.lua
6
gen.lua
@@ -15,12 +15,12 @@ for l in io.lines(conf) do
|
||||
error(conf .. ":" .. i .. ": invalid syntax", 0);
|
||||
end
|
||||
|
||||
assert(os.execute("adduser -Ds /bin/false " .. user));
|
||||
assert(os.execute("passwd -d " .. user));
|
||||
os.execute("adduser -Ds /bin/sh " .. user);
|
||||
os.execute("passwd -d " .. user);
|
||||
|
||||
f:write("Match User ", user);
|
||||
f:write("\n\tForceCommand ssh -o StrictHostKeyChecking=no -A ", params);
|
||||
f:write("\n\tPubkeyAuthentication yes");
|
||||
f:write("\n\tPubkeyAuthentication no");
|
||||
f:write("\n\tPasswordAuthentication yes");
|
||||
f:write("\n\tPermitEmptyPasswords yes");
|
||||
f:write("\n\tAllowAgentForwarding yes\n");
|
||||
|
||||
Reference in New Issue
Block a user