We use cookies to help us improve our webpage. Please read our Cookie Policy .

NAS 109

Using NAS with Linux

Learn how to use Linux to access files on your NAS via CIFS/SAMBA, FTP, NFS, WebDAV and SSH.

2017-09-27

COURSE OBJECTIVES
Upon completion of this course you should be able to:
1. Use Linux to access files on your NAS via CIFS/SAMBA, FTP, NFS, WebDAV and SSH

PREREQUISITES
Course Prerequisites:
None
Students are expected to have a working knowledge of:
Linux

OUTLINE
1. Configuring your NAS
1.1 Enabling CIFS/SAMBA Service
1.2 Enabling FTP Server
1.3 Enabling NFS Service
1.4 Enabling WebDAV Service
1.5 Enabling SSH Service
2. Configuring Linux
2.1 Connecting via SAMBA
2.2 Connecting via FTP
2.3 Connecting via NFS
2.4 Connecting via WebDAV
2.5 Connecting via SSH



1. Configuring your NAS

1.1 Enabling CIFS/SAMBA Service


STEP 1
  • Log into your ADM using your Web browser.
  • Select [Services] > [Windows].
  • Select the [Enable Windows file service (CIFS/SAMBA)] checkbox and click [Apply].



1.2 Enabling FTP Server


STEP 1
  • Select [Services] > [FTP Server].
  • Select the [Enable FTP server] checkbox and click [Apply].



1.3 Enabling NFS Service


STEP 1
  • Select [Services] > [NFS].
  • Select the [Enable NFS service] checkbox and click [Apply].
  • Click on the provided link to configure NFS privileges.


STEP 2

The Shared Folders section should now be visible. Select a folder (in our example, “Public”) and then click on the [Access Rights] button. Next, click on the [NFS Privileges] tab.


STEP 3

Click the [Add] button in order to add IP addresses that you wish to allow access via NFS. Once you are finished, click [OK].



1.4 Enabling WebDAV Service


STEP 1
  • Select [Services] > [WebDAV].
  • Select the [Enable WebDAV service] or the [Enable secured WebDAV service (SSL)] checkbox and then click [Apply].


1.5 Enabling SSH Service


STEP 1
  • Select [Services] > [Terminal].
  • Select the [Enable SSH service] and [Enable SFTP service] checkboxes and click [Apply].



2. Configuring Linux
(We will be using Ubuntu 12.04 Desktop as an example)

2.1 Connecting via SAMBA


STEP 1

Open the Home Folder and then select [Go]→[Location…].




STEP 2

In the [Go To:] field, enter your NAS’s SAMBA location (for example: smb://192.168.1.103) and then press [Enter] on your keyboard.




STEP 3

This is what the screen will look like once you have successfully connected. We will now click on [Public] as an example.




STEP 4

After clicking on [Public] you should be able to see the contents of the folder and that it has been mounted on the left-hand panel.




2.2 Connecting via FTP


STEP 1

Open the Home Folder and then select [Go]→[Location…].




STEP 2

In the [Go To:] field, enter your NAS’s FTP location (for example: ftp://192.168.1.103) and then press [Enter] on your keyboard.




STEP 3

Enter your FTP username and password and then click [Connect].




STEP 4

Another way to connect is by selecting [File]→[Connect to Server…].




STEP 5

Fill out the required fields and then click [Connect].




STEP 6

This is what the screen should look like once you have connected successfully. You should be able to see [FTP as admin on 192.168.1.103 (your NAS’s location)] in the upper panel and under [Network] in the left panel.



2.3 Connecting via NFS

Note: The encryption mechanism used by ADM 2.4 (or later) is eCryptfs. NFS mount is not supported for encrypted share folder if ADM version is below 2.4

STEP 1

In the Linux command prompt, enter the following command:

mount -t nfs:/



For example, if your NAS’s IP address is 192.168.1.104, you must mount the “Public” network drive to Linux’s /mnt/pub directory, then enter the following command:

mount -t nfs 192.168.1.104:/volume1/Public  /mnt/pub




Note: You must be logged in using the root account in order to mount a network drive.

2.4 Connecting via WebDAV


STEP 1

Select [File]→[Connect to Server…].




STEP 2

Connect to Server dialog box will now appear. Fill out the required fields and then click on [Connect]. For the [Type] field make sure you select [WebDAV (HTTP)].




STEP 3

This is what the screen should look like once you have successfully connected. You should see that the [Web] folder have been mounted at positions A and B.



Note: If you wish to unmount the folder, you can click on the icon.


2.5 Connecting via SSH


Note: You can only mount SSH with a NAS [admin] account.


STEP 1

Select [File]→[Connect to Server…].




STEP 2

Connect to Server dialog box will now appear. Fill out the required fields and then click [Connect]. For the [Type] field, make sure you select [SSH].




STEP 3
This is what the screen should look like once you have successfully connected. You should see that the folder have been mounted at positions C and D.



Was this article helpful? Yes / No