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.
User avatar
lengkong
Posts: 1
Joined: 08 Feb 2010, 18:52
Location: Palembang

password User Samba = password user Linux

Postby lengkong » 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
Posts: 1
Joined: 03 Nov 2009, 17:43

Re: password User Samba = password user Linux

Postby Sudoers » 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
Posts: 13
Joined: 15 Feb 2010, 13:16
Contact:

Re: password User Samba = password user Linux

Postby tox » 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..

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 3 guests