Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Oct 2011
    Location
    Dublin, PA
    Posts
    301
    Thanks
    25
    Thanked 14 Times in 12 Posts
    Rep Power
    10

    Mount your box.net (box.com) account in linux

    Did your box.net mount start failing recently? They've changed a couple things.. use this guide to set it up again..

    First, install davfs
    Red Hat based:
    # yum install davfs2

    Debian based:
    # apt-get install davfs2

    Now, add the mount point:
    # mkdir /box

    Add this line to your /etc/fstab:
    Code:
    https://www.box.com/dav /box davfs rw,user,noauto 0 0
    Add this line to the bottom of the /etc/davfs2/secrets file (replace with your email address and password)
    Code:
    https://www.box.com/dav user@email.com password
    Edit the /etc/davfs2/davfs2.conf
    Change:
    # use_locks 1
    to
    use_locks 0

    Now mount it!
    # mount /box

    Show that it's there with 'mount' or with 'df'

    Now.. rsync something to it. Here, i'm rsyncing a 1gb tgz file:
    Code:
    [root@station-222 home]# rsync -avz --progress rob-test.tgz /box/
    sending incremental file list
    rob-test.tgz
      1154875454 100%   61.06MB/s    0:00:18 (xfer#1, to-check=0/1)
    sent 1155263231 bytes  received 31 bytes  59244269.85 bytes/sec
    total size is 1154875454  speedup is 1.00
    [root@station-222 home]#
    It took hardly any time at all over a fios connection - 18 seconds @ 61mb/sec
    box_01.png

  2. The Following 2 Users Say Thank You to Rob For This Useful Post:

    DaReaper (04-19-2012),scotty (04-13-2012)

  3. #2
    Join Date
    Apr 2012
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Question

    Very useful, awesome! However, it is mounted like read-only for my normal user. I did a chown and chgrp for my username on the /box directory but it is still impossible to modify the existing files because only root can mount it, and so the files in the folder are owned by root. The "mount -a" command doesn't work with my user. Do you have a fix?

    Thanks again for your awesome article!

  4. #3
    Join Date
    Oct 2011
    Location
    Dublin, PA
    Posts
    301
    Thanks
    25
    Thanked 14 Times in 12 Posts
    Rep Power
    10

  5. The Following User Says Thank You to Rob For This Useful Post:

    gabsoftware (04-19-2012)

  6. #4
    Join Date
    Apr 2012
    Posts
    84
    Thanks
    5
    Thanked 1 Time in 1 Post
    Rep Power
    1
    This is so useful! I use Box on my Playbook, so I'm gonna try this...fingers crossed!

  7. #5
    Join Date
    Apr 2012
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Thanks! Now read & write working

  8. #6
    Join Date
    Jan 2012
    Location
    Bahrain
    Posts
    187
    Thanks
    4
    Thanked 1 Time in 1 Post
    Rep Power
    1
    Wow i thought using wput and wget was fun, i really use Box on my Windows and mobile phone to sync and backup few of my important documents and files.

    I hope this will be equally helpful for syncing my server files into box. Thanks a lot!

  9. #7
    Join Date
    Feb 2012
    Location
    Europe
    Posts
    117
    Thanks
    3
    Thanked 3 Times in 2 Posts
    Rep Power
    1
    Don't use wedav. It's a just ugly.
    Use sshfs or CIFS. Webdav is in my opion as valadation of the HTTP Protocol, also it's create much to much overhaed.

    Why not using a protocol that has be design from the first moment for this?

    so far
    Akendo
    Feel free to follow my blog.

  10. #8
    Join Date
    Oct 2011
    Location
    Dublin, PA
    Posts
    301
    Thanks
    25
    Thanked 14 Times in 12 Posts
    Rep Power
    10
    OK

    I love sshfs btw..

    How would you do it using sshfs and/or CIFS?

    Quote Originally Posted by Akendo View Post
    Don't use wedav. It's a just ugly.
    Use sshfs or CIFS. Webdav is in my opion as valadation of the HTTP Protocol, also it's create much to much overhaed.

    Why not using a protocol that has be design from the first moment for this?

    so far
    Akendo

  11. #9
    Join Date
    Feb 2012
    Location
    Europe
    Posts
    117
    Thanks
    3
    Thanked 3 Times in 2 Posts
    Rep Power
    1
    sshfs depends on a simply ssh server. You have install the fuse framework on your locale system. But after this you just trade it like a mount point.
    The advantaces are:
    1. Encrypted
    2. No extra Deamon required
    3. Caching directory content(important!)



    The command is:
    Code:
    sshfs hostname: mountpoint
    CIFS is need when you have need for acl. To explains this it would take to long.

    so far
    akendo
    Feel free to follow my blog.

  12. #10
    Join Date
    Apr 2012
    Posts
    106
    Thanks
    5
    Thanked 1 Time in 1 Post
    Rep Power
    1
    Quote Originally Posted by Akendo View Post
    sshfs depends on a simply ssh server. You have install the fuse framework on your locale system. But after this you just trade it like a mount point.
    The advantaces are:
    1. Encrypted
    2. No extra Deamon required
    3. Caching directory content(important!)



    The command is:
    Code:
    sshfs hostname: mountpoint
    CIFS is need when you have need for acl. To explains this it would take to long.

    so far
    akendo
    Looks clever... but you could elaborate a little for us

 

 

Similar Threads

  1. Email Account Security
    By MustangV10 in forum Mail Server
    Replies: 2
    Last Post: 05-01-2012, 05:49 AM
  2. FTP Account Hacked... How did they guess the password?
    By Gerad in forum Server Security
    Replies: 13
    Last Post: 01-19-2012, 11:49 AM
  3. Replies: 5
    Last Post: 12-09-2011, 12:15 AM
  4. Replies: 6
    Last Post: 11-16-2011, 01:59 PM
  5. Replies: 0
    Last Post: 11-07-2011, 02:50 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
           









» Stats

Members: 913
Threads: 3,079
Posts: 6,084
Top Poster: Fred (1,486)
Welcome to our newest member, webics
Powered by vBadvanced CMPS v4.1.3
Webmaster Forum