Fix my read-only pen drive to read-write [duplicate]
Solution 1:
find /dev/sdb -type f -exec chmod 666 {} \;
will make all the files read-writable by all { -rw-rw-rw- }
find /dev/sdb -type f -exec chmod 644 {} \;
will make all files readable by all and writable by the owner { -rw-r--r-- }
-
assuming the flash drive is /dev/sdb (which is typical - but your mileage may vary).