Go to advanced search

by hortimech
Fri Apr 19, 2019 12:24 pm
Forum: Troubleshooting
Topic: Samba client keeps asking for password and can't login.
Replies: 11
Views: 4790

Re: Samba client keeps asking for password and can't login.

Why are you forcing everyone to be 'root' ? this is very insecure.

Talking off insecure, this is possibly your problem, the version of Samba that comes with raspbian has NTLMv1 turned off, but your Windows clients may not have, try adding 'ntlm auth = yes' to smb.conf and see if this helps.
by hortimech
Sun Mar 24, 2019 12:19 pm
Forum: Troubleshooting
Topic: Samba Error in RPi3B
Replies: 8
Views: 173

Re: Samba Error in RPi3B

Hmm, 'max server protocol = NT1' should work, is SMBv1 turned off on the client as well ?

You need SMBv1 for network browsing and, as it is very insecure, it is now usually turned off by default. It is being replaced by mapping drives, connecting to a UNC or by 'Network Discovery' on Windows.
by hortimech
Sun Mar 24, 2019 9:55 am
Forum: Troubleshooting
Topic: Samba Error in RPi3B
Replies: 8
Views: 173

Re: Samba Error in RPi3B

There is a good reason why 'max protocol = SMB1' doesn't work, the 'SMB1' part doesn't exist!
Try this instead 'server max protocol = NT1'

You also better get used to no network browsing, it is going away.
by hortimech
Thu Mar 21, 2019 4:43 pm
Forum: Beginners
Topic: Sharing an existing folder using Samba
Replies: 27
Views: 773

Re: Sharing an existing folder using Samba

I'd be happy to accept a pull request on changes to the docs in this area. And I would be quite willing to totally rewrite your Samba page, just not on git-hub , we left there and went to git-lab. I am a member of the Samba team and I have been trying, for some time, to point out to the Rpi team th...
by hortimech
Thu Mar 21, 2019 11:12 am
Forum: Beginners
Topic: Sharing an existing folder using Samba
Replies: 27
Views: 773

Re: Sharing an existing folder using Samba

Hmm, you have this: drwxr-x---+ 5 root root 4096 Mar 21 10:42 pi This means that only root can read, write and enter the 'pi' directory, members of the root group can read and enter the 'pi' directory, 'others' are denied any access, but this isn't the full picture. If you examine the permissions, y...
by hortimech
Wed Mar 20, 2019 9:29 pm
Forum: Beginners
Topic: SMB Samba Share - HELP ME PLEASE! :)
Replies: 10
Views: 187

Re: SMB Samba Share - HELP ME PLEASE! :)

smbstatus shows connections not shares, try 'smbclient -L localhost'
When prompted for a password, just press 'enter'
by hortimech
Wed Mar 20, 2019 4:33 pm
Forum: Beginners
Topic: Sharing an existing folder using Samba
Replies: 27
Views: 773

Re: Sharing an existing folder using Samba

Hi Hortimech, Thanks for your answers. The permission thing, rwx and groups/users, I was ok with. Probably one of the few things I remember from my UNIX days. But what I can't understand is why I get message telling me I don't have access to the server when I try to connect the share, Z1_Disk, to m...
by hortimech
Wed Mar 20, 2019 4:14 pm
Forum: Beginners
Topic: SMB Samba Share - HELP ME PLEASE! :)
Replies: 10
Views: 187

Re: SMB Samba Share - HELP ME PLEASE! :)

mrsharpey wrote:
Wed Mar 20, 2019 3:52 pm
Thanks for the replies so far. From what I can gather the share isn't being created whatsoever.
What do you mean by <isn't being created> ?
Samba doesn't create the share folder, you have to.
by hortimech
Wed Mar 20, 2019 9:12 am
Forum: Beginners
Topic: SMB Samba Share - HELP ME PLEASE! :)
Replies: 10
Views: 187

Re: SMB Samba Share - HELP ME PLEASE! :)

