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

zfs recv over ssh without root #4734

Closed
urza opened this issue Jun 6, 2016 · 3 comments
Closed

zfs recv over ssh without root #4734

urza opened this issue Jun 6, 2016 · 3 comments

Comments

@urza
Copy link

urza commented Jun 6, 2016

Hello, sorry if this is the wrong place to ask, but I have problem I dont know how to solve.

I would like to send and receive incremental snapshot from zfs on one machine to zfs on other machine.
On sending machine I command this:

send -R -i @Snap0 mypool/urza@snap1 | ssh urza@my.remote.xx sudo zfs recv -Fv mypool/urza

However problem is that I cant enter the password for sudo.
Is there a way around this? Can I make user urza on receiving machine able to run zfs command without sudo? I dont want to enable root over ssh.

Thank you very much

@D4rk4
Copy link

D4rk4 commented Jun 6, 2016

Enable root. Disable password auth...

@urza
Copy link
Author

urza commented Jun 6, 2016

I successfully solved the issue by following this solution: https://askubuntu.com/questions/159007/how-do-i-run-specific-sudo-commands-without-a-password

Thank you

@behlendorf
Copy link
Contributor

Once #4487 is merged you'll be able to use delegations to address this issue as well.

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

3 participants