How to Password-Protect Folders and Files in Linux

Suppose you share your laptop with various classmates or coworkers. You have administrative rights on the machine, but you have a small fear that their prying eyes could get into a directory you don’t want them to see. It may be in your interest to password-protect that folder. When using Linux you can restrict users from file access with a few simple commands. This article will discuss the benefits and limitations of using file ownership and groups as a password-protection measure. Creating a New User Unix-based machines utilize a directory structure that makes use of ownership to allow and prevent