
Well one of the things that I could never seem to get working with Centos was the mounting of a webdav filesystem via davfs. Well today with the help of Ubuntu and the web, I've gotten it figure
# apt-get install davfs2
# mkdir /media/box.net
# mount -t davfs http://www.box.net/dav /media/box.net
I was also able to get the mount to work as me by adding a .davfs directory for me with the username and password, plus with an fstab entry. Of course you also have to setuid the mount.davfs for root.
// setuid
chmod 4555 executable_file
// setgid
chmod 2555 executable_file
But now that that is all working, I can actively use my box.net account as part of my filesystem.
I'm happy.
references:
[howto] Mount your Box.Net account using WebDAV via ubuntuforums
How to set the setuid and setgid bit for files in Unix
2 comments:
Nice hack!
I've been impressed with box.net, and now I'm even more so.
Thanks for sharing.
well it worked for a while.... when I reboot the computer and tried to reconnected I ran into permission problems again.... I'll have to keep working on it and post updates in the future.
Post a Comment