Results 1 to 6 of 6

Thread: SSH / SFTP Restrict User access

  1. #1
    Join Date
    Jun 2007
    Location
    Leeds, UK
    Beans
    136
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    SSH / SFTP Restrict User access

    I would like to share 2 folders on my server with friends / family. One folder contains files which I want them to be able to access and download but not delete, modify or create / add new files to. The second folder is there so that they can upload files but not delete or modify.

    Can I create this type of set up using ssh / sftp?

    I currently access the server myself using ssh and sftp but when I do this can see all of the folders and have full access, this is fine for me but I don't want anyone else to have this type of access.

  2. #2
    Join Date
    Dec 2007
    Location
    Buenos Aires, Argentina
    Beans
    1,231
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: SSH / SFTP Restrict User access

    One folder contains files which I want them to be able to access and download but not delete, modify or create / add new files to.
    You can use the sticky bit, for instance.

    Protecting Files with the Sticky Bitt
    Advanced File Permissions in Linux
    Live long and prosper.
    And use lotsa Linux, BSD, and Emacs.

  3. #3
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: SSH / SFTP Restrict User access

    ssh / sftp only give access to the file system. The filesystem and its mount options determine what you can do as far as permissions.

    For example, if you're using AFS you get seven. If you use EXT, you get (AFAIK) three.

  4. #4
    Join Date
    Jun 2007
    Location
    Leeds, UK
    Beans
    136
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: SSH / SFTP Restrict User access

    Thanks for the input.

    It doesn't look like SSH / SFTP are the right fit for what I'm trying at achieve.

    I now plan to look into ftp, I've already done a bit of readind on ftp, would vsftpd be the best option for this? Can it be set up securely?
    Last edited by roundhay; November 12th, 2009 at 08:03 PM.

  5. #5
    Join Date
    Dec 2007
    Location
    Buenos Aires, Argentina
    Beans
    1,231
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: SSH / SFTP Restrict User access

    Quote Originally Posted by roundhay View Post
    Thanks for the input.

    It doesn't look like SSH / SFTP are the right fit for what I'm trying at achieve.

    I now plan to look into ftp, I've already done a bit of readind on ftp, would vsftpd be the best option for this? Can it be set up securely?
    Actually, FTP will be less secure. Are you planning on having that FTP open to the Internet, or it'll be an internal server (only accessible within your house, for instance)?
    Live long and prosper.
    And use lotsa Linux, BSD, and Emacs.

  6. #6
    Join Date
    Jun 2007
    Location
    Leeds, UK
    Beans
    136
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: SSH / SFTP Restrict User access

    I plan on having the ftp server accessisble over the internet

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
  •