Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Как сменить пароль пользователю linux+samba+winbind???
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
sa10
Apprentice
Apprentice


Joined: 20 Jan 2005
Posts: 251
Location: Minsk

PostPosted: Wed Feb 16, 2005 1:14 pm    Post subject: Как сменить пароль пользователю Reply with quote

Как сменить пароль пользователю?
passwd и smbpasswd выдают ошибки
$ passwd
passwd: Authentication token manipulation error
$ smbpasswd -U xxx
Old SMB password:
New SMB password:
Retype new SMB password:
machine 127.0.0.1 rejected the (anonymous) password change: Error was : No such user.
Failed to change password for xxx

Пользователь на linux+samba работает в домене windows
Аутентификация через winbind
Конфиги

#/etc/pam.d/login
auth required /lib/security/pam_securetty.so
auth required /lib/security/pam_nologin.so
auth sufficient /lib/security/pam_winbind.so
auth required /lib/security/pam_pwdb.so use_first_pass shadow nullok

account required /lib/security/pam_winbind.so

password required /lib/security/pam_winbind.so

session required /lib/security/pam_stack.so service=system-auth
session required /lib/security/pam_mkhomedir.so skel=/etc/skel/ umask=0077
session required /lib/security/pam_pwdb.so
session optional /lib/security/pam_console.so
############
# /etc/nsswitch.conf:
passwd: compat winbind
shadow: compat
group: compat winbind
############
#smb.conf
# Global parameters
[global]
workgroup = XXXXXX
realm = XXXX.XX
security = ads
password server = 172.16.1.6
log level = 3
name resolve order = wins, bcast
winbind uid = 10000-20000
winbind gid = 10000-20000
winbind use default domain = yes
wins server = 172.16.1.2
restrict anonymous = no
domain master = no
preferred master = no
unix charset = KOI8-R
dos charset = CP866
max protocol = NT
ldap ssl = No
server signing = Auto
template shell = /bin/bash

[C$]
comment = Admin Share - C Disk on NTFS volume
path = /mnt/hda1
####
Подозреваю, что нужно копать в /etc/pam.d/chpasswd
Или я вообще неправильно действую?

Может есть у кого рабочая конфигурация или только я один под Linux в виндовс домене сижу?

С уважением, Александр
Back to top
View user's profile Send private message
sa10
Apprentice
Apprentice


Joined: 20 Jan 2005
Posts: 251
Location: Minsk

PostPosted: Thu Feb 17, 2005 7:49 am    Post subject: Reply with quote

Нашел решение!!!
Аутентификация в AD то по kerberos, следовательно и утилиты надо использовать из него.
Короче:
kpasswd xxx@XXXXXX.XX
И вот оно счастье :)
Сразу после этого нашел много интересного на мою тему
https://forums.gentoo.org/viewtopic-t-269809-highlight-kpasswd.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum