Add permissions to OSMC user on LAN Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
przemko
Posts: 70
Joined: Sun Mar 15, 2020 5:40 pm

Re: Add permissions to OSMC user on LAN

Post by przemko »

Can You tell me how to do it wright because I'm afraid I will broke my nextcloud?
User avatar
Joulinar
Posts: 2052
Joined: Sat Nov 16, 2019 12:49 am

Re: Add permissions to OSMC user on LAN

Post by Joulinar »

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
przemko
Posts: 70
Joined: Sun Mar 15, 2020 5:40 pm

Re: Add permissions to OSMC user on LAN

Post by przemko »

I make sudo su from ssh when dietpi user and give command:
root@DietPi:/# chmod dietpi:dietpi /mnt/Toshiba/
chmod: błędne uprawnienia „dietpi:dietpi”
Napisz „chmod --help” dla uzyskania informacji.
It means wrong permissions.
User avatar
Joulinar
Posts: 2052
Joined: Sat Nov 16, 2019 12:49 am

Re: Add permissions to OSMC user on LAN

Post by Joulinar »

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
przemko
Posts: 70
Joined: Sun Mar 15, 2020 5:40 pm

Re: Add permissions to OSMC user on LAN

Post by przemko »

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?
User avatar
Joulinar
Posts: 2052
Joined: Sat Nov 16, 2019 12:49 am

Re: Add permissions to OSMC user on LAN

Post by Joulinar »

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

Code: Select all

chown -R dietpi:dietpi <DIR>
pls replace <DIR> with every folder you need to access
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
przemko
Posts: 70
Joined: Sun Mar 15, 2020 5:40 pm

Re: Add permissions to OSMC user on LAN

Post by przemko »

I try that but don't work. Do I have to reboot Dietpi system?

Code: Select all

chown -R dietpi:dietpi /mnt/Toshiba/dietpi_userdata/downloads/
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.
User avatar
Joulinar
Posts: 2052
Joined: Sat Nov 16, 2019 12:49 am

Re: Add permissions to OSMC user on LAN

Post by Joulinar »

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
przemko
Posts: 70
Joined: Sun Mar 15, 2020 5:40 pm

Re: Add permissions to OSMC user on LAN

Post by przemko »

It's OK now. I have access from smartphone, laptop and OSMC. Thanks for help.
Post Reply