I mount.davfs a remote server as root and it works fine. The problem is that as a user I do not have permission to create folders or files.
The folder has a permission of
drwxr-xr-x root root
So only root can write, how can I change the owner or the group.
Awsome piece of code BTW.
Thank you for your request.
A few days ago, Donour Sizemore also issued this problem.
As you know, WEB-dav and your local user have no
So I want to add mount option -g(grant).
You could give a permission to one user using
mount. For example if you want to grant permission
to user, baitlmal, you could mount like this:
mount.davfs http://dav.server /dav -uhunkim -p1234 -gbaitlmal
Also I could use -u option also. Then you should
have same local id and web-dav id.
How about the idea.
I'll implement this soon.
Do you have another idea?
Well, since you asked me, I think using the -u is a bit ristricting.
The username on the server could be nothing like the username localy. So -u should remain as it is, it works well now.
As for granting write permission to local users, it would make sense to use the following:
-l "grant to Local user"
-g "grant to local Group"
or maybe use capitals
-U "grant to local user"
-G "grant to local group"
So the we could give write permission to the "webdevelopers" group and not have to worry about granting to each user.
Also, I looked at mount.davfs.c, it seems that you are are expecting to be called using the traditional call (mount -tdavfs....). Am I correct to assume that that could only happen if I compile davfs along with the kernel?
I almost finished the implementation.
:Also, I looked at mount.davfs.c, it seems that you
:are are expecting to be called using the
:traditional call (mount -tdavfs....). Am I correct
:to assume that that could only happen if I compile
:davfs along with the kernel?
Sure. davfs will be part of kernel soon, I believe. ^_^.
I'll commit to cvs the grant version(Use -U and -G).
You could check-out from our cvs tree(module name 'davfs').
Would you like to test it?
Sure, I will test it and let you know how it goes.
Ok, the permission deal works fine. I tried -U and -G, I can write; sort of.
The only problem now is that, anytime I save a file it sets the size to 0.
And I've just lost my PHP tools file :(
but that's ok, I'm sure I have a back up somewhere.
Is there a way to get a debug trace? I will see if I can get anything out of apache on what happened.
K, did some more testing, it appears to set the size to 0 when I'm using pico to edit files.
When I use a gnome editor like gEdit it works fine.
Would pico be doing something wierd?
I patched the bug.
Pico use trunc whenever we save something.
davfsd has bug in trunc.
You can check CVS.
I'll release new version tomorrow.
Log in to post a comment.