Getting Started





More Advanced Options

sudo chattr +i file-name.ext

sudo chattr -i file-name.ext

In this tutorial, we will explain for newbies how to easily password protect files or folders in Ubuntu/Linux Mint systems. You don't have to use any third-party software, we will just use the archive manager to compress the file or folder and lock it with a password so that you disallow unauthorized users from copying your contents.Right click on the file(s) or folder(s) and selectIn the window that will appear, select a compression format (7z, zip, tar, etc.), then clickEnter any password of your choice, check on "", then clickYou have now compressed and password-protected your file/folder. No user can now extract the archive file unless he/she provides the correct password:If you want to prevent other users from deleting or moving the password-protected archive file you have just created, open the terminal andto where it is stored, then run this command:To undo this, enter this command: