Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    restricted ftp access


    On our deployment server, we have IP based restriction for accessing the ftp port from our local servers only. Now, for a application, I need to open ftp access to some clients as well. First, I will have to create a user for the client to login through ftp, correct me if I am wrong. Then, would it be possible to control the set of commands the client can fire through ftp? Like I want the client to restrict to only certain folders and only certain ftp commands like put only, no get etc. Can I do this? If yes, how?


  2. #2
    Linux Guru kkubasik's Avatar
    Join Date
    Mar 2004
    Lat: 39:03:51N Lon: 77:14:37W
    yes, you can. as far as put vs get, you can give them only read/execute/write access as i understand it. i think you can restric commands, but im not sure if all clients support that.
    Avoid the Gates of Hell. Use Linux
    A Penny for your Thoughts

    Formerly Known as qub333

  3. #3

    Like guru said it is possible to restrict some commands. But not directly.... indirectly.
    Means you cannot restrict the commands but you can change the permission of the User's default FTP directory. If ithe user has only read permission naturally the PUT command will not work.

    You can put the client level restriction using a firewall. I will recommend iptables. It is powerful. It is flexible.

  4. $spacer_open
  5. #4
    Linux Engineer
    Join Date
    May 2003
    Greece / Athens
    you can give someone the commands to use in the specific folder..if you want to give him ls command do this:
    cp /bin/ls /home/ftp/bin (folder home of the ftp user that has logged in).
    Linux For Ever!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts