Restrain acces to files and folders

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

  1. Jerome.S

    Jerome.S

    Joined:
    Jan 14, 2009
    Messages:
    4
    Likes Received:
    0
    How do I restrain acces to files and folders ?

    I'm using linpus on an apire one

    thanks
     
    Jerome.S, Jan 14, 2009
    #1
  2. Jerome.S

    rbil

    Joined:
    Aug 14, 2008
    Messages:
    730
    Likes Received:
    0
    Location:
    The Wet Coast, Canada
    You could use chmod to prevent anyone but root from reading/writing files/directories on the system. See my chmod calculator on my blog to help with this. You'd want to run the chmod command as root, so preface the command with "sudo". You can also change ownership of files/directories using the chown command.

    man pages can be seen here:

    chmod ...

    http://www.ss64.com/bash/chmod.html

    chown ...

    http://www.ss64.com/bash/chown.html


    Cheers.
     
    rbil, Jan 14, 2009
    #2
  3. Jerome.S

    Jerome.S

    Joined:
    Jan 14, 2009
    Messages:
    4
    Likes Received:
    0
    What i meant to say by restrain access was someway that a password is asked before opening a folder

    thanks
     
    Jerome.S, Jan 14, 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.