Find the answer to your Linux question:
Results 1 to 2 of 2

Thread: File permission

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    File permission

    Hi Friends,
    I want to create one user on my server in such a way that when he logged in by ssh on server,he can able to access ONLY /var/www/drupal-6.2 this directory. Please tell me how should i do that.

  2. #2

    Firstly, when you create the user, you'll need to set it's home directory to that folder.

    Then, you'll need to enable ssh chrooting.

    Chrooting, when used, either through SSH, FTP among other things, makes the user's home directory when logged in remotely appear as / therefore they are unable to cd .. out of it.
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

Posting Permissions

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