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

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

Login

media_1397129239523.png
Login to the device with Admin User only

List the Mount Points

media_1397129646501.png
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

media_1397129728042.png
Use the command cd /share/MD0_DATA to change to that folder

Show Shares

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

Change to Folder to be Deleted

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

Remove Folders

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

Confirm the Disk Space Reduction

media_1397129898597.png
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 http://support.microsoft.com/kb/951016

A big thanks to Helge Klein for this one.

http://helgeklein.com/blog/2011/08/access-denied-trying-to-connect-to-administrative-shares-on-windows-7/

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

media_1404378896854.png

Open the Exchange Management Shell and run the commandlet Get-CASMailbox user.name@domain.com | FL

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

#2 MAPIBlockOutlookRpcHttp

media_1404378902317.png

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

#3 Change Setting

media_1404378944523.png

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

Get-CASMailbox user.name@domain.com | Set-CASMailbox -MAPIBlockOutlookRpcHttp $false

#4 Check Change

media_1404378958112.png

Run the Get-CASMailbox user.name@domain.com and check the setting has now changed to False