Qnap TS-212P user's folder

Introduce yourself to us and other members here, or share your own product reviews, suggestions, and tips and tricks of using QNAP products.
Post Reply
Salvini65
New here
Posts: 4
Joined: Mon Aug 12, 2019 4:36 pm

Qnap TS-212P user's folder

Post by Salvini65 » Wed Aug 14, 2019 6:25 am

Hi, it's my first post so I introduce myself and then ask something :)
I have a TS-212P , bought two years ago and until now I never encountered problems.
I was updating to the latest firmware version, but a message error notified me there wasn't enough space left to download the file.
I used ssh to connect the nas and find something that could be erased to free up some space, but I saw in the /mnt/HDA_ROOT/.config/.qos_config/users a lot of folders with usernames that I've never created.
I'd like to know how the folders are created inside that path:
Every time you login with a new user the folder is created?

User avatar
Toxic17
Ask me anything
Posts: 5230
Joined: Tue Jan 25, 2011 11:41 pm
Location: Planet Earth
Contact:

Re: Qnap TS-212P user's folder

Post by Toxic17 » Wed Aug 14, 2019 6:33 am

the folder will be full of usernames that have a QTS desktop profile. ie they have logged into the webgui of the NAS.

the profile is basically a file with the users own personal settings (layouts etc) of the webgui.
Regards Simon

QTS 4.x User Guidex

QNAP Club Repository
Submit a ticket • QNAP Helpdesk
QNAP Tutorials, User Manuals, FAQs, Downloads, Wiki
When you ask a question, please include the following


NAS: TS-473-32GB QM2-2P QXG-10G1T 4.4.1.1086 • TVS-463-16GB 4.4.1.1086 QM2-2S10G1TB • TS-459 Pro 2GB 4.2.6 • TS-121 4.3.3.1051 • APC Back-UPS ES 700G •
QPKG's: TwonkyServer 8.51 • Apache73 v2441.7310 • QSonarr 3.0.3.645 • QNBZGet 21.0 • phpMyAdmin 4.9.0.1 • Qmono 5.20.1.19 • McAfee 3.0.1 • Lychee 3.2.16 • HBS 3.0.191016 • LEgo v3.1.0
Network: VM Hub 3.0 <500/35> • UniFi USG Pro 4 • UniFi USW-16-150W • UniFi USW-8-60W • UniFi CloudKey Gen2+• UniFi G3-Flex • UAP AC Pro • UAP AC Lite • SLM2008 • Dell 7050 MFF •

Salvini65
New here
Posts: 4
Joined: Mon Aug 12, 2019 4:36 pm

Re: Qnap TS-212P user's folder

Post by Salvini65 » Wed Aug 14, 2019 7:24 am

Ok so if I found a lot of usernames that I've never created I must assume someone found a way to enter the nas.

Sent from my Pixel 2 using Tapatalk


lexvo
Know my way around
Posts: 192
Joined: Tue Jan 11, 2011 1:54 am
Location: Netherlands

Re: Qnap TS-212P user's folder

Post by lexvo » Fri Aug 16, 2019 6:55 pm

Check in the admin web interface if these users exist. If so, delete them. Also change your admin password if you didn't create those users yourself.
TS-453Be with FW 4.4.1.1117 build 20191109, 4GB RAM, 4x WD Red 4TB RAID 5
TS-119P+ with FW 4.3.3.1098 build 20191107

Salvini65
New here
Posts: 4
Joined: Mon Aug 12, 2019 4:36 pm

Re: Qnap TS-212P user's folder

Post by Salvini65 » Wed Aug 21, 2019 7:46 am

Sorry for my late reply, I was pretty busy this days.
I changed the admin password and controlled for new users: they weren't listed in the admin panel, so then I manually deleted the folders.
I'm still asking what could be happened because I'm sure the admin password couldn't be guessed and not even the other user's ones.. Even in the log I did not found any traces.

Sent from my Pixel 2 using Tapatalk


Salvini65
New here
Posts: 4
Joined: Mon Aug 12, 2019 4:36 pm

Re: Qnap TS-212P user's folder

Post by Salvini65 » Sat Aug 24, 2019 7:33 pm

I created a simple script to notify me the creation of a new user's folder:

Code: Select all

#!/bin/sh
#########
# USER'S FOLDER CHECK
#########
while inotifywait -e create /mnt/HDA_ROOT/.config/.qos_config/users; do
        touch email.txt
        echo To: yourmail@something.com > email.txt
        echo From: smtpmail@somethingelse.com >> email.txt
        echo Subject: New folder has been created>> email.txt
        echo "=============== Folders list ===============" >> email.txt
        ls -al /mnt/HDA_ROOT/.config/.qos_config/users >> email.txt
        cat email.txt | sendmail -t
        sleep 10
        rm email.txt
done
I saved it into /etc/config, enabled the autostart.sh execution @ startup (Starting from QTS 4.3.3 it's required to enable the autorun.sh processing in the Control Panel->Hardware->General:Run user defined startup processes (autorun.sh)), mounted the config ramblock and created the autostart.sh script that recall the previous written code.

The ramblock mounting is different for each NAS model, you can find all the info here.

Of course you have to set smtp server from Control Panel -> System -> Notification.
If you're having trouble with Gmail smtp server, set the smtp server to Custom, enable 2FA from Google Account Control Panel and create an app password, then use it in the qnap smtp server configuration. This worked for me.

Hope this will be usefull to someone.

Post Reply

Return to “Users' Corner”