• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Understanding Samba utilities – nmblookup, smbstatus, smbtar, testparm, wbinfo, smbget

By admin

The following list summarizes the command-line utilities included with the Samba packages. Use the ‘which utility‘ command to display the absolute pathname of the command. Include the output as an argument to the ‘rpm –qf‘ command to display which Samba package provides the command.

For Example :

# which smbtree
/bin/smbtree
# rpm -qf /bin/smbtree 
samba-client-4.6.2-12.el7_4.x86_64

The Samba command-line utilities include the following:

  • smbtree: Is a text-based SMB network browser
  • smbclient: Is an FTP-like client to access SMB/CIFS resources on servers
  • smbpasswd: Is used to add or modify a user’s SMB password
  • smbcacls: Modifies Windows ACLs on files and directories shared by a Samba server or a Windows server
  • nmblookup: Is used to query NetBIOS names and map them to IP addresses
  • net: Is a tool for the administration of Samba and remote CIFS servers. It is designed to work like the net utility used for Windows and MS-DOS. The syntax is:
    # net [protocol] [options]

    The [protocol] argument specifies the protocol to use when executing a command. Specify the type of server connection by using ads (Active Directory), rap (Win9x/NT3), or rpc (Windows NT4/2000/2003/2008). If the protocol argument is not specified, net automatically tries to identify it. Use “net –h” for online help and usage examples.

  • rpcclient: Is a tool for executing client-side Microsoft RPCs functions
  • smbcontrol: Sends control messages to running smbd, nmbd, or winbindd daemons
  • smbspool: Sends a print file to an SMB printer
  • smbstatus: Displays the status of current connections to a Samba server
  • smbtar: Backs up and restores Windows-based share files and directories to a local Linux tape archive
  • testparm: Checks the syntax of the /etc/samba/smb.conf file
  • wbinfo: Displays information from the winbindd daemon (The winbindd daemon must be running.)
  • smbcquotas: Manipulates quotas on NT file system (NTFS) SMB file shares
  • smbget: Is a wget-like utility for downloading files over SMB

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Linux, OEL 6, OEL 7

Some more articles you might also be interested in …

  1. How to Remove virbr0 and lxcbr0 Interfaces on CentOS/RHEL 6,7
  2. RHEL 7 – RHCSA Notes : Configure a system to use time services
  3. CentOS / RHEL : How to Install and Configure OpenSSH Server and Client
  4. “Couldn’t authenticate with keytab while discovering which salt to use: hostname: KDC has no support for encryption type” – error while joining domain
  5. How to Use Iperf to Test Network Performance in Linux
  6. CentOS / RHEL : How to add a null route in Linux
  7. pvcreate Fails With Error: “Device /dev/mapper/mpatha Not Found (or Ignored By Filtering).”
  8. What’s the difference between locate and find command in Linux
  9. How to configure NTP server and client in CentOS / RHEL 7
  10. Starting iptables Fails with Error “Another app is currently holding the xtables lock”

You May Also Like

Primary Sidebar

Recent Posts

  • How to disable ACPI in CentOS/RHEL 7
  • How to Use real-time query to access data on a physical standby database
  • CentOS/RHEL 8: “ACPI MEMORY OR I/O RESET_REG” Server Hung after reboot
  • How to Create a Physical Standby Database by Using SQL and RMAN Commands
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary