LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-10-2008, 01:22 AM   #1
darknight1726
LQ Newbie
 
Registered: Apr 2008
Posts: 9

Rep: Reputation: 0
How to Change Password of Domain User on Ubuntu Box


Hi to All,

I have created a Linux Box (Ubuntu) where domain users of Active Directory can log in. I have successfully login the domain accounts and I'm trying to change password of a domain user.

DOMAIN\admin@sampledesktop:~$ passwd
passwd: User not known to the underlying authentication module
passwd: password unchanged

Please see below some PAM config.

/etc/pam.d/common-password:
password requisite pam_unix.so nullok obscure md5
password required pam_smbpass.so nullok use_authtok try_first_pass

/etc/pam.d/common-auth:
auth required /lib/security/pam_env.so
auth sufficient /lib/security/pam_unix.so likeauth nullok
auth sufficient /lib/security/pam_winbind.so use_first_pass
auth required /lib/security/pam_deny.so

account required /lib/security/pam_unix.so broken_shadow
account sufficient /lib/security/pam_localuser.so
account sufficient /lib/security/pam_succeed_if.so uid < 100 quiet
account [default=bad success=ok user_unknown=ignore] /lib/security/pam_winbind.so
account required /lib/security/pam_permit.so

password requisite /lib/security/pam_passwdqc.so retry=3
password sufficient /lib/security/pam_unix.so nullok use_authtok md5 shadow
password sufficient /lib/security/pam_winbind.so use_authtok
password required /lib/security/pam_deny.so
session required /lib/security/pam_limits.so
session required /lib/security/pam_unix.so

auth optional /lib/security/pam_smbpass.so migrate

I'm hoping someone can help me to find a solution to thing.

That's all.
 
Old 06-10-2008, 07:14 AM   #2
Duck2006
Member
 
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
sudo passwd (user name)
 
Old 06-11-2008, 03:38 AM   #3
darknight1726
LQ Newbie
 
Registered: Apr 2008
Posts: 9

Original Poster
Rep: Reputation: 0
A, ok thanks. However, I've encountered some problems on using sudo for domain users. Although I've inserted the domain group on visudo, system return a message, not in the sudoer file. Before this, I also have error on listing domain user / group (wbinfo -u /-g), saying error listing on domain users /groups.

Is it a prerequisite to have a successful listing of domain user /group although it's successful to connect on domain users on my ubuntu desktop? or it just a wrong contents on /etc/pam.d/sudo?

/etc/pam.d/sudo entries:
auth sufficient pam_winbind.so
auth sufficient pam_unix.so nullok_secure use_first_pass
auth required pam_deny.so
@include common-account


I hope you could help me with this. Thanks.
 
  


Reply


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
samba(global security=user) useful tools for client.ex: user change password. hocheetiong Linux - Newbie 1 03-18-2008 09:20 AM
change samba domain password success2be Linux - Networking 1 10-21-2006 01:14 AM
Help! Cannot Add a User to User Manager or Change Root Password lennysokol Linux - General 2 06-25-2005 09:59 AM
what is the command to make a user change their password after creating a new user? naweenio Linux - Newbie 7 01-05-2005 07:07 AM
Change user@host.domain to user@domain Wynand1 Linux - Networking 7 09-13-2004 11:56 PM


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