Ask Your Question

Password-protect a folder on a USB removable pen-drive?

asked 2018-11-13 05:19:08 -0500

PGkt gravatar image

I tried chmod 770 personal-files, then ls -hltr which yields

drwxr-xr-x. [...] personal-files

How do I know if it's working? Create another user, change to it then try accessing that folder? Shouldn't it ask for a password?

How do I proceed to see if it's also working when plugged in on Windows?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-11-13 10:58:37 -0500

ozeszty gravatar image

updated 2018-11-13 11:09:22 -0500

Access control can be easily circumvented, changed or even ignored by different operating system. If you want to secure some files, you need to use encryption, the fastest and most versatile way is to create an encrypted archive:

  • select files and/or folders
  • right-click on them and choose 'Compress...' or 'Create archive...'
  • in advanced options provide a password and make sure you remember or have it stored somewhere securely
  • create archive

After opening such file, archive manager will ask you for password and, after providing correct one, let you view and change (add, edit, delete) contents of archive. Confirm saving any changes and remember to safely unmount and remove USB storage. Loosing password or corrupting archive means forfeiting access to encrypted files.

If you have p7zip installed, you'll be able to encrypt also filenames, while creating archive chose .7z as file format and enable file list encryption in advanced settings.

There are also other tools, encrypted partitions or containers, which will be best depends on particular use case.

edit flag offensive delete link more

Question Tools


Asked: 2018-11-13 04:58:47 -0500

Seen: 62 times

Last updated: Nov 13 '18