From owner-freebsd-bugs@FreeBSD.ORG Sun Feb 5 23:20:09 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B0741065670 for ; Sun, 5 Feb 2012 23:20:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1B1DF8FC1B for ; Sun, 5 Feb 2012 23:20:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q15NK8BC017102 for ; Sun, 5 Feb 2012 23:20:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q15NK8hp017101; Sun, 5 Feb 2012 23:20:08 GMT (envelope-from gnats) Resent-Date: Sun, 5 Feb 2012 23:20:08 GMT Resent-Message-Id: <201202052320.q15NK8hp017101@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Garrett Cooper Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B5D4F1065670 for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: bin/164808: system crontab doesn't support usernames with spaces in them X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Feb 2012 23:20:09 -0000 >Number: 164808 >Category: bin >Synopsis: system crontab 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: >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: