Add permissions to OSMC user on LAN Topic is solved
Re: Add permissions to OSMC user on LAN
Can You tell me how to do it wright because I'm afraid I will broke my nextcloud?
Re: Add permissions to OSMC user on LAN
login as root user
Code: Select all
chmod dietpi:dietpi /mnt/Toshiba/
chmod dietpi:dietpi /mnt/Toshiba/dietpi_userdata/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Re: Add permissions to OSMC user on LAN
I make sudo su from ssh when dietpi user and give command:
It means wrong permissions.root@DietPi:/# chmod dietpi:dietpi /mnt/Toshiba/
chmod: błędne uprawnienia „dietpi:dietpi”
Napisz „chmod --help” dla uzyskania informacji.
Re: Add permissions to OSMC user on LAN
sorry my fold. should be chown instead of chmod
Code: Select all
chown dietpi:dietpi /mnt/Toshiba/
chown dietpi:dietpi /mnt/Toshiba/dietpi_userdata/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Re: Add permissions to OSMC user on LAN
It's progress because I can make folder and delete folder downloads in dietpi_userdata but when I enter folder downloads or movies I cannot delete anything. Can You show me command to affect all subfolders from dietpi_userdata?
Re: Add permissions to OSMC user on LAN
well I would not do all folder at once. because folder nextcloud_data need to stay with user www-data. Same for folder mysql. (btw mysql should be owned by mysql user and group)
pls go inside dietpi_userdata and do the following
pls replace <DIR> with every folder you need to access
pls go inside dietpi_userdata and do the following
Code: Select all
chown -R dietpi:dietpi <DIR>
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Re: Add permissions to OSMC user on LAN
I try that but don't work. Do I have to reboot Dietpi system?
Edit. OK I can delete files now in Android with Raspicontrol App so I think it should work now. Thank You for Your time and help.
Code: Select all
chown -R dietpi:dietpi /mnt/Toshiba/dietpi_userdata/downloads/
Re: Add permissions to OSMC user on LAN
what is not working?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Re: Add permissions to OSMC user on LAN
It's OK now. I have access from smartphone, laptop and OSMC. Thanks for help.