Web sayfamızı iyileştirmemize yardımcı olması için çerezler kullanırız. Lütfen Çerez Politikamızı okuyun.

NAS 109

Using NAS with Linux

Using Linux to access files on your NAS via Samba, FTP, NFS, WebDAV and SSH

2022-07-12

COURSE OBJECTIVES

After completing this course you will be able to:

  1. Use Linux to access files on your NAS via Samba, FTP, NFS, WebDAV and SSH.

PREREQUISITES

Course Prerequisites:
None

Students are expected to have a working knowledge of:
Linux/uBuntu


OUTLINE





1. Connecting via Samba


1.1 Enabling Samba Service


STEP 1

  • Log into your ADM using your Web browser.
  • Select [Services] [SMB].
  • Select [Enable SMB] and click on [Apply].



1.2 Configuring Linux Samba connection

We will be using Ubuntu 20.04.3 LTS Desktop as an example.
uBuntu Files provides the following protocols to access NAS files.

  • FTP
  • NFS
  • Samba
  • SFTP (SSH)
  • WebDAV


STEP 1

  • Select [Files] [+ Other Locations].
  • In the [Connect to Server] field, enter your NAS's Samba location (for example: smb://172.16.2.134) and then click on [Connect].


STEP 2

  • Enter your NAS username and password and then click [Connect].


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. Connecting via FTP


2.1 Enabling FTP Server


STEP 1

  • Log into your ADM using your Web browser.
  • Select [Services] [FTP Server].
  • Select [Enable FTP Server] and click on [Apply].



2.2 Configuring Linux FTP connection


STEP 1

  • Select [Files] [+ Other Locations].
  • In the [Connect to Server] field, enter your NAS's FTP location (for example: ftp://172.16.2.134:21) and then click on [Connect].


STEP 2

  • Enter your NAS username and password and then click [Connect].


STEP 3

  • This is what the screen should look like once you have connected successfully. You should be able to see [admin on 172.16.2.134 (NAS IP)] has been mounted on the left panel.




3. Connecting via NFS


3.1 Enabling NFS Service


STEP 1

  • Log into your ADM using your Web browser.
  • Select [Services] [NFS].
  • Select [Enable NFS service] and click on [Apply].
  • Click on the provided link to configure NFS privileges.


STEP 2

  • The [Shared Folders] section on Access Control should now be visible. Select a folder (in our example, "Public") and then click on the [Access Rights] button.


STEP 3

  • Click on the [NFS Privileges] tab and click on [Add].


STEP 4

  • Add IP addresses and other corresponding permissions to be allowed to access via NFS service. Once you are finished, click [OK].


STEP 5

  • Please confirm the settings and the [Mount path]. (For example: /volume1/Public)


Note: The encryption mechanism used by ADM is eCryptfs. NFS mount is not supported for encrypted shared folders.



3.2 Configuring Linux NFS connection


STEP 1

  • Select [Files] [+ Other Locations].
  • In the [Connect to Server] field, enter your NAS's NFS location and mount path (for example: nfs://172.16.2.134:/volume1/Public) and then click on [Connect].


STEP 2

    • This is what the screen should look like once you have connected successfully. You should be able to see [Public on 172.16.2.134 (NAS IP)] has been mounted on the left panel.


    Note:

    In the Linux command prompt, enter the following command:

    mount -t nfs [ASUSTOR NAS IP]:/[NAS Shared Folder] [Directory to Mount]


    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.




    4. Connecting via WebDAV


    4.1 Enabling WebDAV Service


    STEP 1

    • Log into your ADM using your Web browser.
    • Select [Services] [WebDAV].
    • Select [Enable WebDAV service] or [Enable secured WebDAV service (SSL)] and click on [Apply].



    4.2 Configuring Linux WebDAV connection


    STEP 1

    • Select [Files] [+ Other Locations].
    • In the [Connect to Server] field, enter your NAS's WebDAV location and port (for example: dav://172.16.2.134:9800/ or davs://172.16.2.134:9802/) and then click on [Connect].


    STEP 2

    • Enter your NAS username and password and then click [Connect].


    STEP 3

    • This is what the screen should look like once you have connected successfully. You should be able to see [172.16.2.134:9800 (NAS IP)] has been mounted on the left panel.




    5. Connecting via SFTP (SSH)


    5.1 Enabling SFTP (SSH) Service


    STEP 1

    • Log into your ADM using your Web browser.
    • Select [Services] [Terminal].
    • Select [Enable SSH service] and [Enable SFTP service] and click on [Apply].



    5.2 Configuring Linux SFTP (SSH) connection


    STEP 1

    • Select [Files] [+ Other Locations].
    • In the [Connect to Server] field, enter your NAS's SFTP location and port (for example: sftp://172.16.2.134:22) and then click on [Connect].


    STEP 2

    • If the warning message shown while connecting, click [Log In Anyway].


    • Enter your NAS username and password and then click [Connect].


    STEP 3

    • This is what the screen should look like once you have connected successfully. You should be able to see [172.16.2.134 (NAS IP)] has been mounted on the left panel.




    6. Unmount other locations


    You can click icon to unmount other locations on uBuntu Files.


    Was this article helpful? Yes / No