Hush login for the shell dropper user

feature/node-rewrite
Sven Slootweg 12 years ago
parent aa04ba92b6
commit 1466c23334

@ -211,6 +211,9 @@ if enable_dropper == "y":
authkeys.write("%s\n" % pubkey) authkeys.write("%s\n" % pubkey)
authkeys.close() authkeys.close()
sys.stdout.write("Installed public key for vz user.\n") sys.stdout.write("Installed public key for vz user.\n")
setuplib.create_file("/home/vz/.hushlogin", "", vz_uid, vz_gid, "u+rwx")
sys.stdout.write("Hushed login for vz user.\n")
# We're done with /etc/passwd and /etc/group # We're done with /etc/passwd and /etc/group
passwd.close() passwd.close()

Loading…
Cancel
Save