login.conf password options

Peter Boosten peter at boosten.org
Thu Dec 13 10:51:51 PST 2007


Quoting Daniel Bye <freebsd-questions at slightlystrange.org>:

> On Thu, Dec 13, 2007 at 07:30:21PM +0100, Peter Boosten wrote:
>> Quoting James Harrison <jamesh at lanl.gov>:
>>
>> >        :passwordtime=150d:\
>> >        :warnpassword=150d:
>>
>> Is it me, or did you forget the backslash here?
>
> No, that's correct. It's the last line of a class definition. The backslash
> is used as a line continuation character, and is not necessary on the last
> line. In fact, it must not be included, else it will cause the system to
> interpret the next line as part of the same class definition, rather than
> the start of the next.
>

Very good answer, *if* it were the last line of the class definition.  
I cut the last two lines from the original description from OP.

So to OP: add a backslash to the warnpassword= line.

Peter


More information about the freebsd-questions mailing list