bin/164808: system crontab doesn't support usernames with spaces in
yanegomi at gmail.com
Sun Feb 5 23:20:09 UTC 2012
>Synopsis: system crontab doesn't support usernames with spaces in them
>Arrival-Date: Sun Feb 05 23:20:08 UTC 2012
>Originator: Garrett Cooper
FreeBSD bayonetta.local 9.0-STABLE FreeBSD 9.0-STABLE #4 r230371M: Thu Jan 19 23:55:38 PST 2012 gcooper at bayonetta.local:/usr/obj/store/freebsd/stable/9/sys/BAYONETTA amd64
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.
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".
More information about the freebsd-bugs