Authenticate/Don't have permissions to copy to Pi Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
TWHH
Posts: 56
Joined: Tue Jun 29, 2021 10:27 pm

Re: Authenticate/Don't have permissions to copy to Pi

Post by TWHH »

Code: Select all

root@DietPi:~# ls -la /mnt/2e716fb9-d183-4470-8d45-ac0ea80c7329/dietpi_userdata
total 52
drwxrwxr-x  9 dietpi   dietpi    4096 Jul  8 15:38 .
drwxr-xr-x  6 root     root      4096 Jun 30 20:55 ..
-rw-rw-r--  1 dietpi   dietpi   10244 Jul  8 15:40 .DS_Store
-rw-rw-r--  1 dietpi   dietpi    4096 Jul  7 16:59 ._.DS_Store
drwxrwxr-x  2 dietpi   dietpi    4096 Jun 30 13:11 Music
drwxrwxr-x  2 dietpi   dietpi    4096 Jun 30 13:03 Pictures
drwxrwxr-x  2 dietpi   dietpi    4096 Jun 30 13:03 Video
drwxrwxr-x 16 dietpi   dietpi    4096 Jul  8 19:03 downloads
drwxr-xr-x  7 radarr   dietpi    4096 Jul  9 08:51 radarr
drwxr-xr-x 13 sonarr   dietpi    4096 Jul  9 09:05 sonarr
drwxr-xr-x  7 tautulli tautulli  4096 Jul  8 17:15 tautulli
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: Authenticate/Don't have permissions to copy to Pi

Post by Joulinar »

ok which of these directories you like to edit or on what action your get the error message?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
TWHH
Posts: 56
Joined: Tue Jun 29, 2021 10:27 pm

Re: Authenticate/Don't have permissions to copy to Pi

Post by TWHH »

Thanks for your ongoing support.

I’ve been trying to drag and drop media files (in Finder via Samba) from my Max into either the Sonarr or Radarr directories on the Pi.

These are the directories that I don’t appear to have the correct permissions for.

Thanks again
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: Authenticate/Don't have permissions to copy to Pi

Post by Joulinar »

yes, both folder have write permission for the user radarr/sonarr only. means, you are not able to write files as user dietpi, wich is used to connect via samba

Code: Select all

drwxr-xr-x  7 radarr   dietpi    4096 Jul  9 08:51 radarr
drwxr-xr-x 13 sonarr   dietpi    4096 Jul  9 09:05 sonarr
Simply extent the folder permission to the user group

Code: Select all

chmod 775 /mnt/2e716fb9-d183-4470-8d45-ac0ea80c7329/dietpi_userdata/radarr
chmod 775 /mnt/2e716fb9-d183-4470-8d45-ac0ea80c7329/dietpi_userdata/sonarr
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
TWHH
Posts: 56
Joined: Tue Jun 29, 2021 10:27 pm

Re: Authenticate/Don't have permissions to copy to Pi

Post by TWHH »

Marvellous marvellous. Thank you so much. All now performing as desired.

Thanks again for your help... and patience :)
User avatar
trendy
Posts: 343
Joined: Tue Feb 25, 2020 2:54 pm

Re: Authenticate/Don't have permissions to copy to Pi

Post by trendy »

Consider using these commands:

Code: Select all

chgrp -R dietpi /mnt/2e716fb9-d183-4470-8d45-ac0ea80c7329/dietpi_userdata/radarr
chgrp -R dietpi /mnt/2e716fb9-d183-4470-8d45-ac0ea80c7329/dietpi_userdata/sonarr
find /mnt/2e716fb9-d183-4470-8d45-ac0ea80c7329/dietpi_userdata/radarr -type d -print0 | xargs -0 chmod 2775
find /mnt/2e716fb9-d183-4470-8d45-ac0ea80c7329/dietpi_userdata/sonarr -type d -print0 | xargs -0 chmod 2775
find /mnt/2e716fb9-d183-4470-8d45-ac0ea80c7329/dietpi_userdata/radarr -type f -print0 | xargs -0 chmod 664
find /mnt/2e716fb9-d183-4470-8d45-ac0ea80c7329/dietpi_userdata/sonarr -type f -print0 | xargs -0 chmod 664
They will recursively change the attributes of all files and folders already there to group writeable, as well as making the group the owner of the folder, rather than the user.
The commands provided by @Joulinar have effect only on the first directory, so if you tried to access some folder deeper, it would give you the same error.
TWHH
Posts: 56
Joined: Tue Jun 29, 2021 10:27 pm

Re: Authenticate/Don't have permissions to copy to Pi

Post by TWHH »

Thanks for the added info.

I won't be going deeper - already massively out of my depth. Been a great learning curve though. Thanks for being on hand to throw me a lifejacket 8)
Post Reply