bin/138855: if the hostname is empty, opiepasswd(1) creates a seed too short

deeptech71 at gmail.com deeptech71 at gmail.com
Tue Sep 15 19:30:01 UTC 2009


>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 at 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:


More information about the freebsd-bugs mailing list