#1
  1. No Profile Picture
    Contributing User
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Dec 2004
    Posts
    2,969
    Rep Power
    374

    Restricting access on ftp?


    I have a domain, how do i restrict access to it? for example i had a folder called "directory". I want to create another ftp user but it should ONLY have access to this folder, also the user can only upload files and not able to read/get files as i would like to give access to other users too?

    googling didnt seem to help, but do i need a config file in my root folder?

    or do I simply right click on a folder and change the permission so people cannot read but just write into it? similarly any folder i dont want to give access to, i can right click and change permission?

    is it that simple or is there more work involved?
  2. #2
  3. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,317
    Rep Power
    7170
    It depends on what FTP server you're using; all of them have different ways of configuring access controls.
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2013
    Posts
    5
    Rep Power
    0
    # ln -s /bin/bash /bin/rbash


    # vim /etc/passwd


    change it so that:

    user-to-be-restricted:x:505:505::/home/user-to-be-restricted:/bin/rbash

    where user-to-be-restricted is the user to be restricted

IMN logo majestic logo threadwatch logo seochat tools logo