afabco Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 24 Feb 2004 Posts: 380
|
Posted: Tue Feb 01, 2005 8:11 pm Post subject: bestcrypt permissions issues |
|
|
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! |
|