diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-04-23 20:23:36 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-04-23 20:23:36 +0000 |
commit | 5db4f558b547703e0da165ce827770299e72144d (patch) | |
tree | 1aba06136dae0417a8b450e5a021f701d48fe55b | |
parent | 494f39a1befc308729799247c26849ad4c2c1a50 (diff) |
Give the user a copy of root's (install time) mail
-rw-r--r-- | distrib/miniroot/install.sub | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 23e2d878d7b..dc49e9a0f73 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,4 +1,4 @@ -# $OpenBSD: install.sub,v 1.467 2009/04/23 18:26:14 deraadt Exp $ +# $OpenBSD: install.sub,v 1.468 2009/04/23 20:23:35 deraadt Exp $ # $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $ # # Copyright (c) 1997-2007 Todd Miller, Theo de Raadt, Ken Westerback @@ -320,7 +320,8 @@ user_setup() { mkdir -p /mnt/home/$_u (cd /mnt/etc/skel; cp -pR . /mnt/home/$_u) - chown -R 1000.10 /mnt/home/$_u + cp -p /mnt/var/mail/root /mnt/var/mail/$_u + chown -R 1000.10 /mnt/home/$_u /mnt/var/mail/$_u echo "1,s@wheel:.:0:root\$@wheel:\*:0:root,${_u}@ w q" | /mnt/bin/ed /mnt/etc/group 2>/dev/null |