title: Unable to query chaincode in basic-network
body: <p>I am looking at the fabric-samples.git. There is a folder called fabric-samples/basic-network. I have a few questions about it.</p>
  
  <p>Here is a script called  init.sh. What is it intended to do? </p>
  
  <p>After using </p>
  
  <pre><code>./generate.sh , 
  ./start.sh 
  </code></pre>
  
  <p>to provison a basic network, I am unable to use the CLI to query chaincode. </p>
  
  <p>This is due to not having permissions. I expected that the peer would automatically have permissions to do this. </p>
  
  <pre><code>docker exec -it peer0.org1.example.com   bash
  
  root@b67973bdc00c:/opt/gopath/src/github.com/hyperledger/fabric# peer chaincode list --installed -C mychannel
  </code></pre>
  
  <blockquote>
    <p>Error: Error endorsing chaincode: rpc error: code = Unknown desc =
    chaincode error (status: 500, message: Authorization for
    GETINSTALLEDCHAINCODES on channel getinstalledchaincodes has been
    denied with error Failed verifying that proposal's creator satisfies
    local MSP principal during channelless check policy with policy
    [Admins]: [This identity is not an admin])</p>
  </blockquote>
  
  <p>I expected that root user of the container was an admin because of the contents of:</p>
  
  <p>config/Org1MSPanchors.tx </p>
  
  <p>What am I missing here?</p>