Author Topic: Samba Users and Groups  (Read 24964 times)

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2288
  • Karma: +176/-0
    • View Profile
Re: Samba Users and Groups
« Reply #15 on: January 21, 2024, 05:43:27 am »
Try adding your users with smbpasswd

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1073
  • Karma: +27/-0
    • View Profile
    • Blonde Guy
Re: Samba Users and Groups
« Reply #16 on: January 21, 2024, 05:54:06 pm »
I created the users with smbpasswd.exe, and now the server generates traps on startup. I zipped all the log files and trap files.
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2288
  • Karma: +176/-0
    • View Profile
Re: Samba Users and Groups
« Reply #17 on: January 21, 2024, 08:55:01 pm »
The Traps all look the same, a failed assertion in pwrite in lunch... Weird... I'm assuming libcx is up to date?

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1073
  • Karma: +27/-0
    • View Profile
    • Blonde Guy
Re: Samba Users and Groups
« Reply #18 on: January 21, 2024, 10:50:26 pm »
libcx is up to date as far as netlabs-rel is concerned. 0.7.3-1 is the version number.
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2288
  • Karma: +176/-0
    • View Profile
Re: Samba Users and Groups
« Reply #19 on: January 22, 2024, 03:21:00 am »
libcx is up to date as far as netlabs-rel is concerned. 0.7.3-1 is the version number.
How are you starting smbd? Using the WPS objects from Samba 3.x?

If so, what if you start smbd.exe from the command line? Can you connect then?

If LIBPATHSTRICT or anything like that being set anywhere?

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1073
  • Karma: +27/-0
    • View Profile
    • Blonde Guy
Re: Samba Users and Groups
« Reply #20 on: January 22, 2024, 03:48:13 pm »
I'm starting the servers with the following command line:

smb.cmd start

I have not set libpathstrict. I'm attaching a testlog to this post in case that helps.

I started samba to check things on this post, and it did not generate any traps, but it also did not allow any client to connect. Browsing doesn't work, either. Samba creates logs in response to these actions, but the logs are zero length.
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2288
  • Karma: +176/-0
    • View Profile
Re: Samba Users and Groups
« Reply #21 on: January 22, 2024, 09:08:33 pm »
I'm starting the servers with the following command line:

smb.cmd start

I have not set libpathstrict. I'm attaching a testlog to this post in case that helps.

I started samba to check things on this post, and it did not generate any traps, but it also did not allow any client to connect. Browsing doesn't work, either. Samba creates logs in response to these actions, but the logs are zero length.

The default loglevel is low :) so doesn't produce many entries.

Can you try starting with:
smbd -d 8
then try to connect, then close  smbd - and send me a copy of \var\log\log.smbd*

Thanks,

Paul

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1073
  • Karma: +27/-0
    • View Profile
    • Blonde Guy
Re: Samba Users and Groups
« Reply #22 on: January 23, 2024, 03:53:45 am »
These are the logs from smbd -d 8, but they were in \mptn\etc\samba\log\smbd*
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2288
  • Karma: +176/-0
    • View Profile
Re: Samba Users and Groups
« Reply #23 on: January 23, 2024, 07:29:46 am »
A few things of note from the logs:
Code: [Select]
[2024/01/22 18:46:52.954000,  2] ../../libcli/auth/ntlm_check.c:480(ntlm_password_check)
  ntlm_password_check: NTLMv1 passwords NOT PERMITTED for user Warp30
[2024/01/22 18:46:52.954000,  3] ../../libcli/auth/ntlm_check.c:487(ntlm_password_check)
  ntlm_password_check: NEITHER LanMan nor NT password supplied for user Warp30

Code: [Select]
[2024/01/22 18:46:52.958000,  5] ../../source3/auth/auth.c:265(auth_check_ntlm_password)
  auth_check_ntlm_password: sam_ignoredomain authentication for user [Warp30] FAILED with error NT_STATUS_WRONG_PASSWORD, authoritative=1
[2024/01/22 18:46:52.958000,  2] ../../source3/auth/auth.c:353(auth_check_ntlm_password)
  check_ntlm_password:  Authentication for user [Warp30] -> [Warp30] FAILED with error NT_STATUS_WRONG_PASSWORD, authoritative=1

So seems to be some kind of password mismatch.  Try resetting password with smbpasswd

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1073
  • Karma: +27/-0
    • View Profile
    • Blonde Guy
Re: Samba Users and Groups
« Reply #24 on: January 24, 2024, 09:06:53 pm »
While I have found how to get users and groups to work for Samba3, I noted that smbpasswd.exe was broken.

In Samba4, I'm getting some messages, but at least it does not crash.

Code: [Select]
{0}[f:\programs\samba] smbpasswd -a Warp40
Unknown parameter encountered: "display charset"
Ignoring unknown parameter "display charset"
lpcfg_do_global_parameter: WARNING: The "null passwords" option is deprecated
New SMB password:
Retype new SMB password:
sh.exe: 1: F:Programssambausermod.cmd: not found
Failed to add entry for user Warp40.

Perhaps something in smb.conf is interpreted differently than in Samba3?
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2288
  • Karma: +176/-0
    • View Profile
Re: Samba Users and Groups
« Reply #25 on: January 25, 2024, 09:24:22 am »
I don't understand how:
Code: [Select]
sh.exe: 1: F:Programssambausermod.cmd: not foundis being called if my smbpasswd  is being used?

You are running smbpasswd.exe directly from a command line, or via the WPS objects from AOS?

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1073
  • Karma: +27/-0
    • View Profile
    • Blonde Guy
Re: Samba Users and Groups
« Reply #26 on: January 25, 2024, 05:12:02 pm »
In my smb.conf, which was generated by SSCC from Samba3, there are several instances of F:\Programs\samba\usermod.cmd

I'm calling from command line. The WPS objects don't currently function well. Command line is easier for me to post.

And it's worth saying -- thanks for looking at this.
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2288
  • Karma: +176/-0
    • View Profile
Re: Samba Users and Groups
« Reply #27 on: January 25, 2024, 10:34:48 pm »
Can you try changing the \ to a /
ie F:/Programs/samba/usermod.cmd

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1073
  • Karma: +27/-0
    • View Profile
    • Blonde Guy
Re: Samba Users and Groups
« Reply #28 on: January 27, 2024, 08:13:39 pm »
With the various command files changed to forward slashes "/" in smb.conf, smbpasawd is now running once, then after that trapping.

After a few times trapping, smbpasswd ran without trapping, but smb, nmb and winbind all crash when started.



Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2288
  • Karma: +176/-0
    • View Profile
Re: Samba Users and Groups
« Reply #29 on: January 28, 2024, 07:27:26 am »
Can you try removing ALL  old tdb and lock files before trying to restart things?