Results 1 to 2 of 2

Thread: Limiting user access to one directory

  1. #1
    Join Date
    May 2008
    Beans
    89

    Limiting user access to one directory

    Hello

    I want to set up a ssh server to allow downloading of images from a webcam. I am using the application "motion" to capture the webcam images.

    I want to set up a user account that has access strictly limited to read only access to the home directory. The directory will only contain a read-only link to one (the most recent) webcam image.

    The aim is to allow access to a third party so they can scp images to their website. I do not want to allow access to any other part of the server. The purpose of using Openssh and scp is to make the server invisible on the internet.

    I want to minimise the unecessary data traffic. The webcam is at a remote site connected via cellular WAN. The server will be accessible via the internet. Data is money.

    I have read all about file permissions but I can't figure out how to confine a user to read-only access to their home directory. The only program they need to run is scp.

    I have setup a separate account that I will use for remote admin access.

    How do I confine one user to their home directory?

  2. #2
    Join Date
    Aug 2006
    Location
    South Side of Hell
    Beans
    134
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Limiting user access to one directory

    Chroot Jail is built in to OpenSSH.

    http://www.debian-administration.org/articles/590

Bookmarks

Posting Permissions

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