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

man page should point out that shake has to be executed as root, neither does the error message #1

Open
asmo123 opened this issue Aug 10, 2016 · 4 comments

Comments

@asmo123
Copy link

asmo123 commented Aug 10, 2016

$> shake --pretend foo.bin
shake: foo.bin: FIBMAP failed: Operation not permitted

Maybe "You have to execute shake as root" would be a more meaningful error message.

$> which shake
/usr/bin/shake

Consequently the binary should be placed into /usr/sbin

@kakra
Copy link
Contributor

kakra commented Apr 23, 2017

I'm currently patching shake to use FIEMAP and only fall back to FIBMAP if unsupported. FIEMAP doesn't show this behavior, it works as non-root for me. However, shake needs to have write permissions in the current directory, as it places a temporary file there. Is this your problem?

@kakra
Copy link
Contributor

kakra commented Apr 23, 2017

You may want to look at #7, it should fix this for you.

This was referenced Apr 23, 2017
@asmo123
Copy link
Author

asmo123 commented Apr 24, 2017

I think it's not the write permission

$> whoami
xxx
$> ls -al /home/xxx/tmp | grep '..$'
drwx------ 8 xx users 4096 24. Apr 11:43 .
drwx------ 64 xxx users 12288 24. Apr 11:26 .
$> ls -al /home/xxx/tmp | grep build.log.gz
-rw------- 1 xxx users 219066 5. Feb 2015 build.log.gz
$> shake --pretend /home/xxx/tmp/build.log.gz
shake: /home/xxx/tmp/build.log.gz: FIBMAP failed: Operation not permitted
$> echo "test" > /home/xxx/tmp/shake.TMP ; echo $?
0
$> pwd
/home/xxx/tmp
$> cat shake.TMP
test

Right?

@kakra
Copy link
Contributor

kakra commented Apr 24, 2017

Could you try my FIEMAP patch from above?

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

2 participants