Re: user can't mount loop device...
On Fri, 19 Jan 2001, Bart Schuller wrote:
> On Fri, Jan 19, 2001 at 04:48:01PM +0000, Dale Scheetz wrote:
> > The stopper is that neither losetup, nor mke2fs are executable by User.
>
> Is that something that you've done? My box has them
>
> -rwxr-xr-x 2 root root 20988 Dec 4 22:38 /sbin/mke2fs
> -rwxr-xr-x 1 root root 9076 Nov 22 20:14 /sbin/losetup
I haven't done anything. Mine looks just like yours.
>
> mke2fs just says
>
> mke2fs 1.19, 13-Jul-2000 for EXT2 FS 0.5b, 95/08/09
> /tmp/bla is not a block special device.
> Proceed anyway? (y,n) y
>
> and it works.
On my box:
dwarf@dwarf:~$ mkdir ./image
dwarf@dwarf:~$ dd if=/dev/zero of=./pkg.img bs=1024 count=100
100+0 records in
100+0 records out
dwarf@dwarf:~$ losetup /dev/loop6 ./pkg.img
bash: losetup: command not found
dwarf@dwarf:~$ su
Password:
dwarf:/home/dwarf# losetup /dev/loop6 ./pkg.img
dwarf:/home/dwarf# exit
exit
dwarf@dwarf:~$ mke2fs ./pkg.img
bash: mke2fs: command not found
dwarf@dwarf:~$ su
Password:
dwarf:/home/dwarf# mke2fs ./pkg.img
mke2fs 1.19, 13-Jul-2000 for EXT2 FS 0.5b, 95/08/09
./pkg.img is not a block special device.
Proceed anyway? (y,n)
And works.
Looks like you were working as root...
For the losetup command, I don't own /dev/loop6, but for the mke2fs
command, I _do_ own ./pkg.img, so ownership isn't enough. (at least for
mke2fs it isn't)
Thanks,
Dwarf
--
_-_-_-_-_- Author of "The Debian Linux User's Guide" _-_-_-_-_-_-
aka Dale Scheetz Phone: 1 (850) 656-9769
Flexible Software 11000 McCrackin Road
e-mail: dwarf@polaris.net Tallahassee, FL 32308
_-_-_-_-_-_- See www.linuxpress.com for more details _-_-_-_-_-_-_-
Reply to: