Go to advanced search

by hortimech
Fri Apr 03, 2020 6:45 pm
Forum: Troubleshooting
Topic: Samba Access Failing After Initial (ie never worked)
Replies: 4
Views: 102

Re: Samba Access Failing After Initial (ie never worked)

Would be nice if there were some debug logs telling you what happenned and why it failed /was denied. There are :) Try reading 'man vfs_full_audit' Can you post the contents of your smb.conf, but please remove any lines that start with a '#' or a ';' What is the filesystem on the drive ? What is th...
by hortimech
Tue Mar 24, 2020 2:14 pm
Forum: Beginners
Topic: Samba Share requires authentication/not accessible.
Replies: 13
Views: 626

Re: Samba Share requires authentication/not accessible.

What is in the Samba logs ? Or in syslog ? There are plenty of instructions out there on how to permanently mount an HDD through fstab, but it boils down to identifying the drive with 'lsblk', finding its uuid with 'lsblk --fs' creating a line in /etc/fstab similar to this: UUID=7e7698d7-37c1-44b3-a...
by hortimech
Tue Mar 24, 2020 7:37 am
Forum: Beginners
Topic: Samba Share requires authentication/not accessible.
Replies: 13
Views: 626

Re: Samba Share requires authentication/not accessible.

Posting 'it doesn't work' isn't helpful, what error message are you getting ????

If you are mounting a USB HD and it will always be on, then you should mount it in fstab in the same way as if it was a PC HD i.e. by UUID etc
You should then be able to share this easily.
by hortimech
Mon Mar 23, 2020 2:38 pm
Forum: Beginners
Topic: Samba Share requires authentication/not accessible.
Replies: 13
Views: 626

Re: Samba Share requires authentication/not accessible.

astrophunq wrote:
Mon Mar 23, 2020 12:52 pm
I figured out that my config is fine.
No it isn't, you had 'default = global'.
There is no parameter called 'default'

Please believe me when I say that I know more about Samba than you do :)
by hortimech
Mon Mar 23, 2020 8:50 am
Forum: Beginners
Topic: Samba Share requires authentication/not accessible.
Replies: 13
Views: 626

Re: Samba Share requires authentication/not accessible.

I fail to to see why Samba failed to start when you used my suggested smb.conf (you did use it in its entirety, replacing your smb.conf, didn't you ?). It was based on your smb.conf, with default lines and lines that shouldn't be there, removed. I also replaced 'min protocol' with 'server min protoc...
by hortimech
Fri Mar 20, 2020 9:28 am
Forum: Beginners
Topic: Search any one who has implemented a media samba server on PI and share with one other PI
Replies: 15
Views: 456

Re: Search any one who has implemented a media samba server on PI and share with one other PI

This is sort of a duplicate of another post, the other post is about LibreELEC and Samba
by hortimech
Fri Mar 20, 2020 9:26 am
Forum: Beginners
Topic: Try to import media library from PI4 to PI3 failed with Samba
Replies: 6
Views: 156

Re: Try to import media library from PI4 to PI3 failed with Samba

No answer on the PI4, samba host server. The LibreELEC should has not implemented this. If you are not getting any output, then you haven't got a Samba server. From my investigation of LibreELEC, it seems it is just enough of a distro to run Kodi, so can I suggest you use Raspbian instead and insta...
by hortimech
Thu Mar 19, 2020 7:58 pm
Forum: Beginners
Topic: Try to import media library from PI4 to PI3 failed with Samba
Replies: 6
Views: 156

Re: Try to import media library from PI4 to PI3 failed with Samba

You need to ask LibreELEC about that, you probably do need /var/lib/samba, I say 'probably' because it could be somewhere else. Try running this: sudo smbd -b | grep 'STATEDIR' It should display where Samba expects it to be, but only if smbd is actually installed. From my understanding LibreELEC is ...
by hortimech
Thu Mar 19, 2020 11:26 am
Forum: Beginners
Topic: Try to import media library from PI4 to PI3 failed with Samba
Replies: 6
Views: 156

Re: Try to import media library from PI4 to PI3 failed with Samba

Sorry, but none of that seems to be anything to do with Samba, the only comments I would make about your smb.conf files are: Someone should tell openelec that using 'smbpasswd' for the passdb is deprecated, they should use the default 'tdbsam'. Also using 'root' as the guest user isn't a good idea, ...
by hortimech
Wed Mar 18, 2020 9:12 am
Forum: Beginners
Topic: Samba Share requires authentication/not accessible.
Replies: 13
Views: 626

Re: Samba Share requires authentication/not accessible.

First, which part of <preferably with any lines that start with '#' or ';' removed> did you not understand ? :) Your smb.conf with those lines removed and a few slight modifications is this: [global] log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 dns proxy = no obey pam restrictions...
by hortimech
Tue Mar 17, 2020 8:01 pm
Forum: Troubleshooting
Topic: samba problems
Replies: 4
Views: 328

