Como permitir el acceso de escritura en una carpeta en iot

Cristian Fea 1 Reputation point
2023-05-21T17:23:16.16+00:00

Estoy intentando guardar un archivo xml en una carpeta que cree previamente, cuando implemento la aplicacion en rpi al momento de intentar guardar el archivo

sale una excepcion de que no tengo permisos, en la maquina de desarrollo pude cambiar los permisos en la carpeta y funciona perfecto

Esta captura corresponde a la carpeta que tengo en el en la ruta ->NombreApp/bin/x86/Debug/AppX/CarpetaCaptura de pantalla (62)

y en la carpeta que esta en la ruta ->NombreApp/bin/ARM/Debug/AppX/Carpeta

me aparece solamente FEAGRO que es la maquina de desarrollo. Como puedo cambiar el acceso, agregar ese RESTRINGIDO y contacto desconocido

Windows for IoT
Windows for IoT
A family of Microsoft operating systems designed for use in Internet of Things (IoT) devices.
397 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 44,326 Reputation points
    2023-05-22T11:59:44.98+00:00

    Hi,

    I'd be happy to help you out with your question. Sorry for the inconvenience caused.

    By using following steps you can allow write access to a folder on an IoT device, specifically a Raspberry Pi (RPi). Here's how you can proceed:

    1. Connect to your RPi either through SSH or directly using a monitor and keyboard.
    2. Navigate to the parent directory of the folder where you want to modify the permissions. In your case, it seems to be the bin/ARM/Debug/AppX folder.
    3. Execute the command ls -l to list the contents of the directory and view the current permissions. Ensure that you have the necessary permissions to modify the folder.
    4. Use the chmod command to change the folder's permissions. For example, to grant read, write, and execute permissions to the owner, run the following command:

    chmod u+rwx Folder

    Replace "Folder" with the actual name of your folder.

    1. Verify that the permissions have been successfully changed by running ls -l again. You should see the updated permissions for the folder.
    2. If you're still encountering permission issues, you might need to change the ownership of the folder using the chown command. Assuming the user running the application on your RPi is called "pi," execute the following command:

    sudo chown pi Folder

    Replace "pi" with the appropriate username.

    1. After adjusting the permissions and ownership, attempt to deploy your application again and save the XML file to the folder. It should now have the necessary write access.

    Please keep in mind that these instructions assume a Linux environment. The exact commands and steps may vary depending on the Linux distribution you are using on your RPi.

    If you have any other questions or need assistance with anything, please don't hesitate to let me know. I'm here to help.

    If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.


  2. Cristian Fea 1 Reputation point
    2023-05-22T19:57:42.8633333+00:00

    Con el comando FolderPermissions C:\Ruta\de\la\carpeta -e logre poder escribir archivos lo que todavia no me permite es borrar archivos.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.