title: "Operation not Permitted" for Redis
body: <p>I am developing on a mac which already have redis installed. by default it doesn't have a <code>redis.conf</code> so the default settings were used when I <code>$ redis-server</code></p>
  
  <pre><code># Warning: no config file specified, using the default config. In order to specify a config file use 'redis-server /path/to/redis.conf'
  </code></pre>
  
  <p>I am trying to use <code>redis-py</code> and have the following</p>
  
  <pre><code>import redis
  r = redis.Redis('localhost')
  r.set('foo','bar')
  r.get('foo')
  </code></pre>
  
  <p>but got the following error</p>
  
  <pre><code>redis.exceptions.ResponseError: operation not permitted
  </code></pre>
  
  <p>I also tried in terminal <code>$ redis-cli ping</code>, but then i get the following error</p>
  
  <pre><code>(error) ERR operation not permitted
  </code></pre>
  
  <p>I suppose since there is no <code>redis.conf</code> the default settings doesn't have a password right? Anyways, I also tried to create a <code>redis.conf</code></p>
  
  <pre><code>$ echo "requirepass foobared" &gt;&gt; redis.conf
  $ redis-server redis.conf
  </code></pre>
  
  <p>then on another window</p>
  
  <pre><code>$ redis-cli
  $ redis 127.0.0.1:6379&gt; AUTH foobared
  (error) ERR invalid password
  </code></pre>
  
  <p>also modified the second line of the python script to</p>
  
  <pre><code>r = redis.StrictRedis(host='localhost', port=6379, db=0, password='foobared')
  </code></pre>
  
  <p>but then I got</p>
  
  <pre><code>redis.exceptions.ResponseError: invalid password
  </code></pre>
  
  <p>what could I be doing wrong??? Thanks</p>