Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 May 2001 12:09:52 -0500
From:      Dan Nelson <dnelson@emsphone.com>
To:        Chris Shenton <chris@shenton.org>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Restrict login access if no homedir? /etc/login.access group?
Message-ID:  <20010509120952.A26254@dan.emsphone.com>
In-Reply-To: <87heyufpji.fsf@thanatos.shenton.org>; from "Chris Shenton" on Wed May  9 12:36:01 GMT 2001
References:  <87y9s6fqyn.fsf@thanatos.shenton.org> <87heyufpji.fsf@thanatos.shenton.org>

index | next in thread | previous in thread | raw e-mail

In the last episode (May 09), Chris Shenton said:
> [bad form to self-followup, but some useful details]
> 
> Chris Shenton <chris@shenton.org> writes:
> 
> > 1. Prevent login access if the user's homedir is non-existent. Is
> >    there a way to set this? Most systems will log you in and put you
> >    in "/", not what I want.
> 
> I just found a way I think can do this in /etc/login.conf (from man):
> 
>      requirehome      bool      false            Require a valid home
>                                                  directory to login.
> 
> But when I check the system default file, some user classes specify
> "requirehome" while others specify "requirehome@".  Is there any
> significance to the "@" part, or is it just a way for humans to see
> the field without it taking effect? (e.g., it could have been written
> "requirehomeNOT" or something).
> 
> The "@" bit isn't mentioned in the man page though it's used lots of
> places in login.conf.

From the login.conf manpage:

     See getcap(3) for a more in-depth description of the format of a
     capability database.

An @ unsets the variable; useful for resetting values when you include
other entries (with the tc= cap)

-- 
	Dan Nelson
	dnelson@emsphone.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010509120952.A26254>