Page 1 of 1

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!

QNAP - SSH: How to ...
Clear all

QNAP - SSH: How to get the base path of your shares and other info

1 Posts
1 Users
Famed Member Admin
Joined: 10 years ago
Posts: 2549
Topic starter  

The following command's can help you retrieve some important information from the command-line (SSH):

Firmware version:

echo "Firmware: $(getcfg system version) Build $(getcfg system 'Build Number')"

Example output:

Firmware: 4.2.0 Build 20150925

Base path of your shares:

echo "Base Directory: $(dirname $(getcfg -f /etc/config/smb.conf Public path))"

Example output:

Base Directory: /share/MD0_DATA

Installed QPKG's and related info:

cat /etc/config/qpkg.conf

Partial example output:

Version = 4.8.0
Enable = FALSE
QPKG_File = MusicStation.qpkg
Date = 2015-09-25
Shell = /etc/init.d/ musicstation
Install_Path = /share/MD0_DATA/.qpkg/musicstation
WebUI = /musicstation/
Author = QNAP Systems, Inc.
Sys_App = 1
Name = MusicStation
Display_Name = Music Station
Desktop = 1
Class = null
Status = complete
RC_Number = 100
Web_Port = -1
Build = 20141229
... [phpMyAdmin]
Name = phpMyAdmin
Class = null
Status = complete
Version =
Author = QNAP Systems, Inc.
QPKG_File = phpMyAdmin.qpkg
Date = 2014-07-11
Shell = /share/MD0_DATA/.qpkg/phpMyAdmin/
Install_Path = /share/MD0_DATA/.qpkg/phpMyAdmin
WebUI = /phpMyAdmin
RC_Number = 101
Enable = TRUE

SMB Shares

testparm -s -l --section-name=Public --parameter-name=path >/dev/null

Partial example output:

Load smb config files from /etc/config/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "null passwords" option is deprecated
Processing section "[Recordings]"
Processing section "[Usb]"
Processing section "[Public]"
Processing section "[Network Recycle Bin 1]"
Processing section "[Documents]"
Processing section "[Applications]"
Processing section "[Development]" ...

Source: QNAP Forum post by PWilson


Like what you see and you'd like to help out? 

The best way to help is of course by assisting others with their questions here in the forum, but you can also help us out in other ways:

- Do your shopping at Amazon, it will not cost you anything extra but may generate a small commission for us,
- send a cup of coffee through PayPal ($5, $10, $20, or custom amount),
- become a Patreon,
- donate BitCoin (BTC), or BitCoinCash (BCH).