1) Why we use SAMBA server?
Ans:- with the help of samba server we can share the files and printers over Linux to Linux systems as well as Linux to windows systems.
2) On which port SAMBA server work?
Ans:- 137 for NETBIOS name service
138 for NETBIOS datagram service
139 for NETBIOS session service
3) Which package we used to configure SAMBA server?
Ans:- samba , smb-client at server side and cifs-utils at client side.
4) What is the main configuration file for SAMBA server?
Ans:- /etc/samba/smb.conf
5) How to restart the service of SAMBA server in Linux?
Ans:- service smb restart (in RHEL-6)
systemctl restart smb nmb (in RHEL-7)
6) How to enable the service of SAMBA server in Linux?
Ans:- service smb enable (in RHEL-6)
systemctl enable smb nmb (in RHEL-7)
7) What is SMB?
Ans:- SMB stands for Server Massage Block , it is the standard file-sharing protocol for Microsoft windows servers and clients.
8) you have to share a file with samba what will you do?
Ans:- 1st-install SAMBA package
2nd-prepare the permissions on the directory to be shared
3rd-configure /etc/samba/smb.conf
4th-start samba services
5th-open firewall
6th-verify that the share can be mounted from a client.
8) Main configuration file of samba divide into multiple section, which are they?
Ans:- Global section, Home section , Printers section.
9) Explain writable=yes and valid users parameters in smb.conf file?
Ans:- writable=yes,
-> should be set if all authenticated users should have read-write access to the share.
Valid-users = list of users,
-> specifies a list of those users who you want to permit for access.
10) Explain “force user” parameter used in smb.conf?
Ans:- It will define the user id to be used for all file access.
11) What are the SAMBA server Types?
Ans:- 1st Primary Domain Controller (PDC) 2nd Backup Domain Controller (BDC) 3rd ADS Domain Controller.
12) Does Samba support PAM?
Ans:-YES
13) What is role of “NTLM”?
Ans:- NTLM is a authentication protocol available to Windows clients and servers for validating connection requests.
14) Which protocol SAMBA server uses ?
Ans:- SMB, which stands for Server Message Block, is a protocol for sharing files, printers, serial ports, and communications between computers.
15) Explain global section ,home section and printer section in smb.conf file?
Ans:- global->the global section defines the basic configuration of the samba server.
Home->providing home directory for all users.
Printer->exporting all printers on the host via CIFS.
16) How can you verify that there are no errors in smb.conf file?
Ans:- By using testparm command.
17) What is the use of smbclient command?
Ans:- smbclient is use to displays the list of shares on your server and you can connect with samba share.
smbclient <server-ip/hostname> <samba share> -U <username>
18) Explain smbstatus command?
Ans:- smbstatus command displays information about connected users and currently locked files.
19) Can samba be a member of more than one workgroup at the same time?
Ans:-NO
20) What is SWAT?
Ans:-SWAT is GUI based administration tool for samba server.
21) On which port no SWAT is work?
Ans:-901
22) What is nmbd daemon?
Ans:-nmbd handles all UDP based protocols. It provides NetBIOS name serving and browsing support.
23) What is smbd?
Ans:-smbd handles all tcp/ip based connection services for files and printers.
24) What is CIFS?
Ans:- CIFS (common internet file system) is a protocol used to provide share access to files , printers and miscellaneous communication between nodes on a network.
25) Explain smbpasswd command?
Ans:- smbpasswd command allows user to change the password used for their SMB session.
26) what is workgroup in samba?
Ans;- Workgroup is used to specify the windows workgroup for the server.
27) Directory sharing options in samba?
Ans:-
path= must be set to indicate which directory to share;
for example:- path=/grras
Valid users= ‘name of the users who can access the share’
For example:- valid users=abhilash
Public= ‘specify whether guest user can access the share or not’
For example:- public=no
Writable=yes ‘should be set if all authenticated users should have read-write access to the
share. The default setting is writable=no’
Foe example:- writable=yes
Browseable=yes ‘specify whether the directory should be viewable or not’
For example:- browseable=yes
Write list= list of users or group ‘Any share can have a list of users who can write to the share, no matter what the writable= or read list= option say’
For example:- write list=abhi, @funters
Host allow= ‘governs which hosts or subnets can access a share. If this option is used in
[global] section, it becomes default for all shared’
For example:- hosts allow=127. 172.25.0
This will allow only networks 172.25.0.0 to access samba server including localhost.
28) Which SELinux security context is used for SAMBA share?
Ans:- samba_share_t
29) A directory named /funters is shared by samba Server with share name pandav having ip- address 172.25.5.5 and i want to add this samba share to client /etc/fstab file. How you will add this entry in /etc/fstab file?
Ans:-
#vim /etc/fstab
device mount-point fs-type options dump fsck-order
//172.25.5.5/pandav /mnt cifs defaults 0 0
Comments