Monday 26 October 2009

samba, nmbd, NT_ error

SMB (server message block)
Is the protocol that can be used for file sharing / transport between computer.

CIFS (in windows) is basically SMB on windows.

NMBd is daemon for NetBIOS machine. In windows it is a "computer browser" service and NMB.

Computer browser service is responsible for updating the table for Netbios name of all machines and elect primary/master netbios server. This master server will be the number 1 priority of netbios client to get the updated table.

Command to see the list of all netbios machine in workgroup:
net view

This table can be completed with additional manually addes netbios name in lmhosts file of a netbios client.

NetBIOS
is protocol that was used for communication between PC's in a network.
It is using broadcast method and NetBIOS name in a "workgroup".
Workgroup is basically a group of computers in same "broadcast".
"broadcast" scope is basically a VLAN.

So if you have subnet mask 255.255.255.0 and your ip is for example between 172.16.3.1-254.
then your broadcast ip is 172.16.3.255.

You can try to ping that ip, which means it will broadcast ping to every pc's which has ip 172.16.3.1-254, the first one who response will reply our ping packet.

In linux you can try ping -b (broadcast option).


To start smb (samba):
sudo /etc/init.d/samba start


To test samba/smb.conf file:
testparm


To see what is shared in a pc:
smbclient -L pc -U username


To get to smb CLI, to get/put file(s):
smbclient //servername/sharedfodler/


If you get this:
Error NT_STATUS_CONNECTION_REFUSED => you must start the samba

NT_STATUS_LOGON_FAILURE => make sure you put username/password correctly
You can try this command:
sudo smbpasswd -a usertest
To add a new user for samba.


Yes, you are correct, samba user and unix OS are different.
However, by change some setting you can make smb to use pam_unix_os, so it will use username in OS.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>



SMB (server message block)
Adalah protokol yang dapat digunakan untuk file sharing / transportasi antara komputer.

CIFS (di jendela) pada dasarnya SMB di jendela.

NetBIOS
adalah protokol yang digunakan untuk komunikasi antar PC dalam sebuah jaringan.
Hal ini menggunakan metode penyiaran dan nama NetBIOS dalam "workgroup".
Workgroup pada dasarnya adalah sekelompok komputer di sama "siaran".
"siaran" ruang lingkup pada dasarnya adalah sebuah VLAN.

Jadi jika Anda memiliki subnet mask 255.255.255.0 dan ip adalah misalnya antara 172.16.3.1-254.
maka ip broadcast anda adalah 172.16.3.255.

Anda dapat mencoba untuk melakukan ping ke ip itu, yang berarti akan disiarkan ping ke setiap pc's yang memiliki ip 172.16.3.1-254, orang pertama yang respons akan menjawab paket ping kita.

Dalam linux Anda dapat mencoba ping-b (siaran pilihan).


Untuk memulai smb (samba):
sudo / etc / init.d / samba start


Untuk menguji samba / smb.conf file:
testparm


Untuk melihat apa yang dipakai bersama-sama dalam sebuah pc:
smbclient-L pc-U username


Untuk mencapai seseorang CLI, untuk mendapatkan / meletakkan file (s):
smbclient / / namaserver / sharedfodler /


Jika Anda mendapatkan ini:
Error NT_STATUS_CONNECTION_REFUSED => Anda harus memulai samba

NT_STATUS_LOGON_FAILURE => pastikan Anda memasukkan username / password benar
Anda dapat mencoba perintah ini:
sudo smbpasswd-a usertest
Untuk menambahkan pengguna baru untuk samba.


Ya, Anda benar, user dan unix samba OS adalah berbeda.
Namun, dengan mengubah beberapa pengaturan yang dapat membuat seseorang untuk menggunakan pam_unix_os, sehingga akan menggunakan username di OS.

No comments:

Post a Comment