diff options
author | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2011-04-04 14:37:26 +0000 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2011-04-04 14:37:26 +0000 |
commit | 53d37df110f277f3a3d50b38fe0f7d960dc20a34 (patch) | |
tree | 17a143d9755dd95ff0767170840178342f3ed995 /distrib/miniroot/install.sh | |
parent | ef065751245814b0258e03ad331fbc4bf21e14ee (diff) |
If we choose to create a user during installation, put it into
/root/.forward.
"makes sense" kettenis, ok pirofti@ deraadt@
Diffstat (limited to 'distrib/miniroot/install.sh')
-rw-r--r-- | distrib/miniroot/install.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/distrib/miniroot/install.sh b/distrib/miniroot/install.sh index d4e2e2ea8a4..cc5157a63ed 100644 --- a/distrib/miniroot/install.sh +++ b/distrib/miniroot/install.sh @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: install.sh,v 1.217 2011/02/07 18:01:08 miod Exp $ +# $OpenBSD: install.sh,v 1.218 2011/04/04 14:37:25 ajacoutot Exp $ # $NetBSD: install.sh,v 1.5.2.8 1996/08/27 18:15:05 gwr Exp $ # # Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback @@ -285,6 +285,7 @@ if [[ -n $user ]]; then uline="${user}:${_encr}:1000:1000:staff:0:0:${username}:/home/${user}:/bin/ksh" echo "$uline" >> /mnt/etc/master.passwd echo "${user}:*:1000:" >> /mnt/etc/group + echo ${user} > /mnt/root/.forward mkdir -p /mnt/home/$user (cd /mnt/etc/skel; cp -pR . /mnt/home/$user) |