LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-24-2019, 05:06 PM   #1
Gew
LQ Newbie
 
Registered: Nov 2009
Location: Kingston, Jamaica.
Posts: 18

Rep: Reputation: 6
Question Using "smbpasswd" (Samba) to change Windows passwords over LAN


Hi!

I've tried and tried, but can't seem to get this to work. I have a Raspberry Pi as a small home server, and also a couple of Windows machines. I want to be able to change account passwords on the Windows machines from the Raspberry. If I run "smbpasswd -r HOSTNAME -U windowsaccountusername" a text field where I get to type old password (followed by new password) appears. So far, so good. And I am able to change password on any of the administrator users on the Windows machine in question, but when I try the command on a user with normal privileges, I get to enter old and new password, but then I get this error message:

Code:
SAMR connection to machine NT_STATUS_ACCESS_DENIED failed. Error was HOSTNAME, but LANMAN password changes are disabled
I've searched the web for solutions but to no avail. The Windows machines all run Windows 10, and the Raspberry is running Samba 3.6. I've read some suggestions about putting "ntlm auth = yes" as well as "lanman auth = yes" in the smb.conf, which I tried, of course followed by a "service samba restart", but I still get that stupid error message when I try to change password on non-admin users. Sigh.

Please, could someone with better experience point me in the right direction?
 
Old 01-27-2019, 03:19 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,130

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
Can you post your working smb.conf? That might help others to advise further.

Last edited by ferrari; 01-27-2019 at 03:24 PM.
 
Old 01-27-2019, 03:53 PM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,130

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
You might need to check the local security policy > security options of the affected Windows hosts. Making remote account changes may be inhibited.
 
Old 04-10-2020, 03:26 AM   #4
WoTi
LQ Newbie
 
Registered: Apr 2020
Location: Assen
Posts: 1

Rep: Reputation: Disabled
Arrow change smb password on Linux smbserver

Maybe you can trie with Putty on the machine that is running the smbserver:
sudo smbpasswd -L username

Last edited by WoTi; 04-10-2020 at 03:28 AM.
 
Old 04-10-2020, 05:09 AM   #5
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,130

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
The OP is long gone. A waste of time posting to such a thread IMO.
 
  


Reply

Tags
smbpasswd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No /etc/samba/smbpasswd file and /etc/samba/smbusers file is not being update yaron.kadem Linux - Server 1 01-23-2012 09:07 AM
adding users using smbpasswd, or synchronise passwd/smbpasswd gyodai Linux - Networking 2 03-11-2009 03:47 PM
smbpasswd won't create new passwords demerson3 Linux - Networking 0 02-13-2005 09:02 PM
smbpasswd -a ... smbpasswd: Command not found Lleb_KCir Linux - Software 7 08-11-2004 12:27 PM
Is there a way to sync Samba passwords with linux user passwords MarleyGPN Linux - Networking 2 09-09-2003 11:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration