r/Python • • Mar 22 '26

Discussion Security On Storage Devices

I have a pendrive, recently I shifted many of my old videos and photos in it.

For Security Purpose, I thought i shall Restrict the View and Modifications (delete, edit, add) access On Pendrive or on Folders where my stuff resides through Python.

My Question is, Does python has such module, library to Apply Restrictions

If Yes Then, Comment Down..

Thank You!

0 Upvotes

14 comments sorted by

View all comments

Show parent comment

1

u/NsupCportR Mar 22 '26

No clue honestly, currently I'm on c++ project, I love python, but haven't used it in awhile now.

OS module comes with python so u don't have to worry about dependencies if u change system

Here is stack-overflow example of it: https://stackoverflow.com/questions/28492685/change-file-to-read-only-mode-in-python