[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] How to change own user password



Does this work for non-root users? When I tried something similar in the pass only root could change passwords. It seemed that users could change their own passwds, but they never actually changed. Maybe it was the way smbldap was set up. It thought that a way around this would be to make a script that runs sudo that calls the smbldap passwd script. all users would need sudo rights to run just the script.

On 07/03/2008, John Lucas <mrjohnlucas gmail com> wrote:
ml bortal de wrote:
> Hello List,
>
> how can the users change their own password in a unix shell?
>
> foobar PDC:~$ passwd
> Enter login(LDAP) password:
> New password:
> Re-enter new password:
> LDAP password information update failed: Unknown error
>
> passwd: Permission denied
>


If you are using SMBLDAP then using "smbpasswd" works to change both the
  Unix and Samba passwords stored in LDAP, just make sure that it acts
on the PDC. Assuming the PDC is named "pdchost":

        smbpasswd -r pdchost username

It will prompt for for old and new passwords. You can put it on a GUI
menu with xterm:

        xterm -e "smbpasswd -r pdchost $USER"



--
         "History doesn't repeat itself; at best it rhymes."
                         - Mark Twain

| John Lucas            MrJohnLucas gmail com               |
| St. Thomas, VI 00802  http://mrjohnlucas.googlepages.com/ |
| 18.3°N, 65°W          AST (UTC-4)                         |


_______________________________________________
K12OSN mailing list
K12OSN redhat com
https://www.redhat.com/mailman/listinfo/k12osn
For more info see <http://www.k12os.org>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]