title: ProFTPd unable to seteuid
body: <p>i'm trying to figure out this problem:</p>
  
  <pre><code>2014-04-07 14:00:58,628 srv proftpd[10143] srv (pfsense.localdomain[192.168.0.1]): FTP session opened.
  2014-04-07 14:01:13,779 srv proftpd[10091] srv (pfsense.localdomain[192.168.0.1]): Preparing to chroot to directory '/srv/user1'
  2014-04-07 14:01:13,779 srv proftpd[10091] srv (pfsense.localdomain[192.168.0.1]): USER user1: Login successful.
  2014-04-07 14:01:13,779 srv proftpd[10091] srv (pfsense.localdomain[192.168.0.1]): ROOT PRIVS: unable to seteuid(): Operation not permitted
  2014-04-07 14:01:13,779 srv proftpd[10091] srv (pfsense.localdomain[192.168.0.1]): ROOT PRIVS: unable to setegid(): Operation not permitted
  2014-04-07 14:01:13,782 srv proftpd[10091] srv (pfsense.localdomain[192.168.0.1]): RELINQUISH PRIVS: unable to seteuid(PR_ROOT_UID): Operation not permitted
  2014-04-07 14:01:13,782 srv proftpd[10091] srv (pfsense.localdomain[192.168.0.1]): FTP session closed.
  </code></pre>
  
  <p>I have made a folder on my filesystem 'srv' with sub folders like 'user1', 'user2' and so on.</p>
  
  <pre><code>drwxrwxrwx  19 root root  4096 Mar  5 20:05 srv
  </code></pre>
  
  <p>Each user has their home directoty set to 'user1', 'user2' and so on.</p>
  
  <pre><code>drwx---r-x 189 user1   users     4096 Apr  3 11:34 user1
  </code></pre>
  
  <p>proftp conf:</p>
  
  <pre><code>Include /etc/proftpd/modules.conf
  ServerName          "SRV"
  ServerType standalone
  DeferWelcome            off
  MultilineRFC2228 on
  DefaultServer           on
  ShowSymlinks on
  TimeoutNoTransfer 600
  TimeoutStalled 600
  TimeoutIdle 1200
  DisplayLogin                    welcome.msg
  DisplayChdir .message true
  ListOptions "-l"
  DenyFilter          \*.*/
  DefaultRoot         ~
  Port                21
  User                proftpd
  Group               nogroup
  Umask 022 022
  AllowOverwrite          on
  TransferLog /var/log/proftpd/xferlog
  SystemLog   /var/log/proftpd/proftpd.log
  &lt;IfModule mod_quotatab.c&gt;
   QuotaEngine off
  &lt;/IfModule&gt;
  &lt;IfModule mod_ratio.c&gt;
   Ratios off
  &lt;/IfModule&gt;
  &lt;IfModule mod_delay.c&gt;
   DelayEngine on
  &lt;/IfModule&gt;
  &lt;IfModule mod_ctrls.c&gt;
   ControlsEngine        off
   ControlsMaxClients    2
   ControlsLog           /var/log/proftpd/controls.log
   ControlsInterval      5
   ControlsSocket        /var/run/proftpd/proftpd.sock
  &lt;/IfModule&gt;
  &lt;IfModule mod_ctrls_admin.c&gt;
   AdminControlsEngine off
  &lt;/IfModule&gt;
  Include /etc/proftpd/conf.d/
  &lt;Global&gt;
   PassivePorts 65400 65535
  &lt;/Global&gt;
  </code></pre>
  
  <p>More:</p>
  
  <pre><code>Ubuntu server 13.10
  Webmin 1.680
  ProFTPD Version 1.3.5rc3
  </code></pre>