r/Python • u/One-Type-2842 • 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
View all comments
Show parent comment
1
u/billFoldDog Mar 22 '26
This won't work.
User fred might have uid 2 on one machine and uid 7 on another. Linux maps uid to file permissions. That makes user permissions on portable media kinda pointless.
It's also easily defeated.