Samba
09/10/2009 01:09Samba is the SMB protocol implementation of the protocol used by the operating system such as MS Windows MS to sharing files and printers. With SMB you can access the files & printers shared by a Windows computer or to share files & printers on your linux computer.
Share access with smbclient
smbclient allows for accessing other computers share with the interface such as ftp.
Syntaxnya are:
smbclient service [options]
Where service formed / / computer's name / namashare eg / / ntserver / cdrom. For example we want to access the cdrom directory contents of our computers and running ntserver
[zakaria@linux zakaria]$ smbclient "//itcom2/my documents" Password: smb: \>
-U username Connection with another user name from username linux -W workgroup Connection with the other workgroup name than the settings in / etc / smb.conf -n NetBios_Name Connection with a different host name with the computer host name -I IP address Connection to a specific host with the IP. Very useful if Samba does not work to resolve host names on purpose.
In addition it has fuction for ftp that mean can share Windows smbclient can also display a list of directories shared by a computer in a way:
smbclient -L computer_name
Mounting Share with smbmount
Another way to access the share is to mount the remote share to a directory using smbmount. Once mounted you can access your shsre such as access to common directories. Like mount, smbmount must be run by root.
the syntax is:
smbmount service mountpoint [-o options]
Where service in the form / /computer_name / share_name eg / / ntserver / cdrom and mountpoint is the directory that will be mounted. Parameters of his options in the form keyword = value and separated by commas for each parameter.
Where option is often used is:
username = user
- Connection with another user name from username linux (root)
netbiosname = name
- Connection by using a different host name with the computer host name
workgroup = name
- Connection with the workgroup name other than that in the settings in / etc / smb.conf
ip = 1.2.3.4
- Connection to a particular host with a specific IP such as 1.2.3.4. Very useful if Samba does not work to resolve host names on purpose.
EXAMPLE [root@linux /root]# smbmount "//itcom2/my documents" /mnt/net/itcom2 -o netbiosname=linux Password:
SOURCE
Tags:
———
BackTopic: Samba
No comments found.