This command fails for me. I see this error:

        cp: cannot create regular file ‘/home/sgilda/tools/jboss-eap-6.1-GA/modules/system/layers/base/org/jboss/as/quickstarts/ejb_security/main’: No such file or directory

I think it's because there is no `quickstarts` subdirectory under `modules/system/layers/base/org/jboss/as/'

I was able to get it to work by doing the following:

1. Navigate to the following directory: $JBOSS_HOME/cd modules/system/layers/base/org/jboss/as/
2. Create a quickstarts subdirectory: 

        mkdir quickstarts
3. Navigate to the quickstarts subdirectory and create an `ejb_security` subdirectory 

        cd quickstarts
        mkdir ejb_security
5. Navigate to the `ejb_security` subdirectory and create a `main` subdirectory:

        mkdir main