Results 1 to 3 of 3

Thread: Grant restricted users permission read only

  1. #1
    Join Date
    Mar 2013
    Beans
    1

    Grant restricted users permission read only

    I'm wanting to grant access to my server though make it so they can only view/look at the code. Read only view. It's to hire a new programmer. Looking to have them look at the code though not make any changes.

    How can I allow this? can it be done?

    Thank you,

  2. #2
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    7,508
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Grant restricted users permission read only

    pptwhite; Hi ! Welcome to the forum.

    Granting limited access is a strong point within linux (ubuntu). There are a number of ways to do this.

    Here is a tutorial to point you toward some idea as to how to set it up:
    https://help.ubuntu.com/community/FilePermissions

    Lots more if you search at this link:
    https://help.ubuntu.com/community/NewDocs

    If this does not suffice, by all means post back

  3. #3
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    6,899
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Grant restricted users permission read only

    Hi pptwhite. Welcome to the forums

    Yes, it can be done.

    This would be the general steps:
    • Create a new user.
    • Give the candidate his/her user and password. Also the absolute path to the project files.
    • Install openssh-server if you want to grand him/her remote access.
    • By default the candidate:
      • will have read access to the files, and
      • won't be able to modify the files.
    • In case you want to make extra sure of the permissions you can run these commands:
      Code:
      chmod -R o-w,o+r  /path/to/project
      
      find /path/to/project -type d -exec chmod o+x '{}' \;

    Hope it helps. Let us know how it goes.
    Regards.

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
  •