summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2015-06-08 08:23:03 -0400
committerjim-p <jimp@pfsense.org>2015-06-08 08:25:00 -0400
commitd969299690bbe14cdcc0241c1df4b21d15ef206a (patch)
treef7ffec05c6ed7bc84b1d289871db65bcae0f75a7 /etc/inc
parent5b2b1f4e57caec234fbc1ed1d61b28a79e67ef8c (diff)
downloadpfsense-d969299690bbe14cdcc0241c1df4b21d15ef206a.zip
pfsense-d969299690bbe14cdcc0241c1df4b21d15ef206a.tar.gz
Use skel as the source of new user files rather than copying from root.
Reported-By: https://twitter.com/fitchitis/status/607850849172373504
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/auth.inc1
-rw-r--r--etc/inc/dot.hushlogin0
2 files changed, 0 insertions, 1 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index 0a2cbfa..8b9377b 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -504,7 +504,6 @@ function local_user_set(& $user) {
/* create user directory if required */
if (!is_dir($user_home)) {
mkdir($user_home, 0700);
- mwexec("/bin/cp /root/.* {$home_base}/", true);
}
@chown($user_home, $user_name);
@chgrp($user_home, $user_group);
diff --git a/etc/inc/dot.hushlogin b/etc/inc/dot.hushlogin
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/etc/inc/dot.hushlogin
OpenPOWER on IntegriCloud