Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the SUID bit of the mount.davfs binary #7

Open
vitorbrandao opened this issue Aug 22, 2012 · 5 comments
Open

Set the SUID bit of the mount.davfs binary #7

vitorbrandao opened this issue Aug 22, 2012 · 5 comments
Assignees
Milestone

Comments

@vitorbrandao
Copy link
Member

While running box-sync setup we should set SUID bit to mount.davfs allowing regular usage of box-sync without requiring root privileges:

sudo chmod u+s /sbin/mount.davfs

This change should fix #2

@ghost ghost assigned gjcarneiro Aug 22, 2012
@odigity
Copy link

odigity commented Sep 24, 2014

I ran into the same problem as the user in #2:

$ ./box-sync start
/sbin/mount.davfs: program is not setuid root
Failed to mount sync dir.

When I ran the chmod command you suggested above, I advanced to a second problem:

$ ./box-sync start
/sbin/mount.davfs: user ofer must be member of group davfs2
Failed to mount sync dir.

Probably because I failed to add me to the group during the setup phase because it didn't have root privileges then either:

$ ./box-sync setup
* Setting up davfs...
* Created sync directory at '/home/ofer/Box'
* Adding yourself to davfs2 group (requires sudo)

@odigity
Copy link

odigity commented Sep 24, 2014

Actually, it looks like it did manage to add me to the group:

$ tail -1 /etc/group
davfs2:x:126:ofer

So, don't know why it's still claiming I'm not in it...

@jacoby
Copy link

jacoby commented Sep 24, 2014

I hit the same issue. Try logging out and back in.

On Wed, Sep 24, 2014 at 10:52 AM, Ofer Nave [email protected]
wrote:

Actually, it looks like it did manage to add me to the group:

$ tail -1 /etc/group
davfs2:x:126:ofer

So, don't know why it's still claiming I'm not in it...


Reply to this email directly or view it on GitHub
#7 (comment)
.

David Jacoby [email protected]

@ninsbl
Copy link

ninsbl commented Dec 2, 2016

Same here...

@ninsbl
Copy link

ninsbl commented Dec 2, 2016

OK, found out that I had to login again
su -l myuser
after adding myself to davfs2 group. Then everything worked fine...
So, this issue can probably be closed...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants