login.conf password options
James Harrison
jamesh at lanl.gov
Thu Dec 13 11:03:43 PST 2007
On Thu, 2007-12-13 at 19:51 +0100, Peter Boosten wrote:
> 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
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
Ah! I see!
No, I'd already caught that one about a minute after I sent off my
original mail. My current default looks like:
default:\
:passwd_format=md5:\
:copyright=/etc/COPYRIGHT:\
:welcome=/etc/motd:\
:setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES:\
:path=/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin ~/bin:\
:nologin=/var/run/nologin:\
:cputime=unlimited:\
:datasize=unlimited:\
:stacksize=unlimited:\
:memorylocked=unlimited:\
:memoryuse=unlimited:\
:filesize=unlimited:\
:coredumpsize=unlimited:\
:openfiles=unlimited:\
:maxproc=unlimited:\
:sbsize=unlimited:\
:vmemoryuse=unlimited:\
:priority=0:\
:ignoretime@:\
:umask=022:\
:passwordtime=150d:\
:warnpassword=150d:\
:sessiontime=1h30m:\
:warntime=1h29m:
Good catch!
More information about the freebsd-questions
mailing list