LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 12-12-2014, 02:38 PM   #1
Adecypher
LQ Newbie
 
Registered: Dec 2014
Posts: 1

Rep: Reputation: Disabled
Changing Samba password from Windows Client


I am a newbie so please bear with me...I am administering windows 7 based desktop machines which all uses Linux File shares. The problem is some of the users forgot the password they used to connect to the mapped file share and I am tasked to reset their password.

I used the following command but did not find the passwords or usernames their to change or update

Sudo gedit /etc/passwd


If possible please provide step by step instructions.


Thanks
 
Old 12-13-2014, 01:02 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,339

Rep: Reputation: Disabled
First of all, there are no passwords in /etc/passwd. They were moved to the secure /etc/shadow file a long time ago.

Second, you do not edit the password file directly. The passwords are stored as hashes, and unless you know how to compute an MD5 or SHA1 hash in your head, you'll need to use passwd.

Third, using passwd isn't going to work for Windows clients accessing Samba shares. The hash algorithm used by Windows is incompatible with the one used on Linux systems, so Samba actually stores a separate hash for Windows clients. This hash is stored in a database file, and you can change the password (and update the hash) with the smbpasswd command.

Finally, all this assumes you're running Samba in standalone mode and not as an Active Directory Domain Controller. If Samba is a DC, all the above is moot since the AD users do not exist in the local Linux user database. You will then need to use samba-tool user setpassword <username> instead.
 
1 members found this post helpful.
  


Reply



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
howto change samba password remotely from a windows client? yafrank Linux - Networking 8 08-04-2013 12:16 PM
Changing Unix/Samba password from Windows Client gtrrockz84 Linux - Software 9 03-30-2012 11:39 AM
Samba Openldap PDC can not change password from Windows XP client huynguyen Linux - Server 2 01-04-2012 12:44 AM
Samba -> password input field on windows client cccc Linux - Networking 2 11-28-2009 04:25 PM
After changing Windows AD password Samba\Winbind still uses old password Criller Linux - Security 2 02-28-2008 04:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 11:04 PM.

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