title: "tar: initgroups: Operation not permitted" error with ssh
body: <p>I'm trying to create a tarball on a remote server from a Fedora local machine, by using command:</p>
  <pre><code>tar -cvf myuser@remote:/home/myuser/test.tar local-file --rsh-command=/usr/bin/ssh
  </code></pre>
  <p>but I got an error:</p>
  <pre><code>tar: initgroups: Operation not permitted
  tar: Error is not recoverable: exiting now
  tar: myuser@remote\:/home/myuser/test.tar: Cannot open: Input/output error
  tar: Error is not recoverable: exiting now
  </code></pre>
  <p>First of all, I know that there's another way of doing it, by piping <code>tar</code> and <code>ssh</code>, with something like:</p>
  <pre><code>tar -cvf - local-file | ssh myuser@remote &quot;cat &gt; /home/myuser/test.tar&quot;
  </code></pre>
  <p>and it works perfectly okay. I'm not particularly interested in finding an alternative solution. I want to know why my <code>tar</code> fails to call <code>ssh</code>.</p>
  <p>Some other relevant information: if I run my original command with <code>sudo</code>, then it works. Also, it doesn't seem like there's any problem with my <code>/usr/bin/ssh</code> either, as no matter what argument I give to <code>--rsh-command</code>, the error is always the same (even with non-sense commands like <code>ls</code> or <code>cat</code>). I have another (ubuntu-based) machine and the same command runs there alright without <code>sudo</code>.</p>
  <p>I was wondering if there's anything that I need to set up about the permission, or if there's any distro-specific things going on here.</p>
  <p>Thanks for any help.</p>