Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bestcrypt permissions issues
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
afabco
Guru
Guru


Joined: 24 Feb 2004
Posts: 380

PostPosted: Tue Feb 01, 2005 8:11 pm    Post subject: bestcrypt permissions issues Reply with quote

I'm trying to use bestcrypt again. It appeared to emerge ok, but when I tried to use it, I got the following error:

bash-2.05b$ bcmount lswap win
This program must be run as root or have the SUID attribute set
bash-2.05b$ bctool
This program must be run as root or have the SUID attribute set

lswap is an old bcrypt container.

So I went ahead and SUID'ed it, but is that right? Or is it an indicator of something wrong. Is that something that the emerge should have done? I am normally very leery of SUIDing or SGIDing stuff.

bash-2.05b$ su
Password:
leeamlp thomson # which bctool
/usr/bin/bctool
leeamlp thomson # ls -la /usr/bin/bc*
-rwxr-xr-x 1 root root 79896 Dec 17 15:39 /usr/bin/bc
lrwxrwxrwx 1 root root 6 Jan 28 15:52 /usr/bin/bcformat -> bctool
lrwxrwxrwx 1 root root 6 Jan 28 15:52 /usr/bin/bcfsck -> bctool
-rwxr-xr-x 1 root root 13844 Apr 27 2004 /usr/bin/bchunk
lrwxrwxrwx 1 root root 6 Jan 28 15:52 /usr/bin/bcinfo -> bctool
lrwxrwxrwx 1 root root 6 Jan 28 15:52 /usr/bin/bclink -> bctool
lrwxrwxrwx 1 root root 6 Jan 28 15:52 /usr/bin/bcmake_hidden -> bctool
lrwxrwxrwx 1 root root 6 Oct 11 13:38 /usr/bin/bcmount -> bctool
lrwxrwxrwx 1 root root 6 Jan 28 15:52 /usr/bin/bcnew -> bctool
lrwxrwxrwx 1 root root 6 Jan 28 15:52 /usr/bin/bcpasswd -> bctool
lrwxrwxrwx 1 root root 6 Jan 28 15:52 /usr/bin/bcreencrypt -> bctool
-rwxr-xr-x 1 root root 87144 Jan 28 15:52 /usr/bin/bctool
lrwxrwxrwx 1 root root 6 Jan 28 15:52 /usr/bin/bcumount -> bctool
lrwxrwxrwx 1 root root 6 Jan 28 15:52 /usr/bin/bcunlink -> bctool
leeamlp thomson # chmod u+s /usr/bin/bctool
leeamlp thomson # exit
exit

Anyway, it worked, but then another problem came up.


bash-2.05b$ rm lswap
bash-2.05b$ bctool new -a rijndael -s 750M lswap
open("/dev/bcrypt0", O_RDONLY): Permission denied

I'm using udev. Is this a udev thing? How do I fix it? Do I fix it? Is it something that the emerge should have done, or is it something I need to do?

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum