Date: Sun, 26 Jul 1998 22:06:51 -0600 (MDT) From: "Kenneth D. Merry" <ken@plutotech.com> To: ckempf@enigami.com (Cory Kempf) Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: non-root pass, symlinks to pass fail Message-ID: <199807270406.WAA22661@panzer.plutotech.com> In-Reply-To: <x7sojo6sbj.fsf@singularity.enigami.com> from Cory Kempf at "Jul 26, 98 08:38:56 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Cory Kempf wrote... > If I attempt to use cam_scsi_open() on one of the /dev/pass devices as a > non-root user, it failes with errno 13 (access). > > Interestingly enough, though, ls -l /dev/pass* produces: > > 0 brw-rw-rw- 1 root operator 200, 0 Jul 14 16:50 /dev/pass0 > 0 brw-rw-rw- 1 root operator 200, 1 Jul 14 16:50 /dev/pass1 > 0 brw-rw-rw- 1 root operator 200, 2 Jul 14 16:50 /dev/pass2 > 0 brw-rw-rw- 1 root operator 200, 3 Jul 14 16:50 /dev/pass3 > 0 brw-rw-rw- 1 root operator 200, 4 Jul 14 16:50 /dev/pass4 > > As I chmod'd things to 666 when I first got the error. > > Why can't I open a pass device as a non-root user? Probably because you're chmoding the wrong devices. First off, there is no "cam_scsi_open()" function. My guess is that you're using cam_open_device(). All of the cam_open_* functions open the passthrough character devices, not the block devices. So changing permissions on the block devices doesn't make any difference. As for why there are block passthrough devices, it's a thought towards future read/write functionality. Kinda hard to explain, though, without a huge discussion. > On what might be a related note, I created a symlink (i.e. ln -s) to a > pass device. cam_scsi_open() refuses to open that either. Why? > > And, in both cases, how do I fix? See above. I think you're looking at the wrong devices. You should be looking at /dev/rpass*. Ken -- Kenneth Merry ken@plutotech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807270406.WAA22661>