Re: samba problems

Testparm removes default lines, that is why 'guest ok = no' & 'read only = yes' are not shown, they are set to the defaults. However, testparm shouldn't turn 'browseable = yes' into 'browseable = no', if anything, it should remove the 'browseable' line because 'yes' is the default. Can you please te...
by hortimech
Tue Mar 17, 2020 10:01 am
Forum: Beginners
Topic: Samba Share requires authentication/not accessible.
Replies: 13
Views: 626

Re: Samba Share requires authentication/not accessible.

More info please :)

Can you post your smb.conf (preferably with any lines that start with '#' or ';' removed)

What is the Samba version ('smbd -V' will tell you this)

What are you connecting from ?
by hortimech
Fri Mar 13, 2020 3:30 pm
Forum: Troubleshooting
Topic: RPi4 cannot not write to Rpi 4 NAS
Replies: 20
Views: 539

Re: RPi4 cannot not write to Rpi 4 NAS

Can someone explain why, when plugging a usbdrive into an rpi, it is suggested to use a line like this in /etc/fstab: //192.168.0.32/donnellyshare /mnt/Media/ cifs credentials=/home/pi/.smbcredentials,forceuid,uid=1000,forcegid,gid=1000,x-systemd.automount 0 0 You only need something like that if yo...
by hortimech
Fri Mar 13, 2020 8:53 am
Forum: Networking and servers
Topic: fstab to use machine name rather than IP for windos samba share
Replies: 3
Views: 189

Re: fstab to use machine name rather than IP for windos samba share

Probably the easiest way for you is to add;

Code: Select all

192.168.11.141  shiva
Or if you use a dns domain name:

Code: Select all

192.168.11.141  shiva.yourdomain.tld shiva 
To /etc/hosts

Then change:

Code: Select all

name resolve order = bcast
To:

Code: Select all

name resolve order =  hosts lmhosts wins bcast
Restart Samba
by hortimech
Thu Mar 12, 2020 11:06 am
Forum: Beginners
Topic: Bash subscripted variable output from for do done loop
Replies: 13
Views: 459

Re: Bash subscripted variable output from for do done loop

Thanks but not quite what I need. Maybe I do not understand what you did. This I need a variable diff(1), diff(2)...diff(5) that I could echo diff(3) or echo diff(2) or, use to write my cron file. You cannot have '$diff(1)" etc. You (it seems) want to create dynamic variable names: $diff(1) $diff(2...
by hortimech
Wed Mar 11, 2020 10:01 am
Forum: Troubleshooting
Topic: RPi4 cannot not write to Rpi 4 NAS
Replies: 20
Views: 539

Re: RPi4 cannot not write to Rpi 4 NAS

You seem to be wanting to have an open share: create mask=0777 directory mask=0777 But, you have then denied guest access: public=no It looks like your shared directory is owned by root:root and from your screenshot, only 'root' has full control (can read, write and execute/enter) If you want other ...
by hortimech
Wed Mar 11, 2020 9:34 am
Forum: Beginners
Topic: Bash subscripted variable output from for do done loop
Replies: 13
Views: 459

Re: Bash subscripted variable output from for do done loop

