Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: Setting up folder access permissions

  1. #1
    Join Date
    Feb 2008
    Beans
    84
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Unhappy Setting up folder access permissions

    Hi,

    i need some really basic level help regarding file/folder access permission settings in ubuntu.
    i've been using Ubuntu Maverick for about 8 months now, and have protected my files so far by not letting any one else use my computer, but that's not going to be possible any more.
    i've read like dozen internet pages about

    chmod && chown and also understan the 4+2+1 logic but still i'm not able to apply all this.
    what i want to do is that there are a few folders that i don't want any one to be able to access along with the stuff inside them, even with "sudo".
    so if someone can please help and explain all the procedure to me.

    for my understanding, suppose my username is "hx" and the folder name is "prvt_fldr".

    Thank you.

  2. #2
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,573
    Distro
    Ubuntu

    Re: Setting up folder access permissions

    If you give others access to sudo, you give them access to your files.

    The answer is to not give the other users sudo.

  3. #3
    Join Date
    Feb 2008
    Beans
    84
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Setting up folder access permissions

    Quote Originally Posted by nothingspecial View Post
    If you give others access to sudo, you give them access to your files.

    The answer is to not give the other users sudo.
    i don't want to give them access in any way, not even with sudo...

  4. #4
    Join Date
    May 2010
    Location
    uk
    Beans
    9,249
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Setting up folder access permissions

    Hi

    Quote Originally Posted by nothingspecial View Post
    If you give others access to sudo, you give them access to your files.

    The answer is to not give the other users sudo.
    This is very true.

    For a different approach, I suppose you could create some encrypted directories to keep your confidential files in. Have a look at Cryptkeeper for an idea of password protected directories.

    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  5. #5
    Join Date
    Feb 2008
    Beans
    84
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Setting up folder access permissions

    Quote Originally Posted by matt_symes View Post
    Hi



    This is very true.

    For a different approach, I suppose you could create some encrypted directories to keep your confidential files in. Have a look at Cryptkeeper for an idea of password protected directories.

    Kind regards
    can't i do it any simple way... i mean i'm beginner, not that good yet

  6. #6
    Join Date
    May 2010
    Location
    uk
    Beans
    9,249
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Setting up folder access permissions

    Hi

    Cryptkeeper is pretty simple.

    In Lucid you get a panel applet that allows you to create a directory with a password.
    To access that directory you unlock it by entering the same password from the same applet.
    This is all through the desktop. No CLI at all.

    Unsure about later versions of Ubuntu.

    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  7. #7
    WasMeHere is offline Iced Almond Soy Ubuntu, No Foam
    Join Date
    May 2008
    Location
    Sverige
    Beans
    1,133

    Re: Setting up folder access permissions

    Hi

    Unless your directories with secret files are encrypted, someone at your computer can reboot with a live CD or USB and read all your files.

    An easy way to get encryption is to select it when you install Ubuntu.

    But take your time and read about Cryptkeeper as suggested by matt_symes. I think you can make it work.

    If you want a reasonable level of security, don't give anyone else administration privileges (to run sudo)! And give only yourself read access to the relevant directories and files. Recently I explained chmod, have a look:
    http://ubuntuforums.org/showpost.php?p=11314855&postcount=2

    Have fun
    Olle

  8. #8
    Join Date
    Feb 2008
    Beans
    84
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Setting up folder access permissions

    Quote Originally Posted by matt_symes View Post
    Hi

    Cryptkeeper is pretty simple.

    In Lucid you get a panel applet that allows you to create a directory with a password.
    To access that directory you unlock it by entering the same password from the same applet.
    This is all through the desktop. No CLI at all.

    Unsure about later versions of Ubuntu.

    Kind regards
    Thanks, this seems to be working. i just made up a test text file and tested with other user accounts, seems working so far..
    thanks for help

  9. #9
    Join Date
    Feb 2008
    Beans
    84
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Setting up folder access permissions

    Quote Originally Posted by Olle Wiklund View Post
    Hi

    Unless your directories with secret files are encrypted, someone at your computer can reboot with a live CD or USB and read all your files.

    An easy way to get encryption is to select it when you install Ubuntu.

    But take your time and read about Cryptkeeper as suggested by matt_symes. I think you can make it work.

    If you want a reasonable level of security, don't give anyone else administration privileges (to run sudo)! And give only yourself read access to the relevant directories and files. Recently I explained chmod, have a look:
    http://ubuntuforums.org/showpost.php?p=11314855&postcount=2

    Have fun
    Olle
    that all explains only how to grant access to file/folders, what about revoking... like how would i revoke access of account named "ot" to file "prvt_fldr" at path /home/prvt_fldr while my account name is "hx"
    what would be the command for revoking all sort of access of "ot"

  10. #10
    Join Date
    May 2010
    Location
    uk
    Beans
    9,249
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Setting up folder access permissions

    Hi

    Anybody with sudo access can do what they want on your machine.

    You might find ACL may help. I have not played with them myself so others will comment on the usefulness of them in this situation.

    You can, of course, edit your sudoers file to limit commands to specific users (such as disallowing chmod to all users but yourself which would have the effect of not allowing other users to make executable scripts - i expect not what you want) but you wanted it easy ?....

    The easy root is encryption.

    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

Page 1 of 3 123 LastLast

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
  •