How to write to SD card without root permissions
More and more we find ourselves having to write on an SD card and we stop because we cannot and we get a mistake due to the permissions in writing possessed.
Most often this is due to the fact that we are not administrators of the device, and we do not have the permissions needed to write on the SD. To this end, it would be necessary to be root, so there is no limit to its actions.
However, taking advantage of this permit could also be harmful for those who do not have the right skills. In the following tutorial, we will explain how to write on a board without root permissions, so to achieve its purpose without having to run the risk of being able to do it, possessing super powers, namely root ones. You just have to continue reading the guide to find out how to do it.
- When one or more external disks are connected to the personal computer or SD cards are inserted, the Linux operating system typically recognizes and mounts them automatically with root permissions. This means that basically, you can work with external memos, or you can copy, edit, or delete files and folders from external devices. This is possible because you are using a root shell or File Manager as Administrator. And if that was not the case? Below we see how it is possible to allow other common users to copy, edit, or delete files without necessarily having root permissions.
- If the error message ” You do not have enough permissions to read /home/user/MMC-SD ” appears when you read the SD card, use the following command from the terminal: [ sudo mkdir /media ]. Before executing the command, remember to remove all USB and SD devices connected to your personal computer. To assign more permissions to common users, always from the terminal, just use the following command: [ sudo kwrite /etc/udev /rules. D/50-xandros-udev. Rules ]. Of course brackets are not to be included while typing the command.
- In the file that will open, look for the line: [BUS==”usb”, KERNEL==”sd[! 0-9]”, NAME= “% k”, MODE=”0660″, GROUP=”floppy”, SYMINK=”disks/Removable/%k”, RUN = “/usr/bin/ usbstorageapplet zip% k] and modify the MODE value in ” 0666 ” to allow users to read and write or modify them in ” 0777 ” All users read, write and run. Once this is done, proceed with saving the file using the command: [ sudo /sbin/udevstart ]. From this point on it will be possible to write.