Wednesday, September 30, 2015

SAMBA Q & A PAGE - 1

               SAMBA INTERVIEW QUESTIONS AND ANSWERS 

                                            PAGE - 1



1..What is Samba?
Samba is a suite of Unix applications that speak the SMB (Server Message Block) protocol. Many operating systems, including Windows and OS/2, use SMB to perform client-server networking. By supporting this protocol, Samba allows Unix servers to get in on the action, communicating with the same networking protocol as Microsoft Windows products.

2..What is SWAT?
Samba Web Administration Tool (SWAT) is used to simplify administration and configuration of Samba

3..How to prevent the  browsing?
You can restrict a share from being in a browse list by using the browseable option. This boolean option prevents a share from being seen in the Network Neighborhood at all. For example, to prevent the[data] share from the previous chapter from being visible, we could write:

[data]
            path = /home/samba/data
            browseable = no
            guest ok = yes
            comment = Data Drive
            volume = Sample-Data-Drive
            writeable = yes

4..What is the use of  samba?
You don't want to pay for - or can't afford - a full-fledged Windows NT server, yet you still need the functionality that one provides.
You want to provide a common area for data or user directories in order to transition from a Windows server to a linux one, or vice versa.
You want to be able to share printers across both Windows and linux workstations.
You want to be able to access NT files from a linux server.

5..How Can I Get Samba?
Samba is available in both binary and source format from a set of mirror sites across the Internet. The primary home site for Samba is located at http://www.samba.org/.

6..How  to install samba?
#    yum -y install samba


7..What are the SAMBA server Types ?
 Primary Domain Controller (PDC)
 Backup Domain Controller (BDC)
 ADS Domain Controller

8..How  to find out the users  currently locked to the files?
 # smbstatus

9..What is the use of "smbclient" command?
"smbclient" is used to display the list of shares on your server.
 smbclient -L localhost –N

10..How to take the print   from  window to shared printer  in linux server?

vi /etc/samba/smb.conf [global]
netbios name=station? workgroup = mygroup
server string=Share from Linux Server security=user
smb passwd file=/etc/samba/smbpasswd encrypt passwords=yes
[data]
path=/data
writable=yes
public=no
browsable=yes
valid users=user1 user2

smbpasswd –a user1

smbpasswd –a user2
service smb start | restart
chkconfig smb on

Samba servers helps to share the data between linux and windows. Configuration file is /etc/samba/smb.conf. There are some pre-defined section, i. global -> use to define the global options, ii. Printers -> use to share the printers, iii. homes - > use the share the user’s home directory.
/etc/printcap/  file containts all installed printer name 

No comments: