Search This Blog

Tuesday, 15 July 2014

How to delete files from a QNAP NAS using SSH

Sometimes a QNAP NAS can get so full you cannot access it via SMB or delete files via the Web Management. Here is how to remove files via SSH.

Login to the Device via SSH using putty

Open putty and connect to the NAS via the Management IP address using SSH


Login to the device with Admin User only

List the Mount Points

Use the command df to show the mount points on the disks. On a QNAP NAS look for the folders /share/MD0_DATA

Change Folder

Use the command cd /share/MD0_DATA to change to that folder

Show Shares

You now show the shares on your QNAP NAS with the command ls

Change to Folder to be Deleted

To delete a folder, change to the parent folder and then you are ready for remove the folders and files

Remove Folders

You can then remove the folders and files with the command
rm -rf /share/MD0_DATA/ShareName/Folder

Confirm the Disk Space Reduction

In the Web Management GUI you can now confirm the disk space as it reduces

Cannot access Network Shares on Windows 8

I had an instance where I had a Windows 8 laptop with a local Administrator but when I tried to browse to the C$ share I was displayed the error "multiple connections are not allowed"  from command line I got an Access Denied message.  All this was even though I was using the right credentials.

It turns out to be a UAC filtering policy in Windows 8 that blocks access unless you use Remote Desktop to the OS.

The solution is in this Microsoft KB article

A big thanks to Helge Klein for this one.

Thursday, 3 July 2014

Hosted Exchange - How to check if a Mailbox allows Outlook Anywhere

Some Mailboxes in Hosted Exchange may not allow Outlook Anywhere, this is when they have been created as Basic Users and have been upgraded to Standard Users. The guide shows how to check this and how to rectify this.

#1 Get-CASMailbox


Open the Exchange Management Shell and run the commandlet Get-CASMailbox | FL

This will now display all the properties for the CAS Mailbox.

#2 MAPIBlockOutlookRpcHttp


Check the property MAPIBlockOutlookRpcHttp if this is set to True then the user is blocked from Outlook Anywhere.

#3 Change Setting


Extend the commandlet to change the setting for the mailbox using the boolean setting True False

Get-CASMailbox | Set-CASMailbox -MAPIBlockOutlookRpcHttp $false

#4 Check Change


Run the Get-CASMailbox and check the setting has now changed to False