From 916be89bd81f890e993cea8bb89d7501e5883c9c Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 16 Jun 2017 09:01:00 +0800 Subject: netinstall: do not create normal (sudo) user; only root --- group_vars/master | 4 ---- roles/netinstall/templates/debian.preseed.cfg.j2 | 12 ++++++------ 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/group_vars/master b/group_vars/master index c30ffdb..8f2e02f 100644 --- a/group_vars/master +++ b/group_vars/master @@ -35,8 +35,4 @@ tftp_root: /srv/tftp # for LAN nodes. apt_mirror: ftp.sjtu.edu.cn -# UID of the first normal user created (can do sudo, which should -# be used as the admin user later.) -node_user_uid: 999 - # vim: set ft=yaml sw=2: diff --git a/roles/netinstall/templates/debian.preseed.cfg.j2 b/roles/netinstall/templates/debian.preseed.cfg.j2 index 7f03abe..4490067 100644 --- a/roles/netinstall/templates/debian.preseed.cfg.j2 +++ b/roles/netinstall/templates/debian.preseed.cfg.j2 @@ -121,7 +121,7 @@ d-i mirror/http/proxy string # use sudo). #d-i passwd/root-login boolean false # Alternatively, to skip creation of a normal user account. -#d-i passwd/make-user boolean false +d-i passwd/make-user boolean false # Root password, either in clear text d-i passwd/root-password password {{ node_root_pass }} @@ -130,15 +130,15 @@ d-i passwd/root-password-again password {{ node_root_pass }} #d-i passwd/root-password-crypted password [crypt(3) hash] # To create a normal user account. -d-i passwd/user-fullname string {{ node_user_fullname }} -d-i passwd/username string {{ node_user_name }} +#d-i passwd/user-fullname string {{ node_user_fullname }} +#d-i passwd/username string {{ node_user_name }} # Normal user's password, either in clear text -d-i passwd/user-password password {{ node_user_pass }} -d-i passwd/user-password-again password {{ node_user_pass }} +#d-i passwd/user-password password {{ node_user_pass }} +#d-i passwd/user-password-again password {{ node_user_pass }} # or encrypted using a crypt(3) hash. #d-i passwd/user-password-crypted password [crypt(3) hash] # Create the first user with the specified UID instead of the default. -d-i passwd/user-uid string {{ node_user_uid }} +#d-i passwd/user-uid string {{ node_user_uid }} # The user account will be added to some standard initial groups. To # override that, use this. -- cgit v1.2.2