samba server sharing issue

Having issues with your DietPi installation, or, found a bug? Post it here.
User avatar
MichaIng
Site Admin
Posts: 2348
Joined: Sat Nov 18, 2017 6:21 pm

Re: samba server sharing issue

Post by MichaIng »

This is just the symlink, which has always root:root owner but 777 permissions, hence is global R/W accessible. Important is the target dir permissions:
ls -al /mnt/dietpi_userdata/
dron
Posts: 11
Joined: Fri Dec 13, 2019 10:02 am

Re: samba server sharing issue

Post by dron »

internal dir(/opt/Radarr) seems to work ok! I can see its files in smb client in android.

any ideas for the external /mnt directory?
dron
Posts: 11
Joined: Fri Dec 13, 2019 10:02 am

Re: samba server sharing issue

Post by dron »

MichaIng wrote: Sat Dec 14, 2019 4:06 pm This is just the symlink, which has always root:root owner but 777 permissions, hence is global R/W accessible. Important is the target dir permissions:
ls -al /mnt/dietpi_userdata/
root@DietPi:~# ls -al /mnt/dietpi_userdata/
total 36
drwxr-xr-x 1 dietpi dietpi 4096 Dec 11 20:13 .
drwxrwxrwx 1 root root 20480 Nov 24 21:49 ..
drwxr-xr-x 1 debian-deluged debian-deluged 0 Dec 11 20:36 deluge
drwxrwxr-x 1 dietpi dietpi 4096 Dec 11 18:26 downloads
drwxrwxr-x 1 dietpi dietpi 0 Dec 8 22:52 Music
drwxrwxr-x 1 dietpi dietpi 0 Nov 10 11:23 Pictures
drwxr-xr-x 1 radarr dietpi 4096 Dec 14 17:20 radarr
drwxr-xr-x 1 sonarr dietpi 4096 Dec 14 17:20 sonarr
drwxrwxr-x 1 dietpi dietpi 0 Nov 10 11:23 Video
root@DietPi:~#
User avatar
MichaIng
Site Admin
Posts: 2348
Joined: Sat Nov 18, 2017 6:21 pm

Re: samba server sharing issue

Post by MichaIng »

Hmm okay, not 100% sure. Does the samba server report any issues? E.g.

Code: Select all

journalctl -u smbd
cat /var/log/samba/error.log # Not sure how the file is called exactly
dron
Posts: 11
Joined: Fri Dec 13, 2019 10:02 am

Re: samba server sharing issue

Post by dron »

i changed the smb dir back to /mnt/dietpi_userdata and it works (at least in android)!!

thanks for the support guys!
User avatar
MichaIng
Site Admin
Posts: 2348
Joined: Sat Nov 18, 2017 6:21 pm

Re: samba server sharing issue

Post by MichaIng »

Okay yes userdata dir permissions look fine. Let me know if Windows still has issues, I never used it from there hence not sure about client specific needs.
dron
Posts: 11
Joined: Fri Dec 13, 2019 10:02 am

Re: samba server sharing issue

Post by dron »

MichaIng wrote: Sat Dec 14, 2019 4:39 pm Okay yes userdata dir permissions look fine. Let me know if Windows still has issues, I never used it from there hence not sure about client specific needs.
in win10, i still cannot view the shared folder (same issues as in the photos in first page).
User avatar
Joulinar
Posts: 2335
Joined: Sat Nov 16, 2019 12:49 am

Re: samba server sharing issue

Post by Joulinar »

I guess you would need to enter the full path into W10 Explorer

\\<<your Samba Server IP >>\dietpi

At least, that's how it is working for me
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
dron
Posts: 11
Joined: Fri Dec 13, 2019 10:02 am

Re: samba server sharing issue

Post by dron »

Joulinar wrote: Sun Dec 15, 2019 12:42 am I guess you would need to enter the full path into W10 Explorer

\\<<your Samba Server IP >>\dietpi

At least, that's how it is working for me
I use the full path "\\192.168.1.118\dietpi" but the access is denied.
maybe windows cannot identify some special characters (i had this issue 2 months ago, when i was trying smb share through dietpi).
Anyway, since android sharing is ok, i am fine at the moment.
gregmo
Posts: 7
Joined: Fri Aug 21, 2020 12:08 am

Re: samba server sharing issue

Post by gregmo »

Joulinar wrote: Fri Dec 13, 2019 12:28 pm Hi,

try to setup SAMBA without any modification first. Just to check if it's working or not

How to manage/access is described here

I just checked it and I was able to access from my Windows10 computer without issues right after installation.
Well, this was reason enough for me to register for an account to post... I installed SAMBA with no mods, no mods in user accounts or passwords, etc. About as vanilla as you can get. I'm getting the same "Access Denied" as the OP is. Just pointing out that it's not user error as this seems to imply.

Cheers,

GregMo
Post Reply