password User Samba = password user Linux

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
Post Reply
User avatar
lengkong

password User Samba = password user Linux

Post 08 Feb 2010, 19:55

Dear Bro,

Mohon bantuannya, gimana caranya agar password user sama dengan password user samba. Maksudnya begini pada saat user mengubah passwordnya "passwd user" , maka secara otomatis password user sambanya juga berubah mengikuti password user linuxnya tanpa harus mengetikkan perintah smbpasswd -a user.


Thanks atas bantuannya Bro,

Salam Kenal


User avatar
Sudoers
Site Admin

Post 10 Feb 2010, 10:09

Ta coba bantu bro..

Buat bash script yang isinya change password user bersangkutan.
Klo mo default system kecil kemungkinan, ato solusi lain pake sistem database user terpusat.

LDAP munkin bisa menyelesaikan buat anda.


User avatar
tox
Contact:

Post 15 Feb 2010, 23:50

coba baca manual smb.conf, dan cari sesi passwd chat (/passwd chat) n untuk next.

Code: Select all

[ubu: ~ ]$ man smb.conf

passwd chat (G)

           This string controls the "chat" conversation that takes places between smbd(8) and the local password
           changing program to change the user�s password. The string describes a sequence of response-receive pairs
           that smbd(8) uses to determine what to send to the passwd program and what to expect back. If the expected
           output is not received then the password is not changed.
semoga membantu..


Post Reply

Who is online

Users browsing this forum: No registered users and 99 guests