Go to advanced search

by hortimech
Thu Apr 05, 2018 8:31 pm
Forum: Troubleshooting
Topic: Devices on my wifi cannot access Pi Samba share
Replies: 13
Views: 633

Re: Devices on my wifi cannot access Pi Samba share

Not in my experience. A samba user is not equal to a linux user and a samba user can exist without a matching linux user. Loging into a samba share (even a "home" share does not login you into linux. I take it you missed this line: To provide authentication on a standalone host, you have to create ...
by hortimech
Thu Apr 05, 2018 6:23 pm
Forum: Troubleshooting
Topic: Devices on my wifi cannot access Pi Samba share
Replies: 13
Views: 633

Re: Devices on my wifi cannot access Pi Samba share

Change unix password sync = yes to unix password sync = no in your smb.conf. Restrat samba (or reboot) then you can do so without affecting your linux passwords and users. The problem with doing that (and removing or commenting the line would have the same effect) is that whilst the user would be k...
by hortimech
Wed Apr 04, 2018 6:33 pm
Forum: Troubleshooting
Topic: Devices on my wifi cannot access Pi Samba share
Replies: 13
Views: 633

Re: Devices on my wifi cannot access Pi Samba share

Can I suggest you do something that very few people do, read the Samba documentation i.e. 'man smb.conf' If yo do you will find this: map to guest (G) This parameter can take four different values, which tell smbd(8) what to do with user login requests that don't match a valid UNIX user in some way....
by hortimech
Sun Apr 01, 2018 7:24 pm
Forum: Troubleshooting
Topic: SAMBA refuses to work
Replies: 6
Views: 376

Re: SAMBA refuses to work

It looks like everything is working, but you seem to be misunderstanding what 'smbstatus --shares' is for. It doesn't show the shares, it shows who is connected to the share or as Samba calls it the 'Service'. To see the share, you need to install 'smbclient': sudo apt-get install smbclient Then run...
by hortimech
Sun Apr 01, 2018 7:34 am
Forum: Troubleshooting
Topic: SAMBA refuses to work
Replies: 6
Views: 376

Re: SAMBA refuses to work

It should work, but is Samba actually starting ? Try these two commands: ps ax |grep -v 'grep' | grep 'smbd' ps ax |grep -v 'grep' | grep 'nmbd' It should produce lines like these: 7366 ? Ss 0:00 /usr/sbin/smbd -D 7304 ? Ss 0:05 /usr/sbin/nmbd -D If you don't get any output, neither the 'smbd' or 'n...
by hortimech
Sat Mar 31, 2018 8:34 pm
Forum: Troubleshooting
Topic: mysterious samba installation fizzle and more
Replies: 12
Views: 959

Re: mysterious samba installation fizzle and more

'samba' is still available as a package, so it could be a problem with your version of raspbian. What do you have in /etc/apt/sources.list ? is there anything in the /etc/apt/sources.list.d directory ?
by hortimech
Fri Mar 30, 2018 5:48 pm
Forum: Beginners
Topic: cannot set samba password
Replies: 7
Views: 624

Re: cannot set samba password

I fail to see how installing extra packages made it work ??

smbpasswd should be installed into /usr/bin when samba-common-bin is installed, because it is one of the contents of the package.
by hortimech
Fri Mar 30, 2018 12:06 pm
Forum: Beginners
Topic: cannot set samba password
Replies: 7
Views: 624

Re: cannot set samba password

Nearly right, but Samba isn't installed on windows, it has the cifs protocols that Samba emulates. Also the sample share can be just this: [share] path = /home/pi/Desktop/share valid users = pi read only = no The rest of the given parameters are default settings or in the case of 'writable = yes', t...
by hortimech
Tue Mar 27, 2018 1:15 pm
Forum: Troubleshooting
Topic: mysterious samba installation fizzle and more
Replies: 12
Views: 959

Re: mysterious samba installation fizzle and more

If you run this: smbd -b | grep [C]ONFIGFILE | awk '{print $NF}' It will print where Samba expects its conf file to be and on debian this is normally: /etc/samba/smb.conf The install normally puts a template smb.conf into where Samba expects it, but you need to configure it to make Samba behave as y...
by hortimech
Fri Mar 02, 2018 2:18 pm
Forum: Troubleshooting
Topic: [SOLVED] Simple Samba Share Access Denied
Replies: 9
Views: 2674

Re: [SOLVED] Simple Samba Share Access Denied

Do you want a wide open share or do you only want known users to be able to connect to the share ? If the former, remove the lines I suggested and try again after restarting smbd. If the later, remove the lines, create a Unix user with the name you want to connect with (probably your name), now crea...
by hortimech
Fri Mar 02, 2018 11:56 am
Forum: Troubleshooting
Topic: [SOLVED] Simple Samba Share Access Denied
Replies: 9
Views: 2674

Re: [SOLVED] Simple Samba Share Access Denied

You seem to be trying to set up a wide open share, so you might as well remove these lines [media]

create mask = 0775
directory mask = 0775
valid users = %S

They don't make sense (especially the last one) in a wide open share.
by hortimech
Fri Feb 02, 2018 8:23 pm
Forum: Advanced users
Topic: dhcpcd and domain names
Replies: 3
Views: 345

Re: dhcpcd and domain names

Assuming AD is Active Directory, then the function you need may be provided by Samba client software. Sorry, but it doesn't, a Samba AD DC relies on DNS, not the other way round. If I was having this problem, I would investigate removing dhcpcd and using the dhcp client software that will do what y...
by hortimech
Sat Jan 27, 2018 11:35 am
Forum: Beginners
Topic: Newbie help with a samba issue.
Replies: 2
Views: 380

Re: Newbie help with a samba issue.

Nearly :)
Except there is no Samba parameter 'user', perhaps the OP meant 'valid user' instead.
It might be a good idea to read this:

