LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-24-2012, 10:28 PM   #1
gtrrockz84
Member
 
Registered: Dec 2011
Posts: 50

Rep: Reputation: Disabled
Changing Unix/Samba password from Windows Client


Hi,
I was curious if anyone knew how to change samba password from windows client instead of changing passwords in the ubuntu machine?

Is there a way if i change my windows log in password the samba password will also automatically change or the windows client can somehow change the samba password instead of doing it from the ubuntu machine.

Thanks.
 
Old 03-26-2012, 09:09 AM   #2
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,142

Rep: Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363
Is this what you are looking for?
http://help.lockergnome.com/linux/Sa...ict551415.html
 
Old 03-26-2012, 09:56 AM   #3
gtrrockz84
Member
 
Registered: Dec 2011
Posts: 50

Original Poster
Rep: Reputation: Disabled
Thanks. Im just curious, when I looked it up it said change username to servername/user. If i do that then I can still access my desktop and local hard drive as usual yes? Or I would only start seeing the ubuntu machine with me logged into it?

Also should I be logged into the ubuntu machine before I do the change password?

thanks for the help!
 
Old 03-26-2012, 11:26 AM   #4
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,142

Rep: Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363
as far as I know when you enter server/user (or server\user) windows will try to contact server and will try to change user on that server, so your local (windows) account will not be affected. You should not logged into ubuntu to be able to change your password. Your ubuntu machine (the shares) will be seen depending on the samba configuration and the mapped network drive status.
If I remember well windows can remember one password, so sometimes it can send your windows password to the samba server for authentication and you can therefore automatically map the samba drive (in case the two passwords are the same).
Hope this helps.
 
Old 03-27-2012, 02:59 PM   #5
gtrrockz84
Member
 
Registered: Dec 2011
Posts: 50

Original Poster
Rep: Reputation: Disabled
Thanks Pan. I did some tests and found out that whatever username and password i put in smbpasswd thats what i have to use through windows client. example
if i have windows computer (computer name: COMP) with username: ABC and passwd: 123 and if i save in smbpasswd username: DEF and passwd: 456. I can go to computer COMP and instead of putting ABC and 123, i put DEF and 456 and i was able to log in.

So windows username and passwd is meaningless because whatever i save in smbpasswd is whats taken. Is it true?
 
Old 03-28-2012, 01:48 AM   #6
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,142

Rep: Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363
It depends on the configuration. In a domain environment you will have only one user/pw for all resources, so yes, you will be able to login to windows and mount samba drives with the same user/pw. The samba server can act also as a domain controller (and a windows server can do it also). This should be configured and not only the users but the machines must join to the domain.
From the other side it can work without domains as individual hosts and local authentication. In that case you will have different user/pw on windows and samba server (they may or may not be identical). Windows can remember the user/pw entered at login and can send it to authenticate the current user to access a remote site's share.
You can use smbpasswd or windows to change password in a domain environment, that should do the same. Also you may change the samba passwd from windows or windows pw from samba (without domain), but those remain two different accounts.

Would be better if you can show us the samba config file and the commands what you have executed...
 
Old 03-29-2012, 06:05 PM   #7
gtrrockz84
Member
 
Registered: Dec 2011
Posts: 50

Original Poster
Rep: Reputation: Disabled
Here's my smb file

Code:
[global]
	server string = %h server (Samba, Ubuntu)
	security = USER
	pam password change = Yes
	passwd program = /usr/bin/passwd %u
	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
	username map = /etc/samba/smbusers
	unix password sync = Yes
	syslog = 0
	log file = /var/log/samba/log.%m
	max log size = 1000
	dns proxy = No
	usershare allow guests = Yes
	panic action = /usr/share/samba/panic-action %d

[printers]
	comment = All Printers
	path = /var/spool/samba
	create mask = 0700
	guest ok = Yes
	printable = Yes
	browseable = No

[print$]
	comment = Printer Drivers
	path = /var/lib/samba/printers
	guest ok = Yes

[Projects]
	path = /media/P-drive/Projects
	read only = No
	create mask = 0777
	directory mask = 0777
	guest ok = Yes
 
Old 03-29-2012, 06:16 PM   #8
gtrrockz84
Member
 
Registered: Dec 2011
Posts: 50

Original Poster
Rep: Reputation: Disabled
My goal is this:
Windows user can access ubuntu box from windows machine and change there password to whatever they want. That way i dont have to know their passwords.

What should my configuration be to achieve this?

Note that these users don't have any home directories in ubuntu. It has just one home directory for admin. The ubuntu box has an additional internal drive that is used for file sharing. So i prefer the users to access this internal drive (which is mapped in network) after logging in with username and password and i want to give them the flexibility to change their password to log into ubuntu anytime they want from their windows machine.

Thanks.
 
Old 03-30-2012, 04:02 AM   #9
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,142

Rep: Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363Reputation: 1363
As far as I know samba sharing with "security = user" requires user homes.
 
Old 03-30-2012, 12:39 PM   #10
gtrrockz84
Member
 
Registered: Dec 2011
Posts: 50

Original Poster
Rep: Reputation: Disabled
i created users without homes. I created unix username, then the same username was created on samba.
 
  


Reply

Tags
passwords


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


All times are GMT -5. The time now is 07:57 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration