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

Add permissions to OSMC user on LAN

Post by przemko »

Hi, I have Rpi4 with Dietpi and OSMC on Rpi3 installed. When I go to shared folder from OSMC I cannot delete files on my dietpi_usrerdata folder. Can I add permissions to my OSMC user and how to do it Wright?
Regards Przemek
User avatar
Joulinar
Posts: 2068
Joined: Sat Nov 16, 2019 12:49 am

Re: Add permissions to OSMC user on LAN

Post by Joulinar »

Hi,

How did you mount the shared folder between your DiePi system and the OSMC system?
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 mount in Kodi file manager as NFS://mnt/Toshiba/dietpi_userdata.
User avatar
Joulinar
Posts: 2068
Joined: Sat Nov 16, 2019 12:49 am

Re: Add permissions to OSMC user on LAN

Post by Joulinar »

so you are exporting the file system on the RPi4 and going to mount it on the RPi3?
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 »

Exporting? On /mnt/Toshiba/dietpi_userdata/Video is my media library for Emby server on Rpi4. I just mount NFS network share in OSMC from there. I find option on OSMC forum to install autofs. Is it good idea?
Edit. I cannot also delete files when I login with FTP on Android or Nautilus.
User avatar
Joulinar
Posts: 2068
Joined: Sat Nov 16, 2019 12:49 am

Re: Add permissions to OSMC user on LAN

Post by Joulinar »

So do you have an FTP Client installed on DietPi? Or Samba?
Within your OSMC device, is the mount done on OS level or on application level? means do you have an entry on /etc/fstab ?
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 have FTP installed on Dietpi. But I think I have something wrong with permissions on my Toshiba (format etx4) drive because on my second drive My Passport I can delete files from FTP or SSH without sudo.

Code: Select all

dietpi@DietPi:/mnt/Toshiba/dietpi_userdata$ ls -l
razem 24
drwxrwxr-x 5 dietpi   dietpi   4096 mar 21 22:02 downloads
drwxrwxr-x 2 dietpi   dietpi   4096 mar 20 15:31 Music
drwxrwxrwx 5 www-data www-data 4096 mar 22 20:19 mysql
drwxr-x--- 6 www-data www-data 4096 mar 22 16:41 nextcloud_data
drwxrwxr-x 2 dietpi   dietpi   4096 mar 19 14:01 Pictures
drwxrwxr-x 4 dietpi   dietpi   4096 mar 21 17:52 Video
On My Ppassport storage every foldr is for root.
User avatar
Joulinar
Posts: 2068
Joined: Sat Nov 16, 2019 12:49 am

Re: Add permissions to OSMC user on LAN

Post by Joulinar »

What user do you use to connect with FTP? Which FTP server you installed?
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 cannot login ftp with root so only dietpi user. I install ProFTP.
User avatar
Joulinar
Posts: 2068
Joined: Sat Nov 16, 2019 12:49 am

Re: Add permissions to OSMC user on LAN

Post by Joulinar »

ok if you use user dietpi, you should be able to create, modify and delete all folder that are owned by dietpi user

Means in your case, the following folder should be accessible via FTP:

Code: Select all

drwxrwxr-x 5 dietpi   dietpi   4096 mar 21 22:02 downloads
drwxrwxr-x 2 dietpi   dietpi   4096 mar 20 15:31 Music
drwxrwxr-x 2 dietpi   dietpi   4096 mar 19 14:01 Pictures
drwxrwxr-x 4 dietpi   dietpi   4096 mar 21 17:52 Video
which of the folders you like to access modify?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply