I would like to enable the write protection to all pendrives connceted to my ubuntu 18.04 laptop.I tired
1.https://askubuntu.com/questions/442682/control-loading-of-kernel-module-automatically
2.https://www.techbeginner.in/2020/01/how-to-disable-usb-storage-in-ubuntu.html
- chmod 444 /media/
none of the above method works for me .
let me know the solution to make all pendrives connected to my system will be write protected .
With above commands it working for one time , if I remove and reconnect again then its not working . I need to give command again.
Thank you .