Bug 4262 - Example command does not work
Summary: Example command does not work
Alias: None
Product: Samba 3.2
Classification: Unclassified
Component: Docs (show other bugs)
Version: 3.2.0
Hardware: All All
: P3 minor
Target Milestone: ---
Assignee: Samba Bugzilla Account
QA Contact: Samba Documentation QA Contact~
URL: http://localhost:901/swat/help/Samba3...
Depends on:
Reported: 2006-11-28 04:31 UTC by David McNeill
Modified: 2009-05-13 04:45 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description David McNeill 2006-11-28 04:31:39 UTC
root#  find /usr/data/finance -type d -exec chmod ug+s {}\;
generates the error
find: missing argument to '-exec'
Comment 1 Antonio Broughton 2006-11-28 13:50:47 UTC
The command that you should be run is:

find /usr/data/finance -type d -exec chmod ug+s {} \;

note the space between the {} and \
Comment 2 Matthias Dieter Wallnöfer 2008-05-23 05:50:39 UTC
Okay, this doesn't seem to be a bug.
Comment 3 David McNeill 2008-05-25 03:39:29 UTC
It's not invalid. It's not a software bug, but a bug in the documentation, in this case the docs served up by SWAT.  The incorrect documentation causes users to get an unexpected error.  The problem is still visible on these pages...

Comment 4 Karolin Seeger 2009-05-13 04:45:36 UTC
Seems to be fixed meanwhile:

user@host~: Samba3-HOWTO> grep "{}" *
TOSHARG-AccessControls.xml:&prompt;find `directory_name' -type d -exec chown user:group {}\;
TOSHARG-AccessControls.xml:&prompt;find `directory_name' -type d -exec chmod 2775 {}\;
TOSHARG-AccessControls.xml:&prompt;find `directory_name' -type f -exec chmod 0775 {}\;
TOSHARG-AccessControls.xml:&prompt;find `directory_name' -type f -exec chown user:group {}\;

Closing out bug report.
Thanks for reporting!