Restore backwards compatible default behavior for requirehome
This commit is contained in:
parent
22a876c691
commit
4b2fab7504
@ -9,7 +9,7 @@
|
||||
# This file controls resource limits, accounting limits and
|
||||
# default user environment settings.
|
||||
#
|
||||
# $Id: login.conf,v 1.9 1997/05/01 21:25:34 ache Exp $
|
||||
# $Id: login.conf,v 1.10 1997/05/19 00:03:48 gpalmer Exp $
|
||||
#
|
||||
|
||||
|
||||
@ -41,7 +41,7 @@ default:\
|
||||
:maxproc-cur=64:\
|
||||
:openfiles-cur=64:\
|
||||
:priority=0:\
|
||||
:requirehome:\
|
||||
:requirehome@:\
|
||||
:umask=022:\
|
||||
:tc=auth-defaults:
|
||||
|
||||
|
@ -532,7 +532,7 @@ main(argc, argv)
|
||||
#endif
|
||||
if (!*pwd->pw_dir || chdir(pwd->pw_dir) < 0) {
|
||||
#ifdef LOGIN_CAP
|
||||
if (login_getcapbool(lc, "requirehome", !rootlogin))
|
||||
if (login_getcapbool(lc, "requirehome", 0))
|
||||
refused("Home directory not available", "HOMEDIR", 1);
|
||||
#endif
|
||||
if (chdir("/") < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user