You seem to want to use dynamic variable names and to construct these, you will need to use 'eval', try this: #!/bin/bash start=11 hr=60 diff=$(($((hr-start))/10)) count=1 out="out" for ((i=$diff; i>=1; i--)) do OUT=$((i*10)) eval "$out[$count]=$OUT" count=$((count+1)) done Of course, this does leav...
by hortimech
Fri Mar 06, 2020 8:14 pm
Forum: Raspbian
Topic: Samba, WITHOUT active directory?
Replies: 6
Views: 291

Re: Samba, WITHOUT active directory?

Okay, you have two ways out of this, you can try reconfiguring Samba with dpkg or you can use apt to remove Samba, then remove /etc/samba and var/lib/samba. Now reinstall Samba, open /etc/samba/smb.conf in your favourite editor and configure it following the Samba wikipage. To start Samba, do not us...
by hortimech
Sun Mar 01, 2020 8:41 am
Forum: Networking and servers
Topic: Various USB HDD's, Samba and Windows shares {Working}
Replies: 2
Views: 219

Re: Various USB HDD's, Samba and Windows shares {Working}

Hmm, interesting, your effective share is: [Files] Comment = Shared Folder Path = /media/pi read only = no create mask = 0777 directory mask = 0777 guest ok = yes force user = pi But there is twist to it, whilst you are allowing guest access to the share, everything will end up belonging to the user...
by hortimech
Sat Feb 22, 2020 9:23 am
Forum: Networking and servers
Topic: how manage FTP requests from PC to server through a Raspberry?
Replies: 14
Views: 370

Re: how manage FTP requests from PC to server through a Raspberry?

yes, but it's a requirement for another application that all of them have the same IP address, so I have to connect them to something (the Raspberry) to reach the FTP server with a different IP Then the 'application' is broken. As it has been pointed out, each PC must have a unique IP. Think about ...
by hortimech
Sun Feb 16, 2020 10:24 pm
Forum: Troubleshooting
Topic: NAS not working
Replies: 1
Views: 93

Re: NAS not working

I take it that 'I can't detect the NAS with windows 10' means it isn't appearing in Explorer. If so, add: client min protocol = SMB2_02 server min protocol = SMB2_02 To your smb.conf and then go here: https://github.com/christgau/wsdd Download and install it. Remove the space from the share name. Fi...
by hortimech
Wed Feb 12, 2020 6:16 pm
Forum: Troubleshooting
Topic: [Pi4]Problem with downloading from samba
Replies: 12
Views: 400

Re: [Pi4]Problem with downloading from samba

Is there anything in the Samba logs ?
can you post your smb.conf (without any lines that start with a '#' or ';')
by hortimech
Mon Feb 10, 2020 9:17 am
Forum: Networking and servers
Topic: Can't get network on PI to show other computers on my home workgroup network
Replies: 5
Views: 3004

Re: Can't get network on PI to show other computers on my home workgroup network

There are two ways to get a computer to show in Explorer on Windows, 'Network Browsing' and 'Network Discovery'. The former requires SMBv1 which is insecure, so you should turn it off, but when you do, you lose 'Network Browsing'. This leaves 'Network Discovery' which uses a different protocol and o...
by hortimech
Wed Feb 05, 2020 3:34 pm
Forum: Troubleshooting
Topic: Samba problems when running as a Unix domain member
Replies: 0
Views: 255

Samba problems when running as a Unix domain member

OK, this might be a long shot, but is there anybody running an Rpi as a Unix domain member in an active directory domain? If so, are you running the standard Samba packages (4.9.5) ? Are you using the wired network (eth0) ? Do you have these lines in your smb.conf: bind interfaces only = yes interfa...
by hortimech
Sun Feb 02, 2020 5:50 pm
Forum: Beginners
Topic: Cannot find my Pi on windows 10 network
Replies: 9
Views: 812

Re: Cannot find my Pi on windows 10 network

Go here: https://github.com/christgau/wsdd
Install it on your Rpi and run it
SMBv1 has been turned off on Windows 10 and you need SMBv1 for network browsing and you need network browsing for Windows 10 to find your Rpi.

Go to advanced search