From nobody@FreeBSD.org  Sun Feb  5 23:18:59 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id B5D4F1065670
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  5 Feb 2012 23:18:59 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id A0AE58FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  5 Feb 2012 23:18:59 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q15NIxde030757
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 5 Feb 2012 23:18:59 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q15NIxHc030756;
	Sun, 5 Feb 2012 23:18:59 GMT
	(envelope-from nobody)
Message-Id: <201202052318.q15NIxHc030756@red.freebsd.org>
Date: Sun, 5 Feb 2012 23:18:59 GMT
From: Garrett Cooper <yaneurabeya@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: system crontab doesn't support usernames with spaces in them
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         164808
>Category:       bin
>Synopsis:       crontab(1) doesn't support usernames with spaces in them
>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:   Sun Feb 05 23:20:08 UTC 2012
>Closed-Date:    
>Last-Modified:  Sun Feb 03 22:30:24 UTC 2013
>Originator:     Garrett Cooper
>Release:        9.0-STABLE
>Organization:
iXsystems, Inc.
>Environment:
FreeBSD bayonetta.local 9.0-STABLE FreeBSD 9.0-STABLE #4 r230371M: Thu Jan 19 23:55:38 PST 2012     gcooper@bayonetta.local:/usr/obj/store/freebsd/stable/9/sys/BAYONETTA  amd64
>Description:
Doing some testing for FreeNAS, I discovered that the system crontab
user field isn't properly tokenized, such that usernames with spaces
in them are permitted.

This isn't standard, but it's an issue with folks who are Windows users
attempting to do tasks which need to be driven via the system crontab.

Per user crontabs worked however.
>How-To-Repeat:
1. Create a username with a space in it on a Windows domain (example:
   "AD\foo bar", where AD is the subdomain and the username is: "foo bar").
2. Install FreeNAS 8.0.3 on a machine.
3. Join the FreeNAS box to the domain.
4. Create a cronjob with "AD\foo bar" that executes the command "echo
   hello > /tmp/iwuzhere".
5. "cat /tmp/iwuzhere" after the job has run [theoretically]. If successful,
   it should exist and say "hello".
>Fix:


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