UBBox is cloud storage offered by UBIT for all faculty, staff, and students.  CCR does not support UBBox nor do we offer any assistance with using it.  However, we are providing this documentation as a resource to CCR users.  Box does not currently offer a Linux client nor does UBIT support any alternate methods for mounting it.  We have developed and tested a method for mounting UBBox on our own desktops and thought it might benefit our users to share this information.  For information and support on UBBox, please contact UBIT

DISCLAIMER: The following information is provided for advanced linux users who are familiar with installing software, setting permissions, and mounting file systems.  If you are not an advanced linux user or do not have administrative rights on your computer, you should not use this documentation.  This is meant to be run on your own desktop or laptop, not CCR servers.  For information about UBBox on CCR resources, check out this knowledgebase article

Mounting UB Box requires an external password:

To create an external password (if you have not done so already,) login to

UB Box through the web


At the top right click on your username

[Account Settings]

At the bottom of the page under: "Create External Password"

"Edit password"

New password:

Confirm password:


On your Linux PC:

1. Install davfs2 - command will depend on what version of linux you're running

2. Debian/Ubuntu users need to do:

sudo dpkg-reconfigure davfs2

Click 'yes' to answer question about setuid

3. Add your user account to the davfs2 group

either edit /etc/group or: sudo gpasswd -a [username] davfs2

You'll need to logout and back in again to see the change

4. davfs directory setup and configuration. Type these commands exactly as is; do not replace the environment variables with your info:

mkdir ${HOME}/UB-Box

chmod 700 ${HOME}/UB-Box

mkdir ${HOME}/.davfs2/

chmod 700 ${HOME}/.davfs2/

/bin/echo -e "secrets\t${HOME}/.davfs2/secrets-UB_Box" > ${HOME}/.davfs2/davfs2-UB_Box.conf

/bin/echo -e "use_locks\t0" >> ${HOME}/.davfs2/davfs2-UB_Box.conf

/bin/echo -e "${HOME}/UB-Box\t${LOGNAME}@buffalo.edu\t\"YOUR_PASSWORD_HERE\"" > ${HOME}/.davfs2/secrets-UB_Box

chmod 600 ${HOME}/.davfs2/secrets-UB_Box

edit: ${HOME}/.davfs2/secrets-UB_Box

and replace YOUR_PASSWORD_HERE with the external password you set in UBBox (above)

if your local username on your PC is not the same as your UB username, replace the text in front of buffalo.edu with your ub username

5. Create an entry in /etc/fstab to mount UB Box. As in the steps above, do not replace the environment variables in this command. Type it exactly as shown (all on one line):

sudo sh -c "/bin/echo -e \"https://dav.box.com/dav\t${HOME}/UB-Box\tdavfs\trw,user,uid=$(id -nu),gid=$(id -ng),noauto,file_mode=600,dir_mode=700,nosuid,conf=${HOME}/.davfs2/davfs2-UB_Box.conf\t0\t0\" >> /etc/fstab"

view the /etc/fstab file to make sure it looks like this (but with your username in place of ccruser):

https://dav.box.com/dav /home/ccruser/UB-Box davfs rw,user,uid=ccruser,gid=ccruser,noauto,file_mode=600,dir_mode=700,nosuid,conf=/home/ccruser/.davfs2/davfs2-UB_Box.conf 0 0

6. Mount UBBox

mount ~/UB-Box

If you get an error similar to "can't write entry into mtab" - you can ignore it

7. Verify mount

mount |grep UB

https://dav.box.com/dav on /home/ccruser/UB-Box type davfs (rw,nosuid,noexec,nodev,_netdev,uid=1000,gid=1000,user=ccruser)

NOTE: The permissions are set so only your user can access the files. You can change this by changing the permissions on the mount directory and changing the file & directory mode in /etc/fstab

To Unmount UBBox:

umount ~/UB-Box