title: Execute under different user on FreeBSD
body: <p>I am logged in as root in a freebsd (10) box and I am trying to execute a script (or any command) as another user, but I get: "su: Sorry"</p>
  
  <pre><code>root@vm ~ # whoami
  root
  root@vm ~ # cat /etc/passwd
  #...
  myuser:*:1001:1001:my name:/home/myuser:/usr/local/bin/bash
  #...
  root@vm ~ # su -m myuser -c '/bin/ls /tmp'
  su: Sorry
  root@vm ~ # su -m myuser
  su: Sorry
  </code></pre>