Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Sep 2009 19:20:02 GMT
From:      "deeptech71@gmail.com" <deeptech71@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/138855: if the hostname is empty, opiepasswd(1) creates a seed too short
Message-ID:  <200909151920.n8FJK291055266@www.freebsd.org>
Resent-Message-ID: <200909151930.n8FJU1lG067047@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         138855
>Category:       bin
>Synopsis:       if the hostname is empty, opiepasswd(1) creates a seed too short
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 15 19:30:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     deeptech71@gmail.com
>Release:        ~CURRENT
>Organization:
>Environment:
FreeBSD  8.0-BETA2 FreeBSD 8.0-BETA2 #0 r196195M: Fri Aug 14 02:25:06 UTC 2009 devhc@:/usr/obj/usr/src/sys/HQ  i386

>Description:
An opie seed should be at least 6 chars long. It defaults to 2 chars from the hostname and 4 random digits.

I have don't have a hostname (not set in rc.conf) (equivalent to hostname being "" instead of not existing?). The result is that opiepasswd creates a seed with 4 chars only. Later, opiekey(1) rejects this seed.
>How-To-Repeat:
# hostname ""
switch to a user who has never used opie (no entry in /etc/opiekeys)
# opiepasswd -cf
>Fix:
Could use one or two random chars if the hostname is too short (trivially patch contrib/bin/newseed.c?).

>Release-Note:
>Audit-Trail:
>Unformatted:



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