It’s possibly the version of SMB you are running. By default Samba uses SMBv1 and Windows has removed that :roll: And if Debian was using a supported Samba version, Raspbian wouldn't be using SMBv1 either. You could try: 1) Enable SMBv1 on the PC again 2) Configure min protocol as SMB2 - see https:...
by hortimech
Tue Mar 19, 2019 2:02 pm
Forum: Beginners
Topic: Sharing an existing folder using Samba
Replies: 27
Views: 773

Re: Sharing an existing folder using Samba

OK, if we examine one of those permission lines we find this: drwxrwxrwx 3 root root 4096 Mar 15 14:55 /media/pi/Z3_Disk The first block 'drwxrwxrwx' are the permissions The third and fourth are the owner & group The last is the path to the directory Breaking the permissions down, it becomes this: d...
by hortimech
Sun Mar 17, 2019 6:40 pm
Forum: Beginners
Topic: Sharing an existing folder using Samba
Replies: 27
Views: 773

Re: Sharing an existing folder using Samba

What are the permissions on the folders you are sharing ? what do these commands output: ls -lad /home/shares/public ls -lad /home/pi/Desktop/share ls -lad /media/pi/Z1_Disk ls -lad /media/pi/Z2_Disk ls -lad /media/pi/Z3_Disk Does the user you are trying to connect to the share (which share ?) exist...
by hortimech
Sun Mar 17, 2019 9:32 am
Forum: Beginners
Topic: Sharing an existing folder using Samba
Replies: 27
Views: 773

Re: Sharing an existing folder using Samba

This is the smb.conf with all the default settings removed (note it is interspaced with comments) [global] workgroup = WORKGROUP security = user syslog = 0 log file = /var/log/samba/log.%m max log size = 1000 usershare allow guests = yes passwd program = /usr/bin/passwd %u pam password change = yes ...
by hortimech
Sat Mar 16, 2019 8:52 am
Forum: Beginners
Topic: Sharing an existing folder using Samba
Replies: 27
Views: 773

Re: Sharing an existing folder using Samba

OK, lets start by you posting your smb.conf
But before you post it, remove all lines that start with a '#' or ';'
by hortimech
Fri Mar 15, 2019 5:47 pm
Forum: Beginners
Topic: Sharing an existing folder using Samba
Replies: 27
Views: 773

Re: Sharing an existing folder using Samba

Jamesh and Hortimech, I have no idea what you guys are talking about? :? Hi Thoughtfisssion, I am a member of the Samba team and I have been trying, for some time, to point out to the Rpi team that their Samba page isn't correct and all I get is 'use git-hub'. I will not use git-hub, well not after...
by hortimech
Fri Mar 15, 2019 4:13 pm
Forum: Beginners
Topic: Sharing an existing folder using Samba
Replies: 27
Views: 773

Re: Sharing an existing folder using Samba

jamesh wrote:
Thu Mar 14, 2019 9:46 am

I'd be happy to accept a pull request on changes to the docs in this area.
And I would be quite willing to totally rewrite your Samba page, just not on git-hub, we left there and went to git-lab.
by hortimech
Wed Mar 13, 2019 10:27 pm
Forum: Beginners
Topic: Sharing an existing folder using Samba
Replies: 27
Views: 773

Re: Sharing an existing folder using Samba

Probably not, for the following reasons: It shows this as a share: [share] path = /home/pi/shared available = yes valid users = pi read only = no browsable = yes public = yes writable = yes Lets examine that. 'available = yes' and 'browsable = yes' are default settings, so do not need to be set. 'pu...
by hortimech
Mon Mar 11, 2019 12:47 pm
Forum: Networking and servers
Topic: No subnet declaration for eth0. Setting up DHCP server.
Replies: 23
Views: 707

Re: No subnet declaration for eth0. Setting up DHCP server.

