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 »

Yes, that is correct but when I login with FTP I cannot. That is also when I login with SSH. I must use sudo. Maybe it's because I format that drive from my linux laptop. I also add permissions for www-data user and dietpi user. Maybe I made it wrong. I'm not good at that stuff :/
User avatar
Joulinar
Posts: 2022
Joined: Sat Nov 16, 2019 12:49 am

Re: Add permissions to OSMC user on LAN

Post by Joulinar »

pls can you login using FTP and try to create a folder? How does the user permissions of this looks like afterwards?
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 »

As I say I cannot create, delete folders when login with ftp or ssh on that drive.
Attachments
screenshot_ftp_client
screenshot_ftp_client
User avatar
Joulinar
Posts: 2022
Joined: Sat Nov 16, 2019 12:49 am

Re: Add permissions to OSMC user on LAN

Post by Joulinar »

pls can you login using FTP port 21. You are going to login directly to your DietPi system right?
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 »

The same situation:
Attachments
ftp
ftp
User avatar
Joulinar
Posts: 2022
Joined: Sat Nov 16, 2019 12:49 am

Re: Add permissions to OSMC user on LAN

Post by Joulinar »

can you post output of following

Code: Select all

la -la /mnt/Toshiba/
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 give permissions for whole Toshiba HDD for www-data, maybe that is the reason?

Code: Select all

dietpi@DietPi:/$ ls -la /mnt/Toshiba/
razem 28
drwxr-xr-x 4 www-data www-data  4096 mar 20 21:45 .
drwxr-xr-x 8 root     root      4096 mar 21 08:11 ..
drwxrwxrwx 8 www-data www-data  4096 mar 20 20:23 dietpi_userdata
drwx------ 2 www-data www-data 16384 mar 18 16:26 lost+found
User avatar
Joulinar
Posts: 2022
Joined: Sat Nov 16, 2019 12:49 am

Re: Add permissions to OSMC user on LAN

Post by Joulinar »

as I can see you give permission 777 (r/w to everybody) to dietpi_userdata. Did you have done this now? Because on a screen shot before it was looking different. There it was user www-data only who could write to this folder
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 give permissions when I install nextcloud. I didn't change it now.
User avatar
Joulinar
Posts: 2022
Joined: Sat Nov 16, 2019 12:49 am

Re: Add permissions to OSMC user on LAN

Post by Joulinar »

I would give permission to user dietpi. www-data should be fine for nextcloud folder only. No need to give it to entire user_data directory
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply