Restrain acces to folders and files

Discussion in 'Linux' started by Jerome.S, Jan 14, 2009.

  1. Jerome.S

    Jerome.S

    Joined:
    Jan 14, 2009
    Messages:
    4
    Likes Received:
    0
    I'm using an aspire one with linpus. I wanna know how i can restrain the access to some folders. Make sure you have to type a password or something.

    Thank you very much
     
    Jerome.S, Jan 14, 2009
    #1
  2. Jerome.S

    Grim Squeaker

    Joined:
    Aug 19, 2008
    Messages:
    410
    Likes Received:
    0
    Two options immediately come to mind:
    a. Make certain the One requires people to login. Unfortunately Acers updates tend to destroy that setting.
    b. Install an encryption program (e.g. truecrypt) and put all the files you do not wish to be public in the encrypted container.

    I myself went with option b.
     
    Grim Squeaker, Jan 14, 2009
    #2
  3. Jerome.S

    ikajaste

    Joined:
    Oct 9, 2008
    Messages:
    17
    Likes Received:
    0
    One option is to create a new user, and give only that user access to those files (chmod og-rwx <file>), (chown <otheruser> <file>).

    Problem is, after this you can still access the files with sudo, which in AA1 doesn't ask for a password. So you need to make it ask for a password. I'm not completely sure how to do it, so I've started another therad discussing it: "Making sudo ask for a password?"

    After this, you can only access the files 1) with sudo, using the "user" password. 2) by switching to the other user (su <otheruser>), and then accessing the files.
     
    ikajaste, Jan 18, 2009
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.