Cannot create files even though I have group write permissions.
<p>I've run into a bizarre issue. </p>
<p>I'm working on a project with a friend. I created a <code>team</code> group and added us both to it. I gave the directory group write permissions. I even set the sticky bit to make sure that the group setting persists. My friend is able to create files, but I am not. I get an error:</p>
<pre><code>joe@server:/opt/project$ touch file
touch: cannot touch 'file': Permission denied
joe@server:/opt/project$ echo "test" > file
bash: file: Permission denied
</code></pre>
<p>Here are the permissions:</p>
<pre><code>joe@server:/opt/project$ ls -al
total 20
drwxrwsr-x 4 root team 4096 2011-02-12 20:31 .
drwxr-xr-x 6 root root 4096 2011-02-12 17:10 ..
</code></pre>
<p>And I am sure I am in the group:</p>
<pre><code>joe@server:/opt/project$ grep ^team /etc/group
team:x:1003:joe,friend
</code></pre>
<p>Any ideas?</p>