https://wiki.samba.org/index.php/Settin ... one_Server
by hortimech
Tue Dec 19, 2017 5:24 pm
Forum: Troubleshooting
Topic: Can't get Samba/CUPS working with Win10
Replies: 10
Views: 868

Re: Can't get Samba/CUPS working with Win10

I probably should also have mentioned that Samba (from 4.5.0) has SMB1 turned off as well, try adding 'ntlm auth = yes' to smb.conf and restart Samba. If this doesn't work, post your smb.conf
by hortimech
Mon Dec 18, 2017 10:19 pm
Forum: Troubleshooting
Topic: Can't get Samba/CUPS working with Win10
Replies: 10
Views: 868

Re: Can't get Samba/CUPS working with Win10

If you have all the latest updates installed on your win10 machines, then SMB1 is now turned off and if it is turned off, you do not have network browsing.
by hortimech
Thu Nov 30, 2017 6:51 pm
Forum: Troubleshooting
Topic: Logitech Unify connecting/pairing tool?
Replies: 5
Views: 729

Re: Logitech Unify connecting/pairing tool?

There is a program called 'Solaar', works on Linux, so should work on an rpi, though you may have to build it:

https://pwr.github.io/Solaar/
by hortimech
Sun Nov 19, 2017 9:36 am
Forum: Beginners
Topic: SMB shares went wild
Replies: 9
Views: 722

Re: SMB shares went wild

Is 'nobody' your guest account ? Try 'getent passwd nobody' It should produce something like this: nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin Check who Samba thinks the guest account is: testparm -v -s | grep '[g]uest account' It should produce this: guest account = nobody If the gue...
by hortimech
Sat Nov 18, 2017 2:47 pm
Forum: Troubleshooting
Topic: Bug in Samba "net usershare add"
Replies: 2
Views: 257

Re: Bug in Samba "net usershare add"

I can confirm this on Samba 4.6.8.

Can you please go here:

https://bugzilla.samba.org/

Create an account and report the bug.
by hortimech
Sat Nov 18, 2017 2:33 pm
Forum: Beginners
Topic: SMB shares went wild
Replies: 9
Views: 722

Re: SMB shares went wild

If you read the Samba smb.conf manpage, you would find this: map to guest (G) · Bad User - Means user logins with an invalid password are rejected, unless the username does not exist, in which case it is treated as a guest login and mapped into the guest account. This means that any unknown user tha...
by hortimech
Fri Nov 17, 2017 3:03 pm
Forum: Beginners
Topic: SMB shares went wild
Replies: 9
Views: 722

Re: SMB shares went wild

Do you really want Samba to run as a Primary Domain Controller (PDC) ? I take it you have created users on your pi, as both normal and Samba users ? At the moment 'movies' & 'tvseries' can only be accessed by users that are unknown to the system, so if you want them to writeable, remove 'guest only ...
by hortimech
Fri Nov 03, 2017 5:29 pm
Forum: Troubleshooting
Topic: [SOLVED] Samba on Stretch from WinXP
Replies: 27
Views: 3006

Re: [SOLVED] Samba on Stretch from WinXP

To make XP use NTLMv2, have a look here: https://www.imss.caltech.edu/node/396
by hortimech
Fri Nov 03, 2017 11:51 am
Forum: Troubleshooting
Topic: [SOLVED] Samba on Stretch from WinXP
Replies: 27
Views: 3006

Re: [SOLVED] Samba on Stretch from WinXP

This changed 12 months ago with the release of Samba 4.5.0. I can count on the fingers of one hand the number of people who have asked about this on the Samba mailing list. All that have asked, have accepted it was a change for the better. You are the only person that will not accept that Samba shou...
by hortimech
Tue Oct 31, 2017 5:59 pm
Forum: Troubleshooting
Topic: [SOLVED] Samba on Stretch from WinXP
Replies: 27
Views: 3006

Re: [SOLVED] Samba on Stretch from WinXP

Look at what happened when it was left up to the sysadmin, anybody remember 'wanacry' ? NTLMv1 is insecure, it is so insecure, you very well might as well just use plain passwords. The change was documented in the Samba release notes. I repeat, if you have to use 'ntlm auth = yes' in your smb.conf, ...
by hortimech
Tue Oct 31, 2017 8:46 am
Forum: Troubleshooting
Topic: [SOLVED] Samba on Stretch from WinXP
Replies: 27
Views: 3006

Re: [SOLVED] Samba on Stretch from WinXP

We changed it for a very good reason, it is insecure. If you have to set this on the Samba server, then find out how to upgrade to NTLMv2 on the client.
by hortimech
Mon Oct 30, 2017 8:55 am
Forum: Troubleshooting
Topic: Help on SAMBA problem
Replies: 6
Views: 494

Re: Help on SAMBA problem

Open a terminal and type: ps ax | grep '[n]mbd' This should produce something like this: 1699 ? Ss 0:31 /usr/sbin/nmbd -D Note: there may be more than one line. Or you could use: ps ax | grep -c '[n]mbd' As long as the output is more than '0', nmbd is running Or you could use: pidof nmbd I could go ...

Go to advanced search