Apple Support Communities > Servers and Enterprise Software > Mac OS X Server v10.4 and earlier > Discussions
This discussion is archived
8314 Views 5 Replies Latest reply: Feb 4, 2008 5:07 PM by MrHoffman
Currently Being ModeratedFeb 4, 2008 1:24 PM (in response to Chris Neely)Hi
You can escape spaces in the command line using the back slash. In your case "cyber managers" would look like this:
You could have simply created an "untitled folder" on the desktop, launched terminal and drag dropped the newly created folder into it. Terminal would then list the full path name as well as showing you how it handles spaces.
Hope this helps, Tony
Currently Being ModeratedFeb 4, 2008 1:36 PM (in response to Antonio Rocco)Thanks for the help, but that did not solve the problem. See below:
xserve5:/ admin$ sudo chmod +a "DOMAIN\cyber\ managers allow readsecurity,readattr,readextattr,list,search,read,execute,writeextattr,writeat tr,delete,deletechild,add_file,add_subdirectory,write,append,file_inherit,directoryinherit" /Volumes/SANVol1/Admin
chmod: Unable to translate DOMAIN\cyber\ to a UID/GID: Invalid argumentMac OS X (10.4.11)
Currently Being ModeratedFeb 4, 2008 2:55 PM (in response to Chris Neely)If you're using escaping with backslashes, and the string itself contains backslashes, then you have to escape any of the literal backslashes present with, wait for it, backslashes.
DOMAIN\\cyber\ managersMac OS X (10.4.10)
Currently Being ModeratedFeb 4, 2008 5:07 PM (in response to Chris Neely)I've found a few other references to chmod having issues around the space character in its parsing. That this isn't handled correctly appears regrettable.
Here's [another thread|http://discussions.apple.com/thread.jspa?messageID=5832951] that references this same issue.
Lob a bug report at Apple, or fix the chmod sources, or remove the spaces, or some combination of these?Mac OS X (10.4.10)