How to Mount Box on Ubuntu

This brief tutorial shows students and new users how to mount Box online storage on Ubuntu 20.04 | 18.04.

Box.com offers online storages service for businesses and individuals. Box service helps keep your files safe with cloud-native security capabilities like granular access controls, watermarking, and classification.

As of this writing, Box did not offer any native Linux client that works with their platform. However, there’s a secure WebDAV protocol that works and allows you to mount your online storage easily via https.

Once mounted, you’ll be able to fully access your Box content securely via WebDAV protocol, and find every file you need, edit like you would any local file and save it automatically to the cloud. 

To get started with mounting Box files on Ubuntu, follow the steps below:

Mount Box via File Manager

The quickest way to mount your Box storage on Ubuntu desktop is using the File Manager.

Ubuntu file manager has built-in support to allow you to access remote servers over multiple protocols such as FTP, NFS, Samba, SSH, AppleTalk and WebDAV.

To mount your Box storage, open Ubuntu file manager and click on the menu + Other Locations

Then type in the Box WebDAV address:

davs://dav.box.com/dav

After that click Connect.

That should prompt you to enter your Box account username and password to sign in.

Login and begin managing your Box content.

You can add the Box mount to your favorite by right-clicking the Box link on the left and select Add to foverite.

That’s now to mount Box on Ubuntu file explorer.

Mount Box via Command Line

If you’re running a Linux server and want to mount your Box storage via the terminal, use the steps below:

First run the commands below to install required packages

sudo apt install davfs2

When prompted if you would like to have unprivileged users to mount WebDAV resources, select Yes.

The create your Box mount point on the server. This is the location you’ll access your Box content.

mkdir ~/Box

We’re going to create it in our home folder and call it Box.

Box does not support file locks. To get this to work, you’ll need to disable file locks in the davfs2 configuration file located at /etc/davfs2/davfs2.conf.

Run the commands below to open the config file.

sudo nano /etc/davfs2/davfs2.conf

Then disable the lock file by editing the file and changing the highlighted value to 0.

 trust_server_cert
# clientcert
# secrets         ~/.davfs2/secrets # user config file only
# ask_auth        1
  use_locks       0
# lock_owner      <user-name>
# lock_timeout    1800              # seconds
# lock_refresh    60                # seco

Save the ext.

After that, run the commands below to add your account to davfs2 group.

sudo usermod -a -G davfs2 $USER

You may have to log out and back in or reboot the machine after running the commands above.

Next, edit the /etc/fstab file and add Box mount point entry.

sudo nano /etc/fstab

Then add the line below to the end of the file and save.

https://dav.box.com/dav /home/richard/Box davfs rw,user,noauto 0 0

Save the file and exit.

After adding the entry, run the commands below to mount your Box content.

mount Box

You’ll be prompted to enter your Box account details.

richard@ubuntu2004:~$ mount Box
Please enter the username to authenticate with server
https://dav.box.com/dav or hit enter for none.
  Username: richard@gmail.com
Please enter the password to authenticate user rworloma@gmail.com with server
https://dav.box.com/dav or hit enter for none.
  Password:  

Now go to ~/Box to get your content.

That’s it!

Conclusion:

This post showed you how to mount Box content on Ubuntu. If you find any error above, use the form below to report.

You may also like the post below:

How to Install KeeWeb Password Manager on Ubuntu | Website for Students

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.