Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

12
  • Check your FTP server's documentation if there is an option to have an user chrooted into a particular directory. That will be probably what you want. Commented May 13 at 14:14
  • Please edit your question and add details about your OS and version. Do I understand correct that this user shall only allow FTP access and not interactive login? One option might be to block login by specifying something like /sbin/nologin as the login shell. Or use an FTP server that allows "virtual" users, see wiki.sharewiz.net/… Commented May 13 at 14:15
  • @Bodo updated the question Commented May 13 at 15:13
  • @raj will check that, but I don't care where this user is logged in, even if it's their home path, Just need to cut off it's access to every where else but one or two directories Commented May 13 at 15:14
  • It is still unclear what you want to achieve. Please make your requirements clear. Why do you "need to be able to login to this user"? What exactly do you have to do as this user? On Linux or UNIX, a user normally has write access to the home directory only, read access to most other locations and no access to security-related files. Depending on the FTP server, there might be settings to be more restrictive for FTP access. What exactly do you mean with "restrict this users access to all other unnecessary directories"? Or what exactly do you consider as "unnecessary directories"? Commented May 13 at 15:29