Skip to content

SAMBA on QNAP

To understand what going on with you samba connection, you could use smbstatus. But this command is not available in path on QNAP systems.

It is located in /usr/local/samba/bin/:

/usr/local/samba/bin/smbstatus

smbstatus is a very simple program to list the current Samba connections.

Usage: [OPTION...]
  -p, --processes                    Show processes only
  -v, --verbose                      Be verbose
  -L, --locks                        Show locks only
  -S, --shares                       Show shares only
  -N, --notify                       Show notifies
  -u, --user=STRING                  Switch to user
  -b, --brief                        Be brief
  -P, --profile                      Do profiling
  -R, --profile-rates                Show call rates
  -B, --byterange                    Include byte range locks
  -n, --numeric                      Numeric uid/gid
  -f, --fast                         Skip checks if processes still exist

Help options:
  -?, --help                         Show this help message
      --usage                        Display brief usage message

Common samba options:
  -d, --debuglevel=DEBUGLEVEL        Set debug level
  -s, --configfile=CONFIGFILE        Use alternate configuration file
  -l, --log-basename=LOGFILEBASE     Base name for log files
  -V, --version                      Print version
      --option=name=value            Set smb.conf option from command line

Samples:

/usr/local/samba/bin/smbstatus -L # Show locks only
/usr/local/samba/bin/smbstatus -p # Show processes only