No, I didn't know what the second 'c' was for, so thanks for telling me, but you still haven't answered the main questions. Why not remove it ? What will happen if you do ? Why do you need something to set a clients IP if the client has a fixed ipaddress ? On an rpi you have limited disk space, so w...
by hortimech
Sun Mar 10, 2019 7:46 pm
Forum: Networking and servers
Topic: No subnet declaration for eth0. Setting up DHCP server.
Replies: 23
Views: 707

Re: No subnet declaration for eth0. Setting up DHCP server.

I’m not going to discuss this further. For the record, removing dhcpcd from Raspbian without a good reason is not sound advice. The OP has left the room with reason. Perhaps he needed a dhcp server because his project was a Pi 3 wireless router. I don’t think removing the dhcp client would have don...
by hortimech
Sun Mar 10, 2019 4:24 pm
Forum: Networking and servers
Topic: No subnet declaration for eth0. Setting up DHCP server.
Replies: 23
Views: 707

Re: No subnet declaration for eth0. Setting up DHCP server.

Why? Mhh. Let me see. It is preintalled since Jessie, it is documented, it mostly works. Did I get that right? So, just because it is installed on something that gets its IP via dhcp and is documented, it is a good reason not to remove it when you are replacing it with a dhcp server ? The 'it mostl...
by hortimech
Sun Mar 10, 2019 2:25 pm
Forum: Networking and servers
Topic: No subnet declaration for eth0. Setting up DHCP server.
Replies: 23
Views: 707

Re: No subnet declaration for eth0. Setting up DHCP server.

Because if you are running a dhcp server it needs to have a fixed IP, so anything that sets the ipaddress isn't needed , so why have it installed and running ? Technically, it doesn’t. But of course you don’t want 2 competing DHCP servers on the same network so a static IP it is often. Something ha...
by hortimech
Sun Mar 10, 2019 9:26 am
Forum: Networking and servers
Topic: No subnet declaration for eth0. Setting up DHCP server.
Replies: 23
Views: 707

Re: No subnet declaration for eth0. Setting up DHCP server.

If you are running a dhcp server, you probably should remove dhcpcd (its actual name is dhcpcd5). Why?? Because if you are running a dhcp server it needs to have a fixed IP, so anything that sets the ipaddress isn't needed , so why have it installed and running ? I also had a bit of brain fade, yes...
by hortimech
Sat Mar 09, 2019 7:15 pm
Forum: Networking and servers
Topic: No subnet declaration for eth0. Setting up DHCP server.
Replies: 23
Views: 707

Re: No subnet declaration for eth0. Setting up DHCP server.

If you are running a dhcp server, you probably should remove dhcpcd (its actual name is dhcpcd5). You have this: option broadcast-address 192.168.1.254; I would change it to this: option broadcast-address 192.168.1.255; Is the dhcp servers IP really 192.168.1.0 and the gateway 192.168.1.1 ? If the g...
by hortimech
Thu Mar 07, 2019 9:41 am
Forum: Troubleshooting
Topic: quick script help
Replies: 3
Views: 125

Re: quick script help

i don't know why that's why i am asking Nothing seems to work and you need double quotes or runcommand.sh wont work or even give me a error log I've tried it with and without double quotes. but double quotes at lest tells me a config file is missing so i am still unable to get it to run. I've tried...
by hortimech
Wed Mar 06, 2019 3:51 pm
Forum: Troubleshooting
Topic: quick script help
Replies: 3
Views: 125

Re: quick script help

I haven't a clue what you are trying to do, but if you are just trying to run another script from a script, you don't need all the double quotes. Try typing into a terminal: /opt/retropie/supplementary/runcommand/runcommand.sh 0 _PORT_ srb2k If that works, put that line into your script, if it doesn...
by hortimech
Tue Mar 05, 2019 8:26 am
Forum: Troubleshooting
Topic: SMB share with Windows 10 [SOLVED!!!!]
Replies: 39
Views: 1042

Re: SMB share with Windows 10

As can be seen in the samba docs, %S expands to "the name of the current service, if any". So, if the name of the current service is "foo" the only valid user will also be "foo". But the documentation also states "The following substitutes apply only to some configuration options (only those that a...

Go to advanced search