|
From: Leutnant S. <chk...@gm...> - 2010-01-28 15:47:38
|
Hi ! check premission of that directory if UID: 500 / GID 500 is able to access. Do you use same uid/gid for all sql_ftp_users ? greetings chris 2010/1/28 Andre Hübner <and...@gm...> > proftpd 1.3.2c > > Hello List, > > changed authentication from mod_auth_unix to mod_sql > It seems that authentication itselfs works but there must be a problem with > homedir. > I think it is an conf issue but i dont see it. > > This is significant output from proftpd -n -d 3 > > my.servername.com (::ffff:ip.ip.ip.ip[::ffff:ip.ip.ip.ip]) - FTP session > opened. > my.servername.com (::ffff:ip.ip.ip.ip[::ffff:ip.ip.ip.ip]) - user > 'username' > authenticated by mod_sql.c > my.servername.com (::ffff:ip.ip.ip.ip[::ffff:ip.ip.ip.ip]) - Preparing to > chroot to directory '/www/htdocs/username' > my.servername.com (::ffff:ip.ip.ip.ip[::ffff:ip.ip.ip.ip]) - Environment > successfully chroot()ed > my.servername.com (::ffff:ip.ip.ip.ip[::ffff:ip.ip.ip.ip]) - unable to > chdir > to / (Permission denied), defaulting to chroot directory > /www/htdocs/username > my.servername.com (::ffff:ip.ip.ip.ip[::ffff:ip.ip.ip.ip]) - username > chdir("/"): Permission denied > my.servername.com (::ffff:ip.ip.ip.ip[::ffff:ip.ip.ip.ip]) - FTP session > closed > > This "username chdir("/"): Permission denied" is exactly my problem i > cannot > solve > > This is my sql-conf-section: > > SQLAuthTypes Plaintext > SQLAuthenticate users > #anonymized > SQLConnectInfo databasename@host database_user user_password > SQLUserInfo ftpuser userid passwd uid gid homedir shell > > This is csv-content of table ftpuser > > "2";"username";"mypass";"500";"500";"/www/htdocs/username/";"/bin/false";"0";"0000-00-00 > 00:00:00";"0000-00-00 00:00:00" > > THis is conf of main-section: > > TimesGMT off > ServerName "ProFTPD" > ServerType standalone > Identlookups off > DeferWelcome on > Port 21 > UseReverseDNS off > DefaultServer on > MaxInstances 50 > TimeoutStalled 300 > TimeoutLogin 60 > MaxLoginAttempts 3 > MaxClientsPerUser 10 > PassivePorts 50000 50030 > ListOptions " -a" > <Global> > Umask 022 > DefaultRoot ~ > </Global> > user nobody > Group nogroup > > Dont looks very spectacular to me. > What could be the issue? > > Thanks, > Andre > > > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the > business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > ProFTPD Users List <pro...@pr...> > Unsubscribe problems? > http://www.proftpd.org/list-unsub.html > -- please don't send me word - documents ( http://www.gnu.org/philosophy/no-word-attachments.html) |