NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

wr18962's avatar
wr18962
Aspirant
Sep 05, 2011

ftp permissions

I recently switched from "share" to "user" mode security and then enabled user level ftp access.

I am unable to login via ftp and get the following error in proftpd.log:

>>
FTP session opened.
notice: unable to use '~ftp/' [resolved to '']: No such file or directory
Preparing to chroot to directory '~ftp/'
chroot to '~ftp/' failed for user 'my user': Operation not permitted
error: unable to set default root directory

I can make it work by changing the default root in /etc/frontview/proftpd/User.conf to a different directory.

So question is where is ~ftp and what should be the correct permissions? I suspect these have got messed up when I changed the security mode.

Thanks

4 Replies

Replies have been turned off for this discussion
  • It looks like you are trying to log into the FTP service as user "ftp". Thus the ReadyNAS ftp service tries to access the home dir of that user which in Linux notation is written as "~ftp". Since there is no such user account on the ReadyNAS, to result of trying to find the user's home dir is empty (resolved to '') and thus no access is granted.
    Most likely the ftp software you are using is choosing the user name for you so maybe you just need to tell it to use a different user name.

    -Stefan
  • I am definitely logging in as a user. The ~ftp comes from the DefaultRoot directive in the config file generated from front view.
    "DefaultRoot ~ftp"

    If this is not an ftp user then should there be an ftp group created which contains all valid ftp users ?

    -Lawrence
  • ewok's avatar
    ewok
    NETGEAR Expert
    Does the ftp user's home directory not exist?
  • Now fixed! Turned out that the ftp user did not exist in /etc/passwd perhaps as a consequence of switching security mode. I added the ftp user and it now works fine.

    -Lawrence

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More