How to put a password on a folder

raxxiz -  
 raxxiz -
Hello,

I have some information that isn't necessarily very secret, but I would like to know how to restrict access to this folder.

I am on a work computer and sometimes other people are using this computer, and I cannot share the contents of this folder with them. To put it simply, I would like to be prompted for a password before opening the folder.

And if possible, without downloading any software since I have update issues that hinder me when I try to install new software. It would be preferable to have a method to adjust the access rights.

Thank you in advance, I hope I'm not being too bothersome with my request.

4 answers

  1. Thor
     
    Hi

    sudo chown -R toto /path/folder
    To make toto the owner (if he isn't already).

    sudo chmod 700 /path/folder
    To limit access (Read/Write/Execute) to the only user toto.

    You create a "guest" account and that's it.

    https://doc.ubuntu-fr.org/permissions
    2
    1. raxxiz
       
      Thank you for taking the time to reply to me. If I understood correctly, does that limit access to other sessions?
      But there is only one session, and there will only be one :/
      0
  2. zipe31 Posted messages 34620 Registration date   Status Contributor Last intervention   6 502
     
    Hello,

    Silly question: are you really on Linux as suggested by the location of your question?

    --
    _______________________________ ☯ Zen my nuggets ☮ ______________________________
    Do something for the environment, close your windows and adopt a penguin… 🐧
    0
    1. raxxiz
       
      Yes, I am ^^ Linux Ubuntu with Mint.
      0