Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Feb 1999 18:52:24 -0700 (MST)
From:      "Kenneth D. Merry" <ken@plutotech.com>
To:        r3cgm@cdrom.com (Christopher G. Mann)
Cc:        freebsd-scsi@freebsd.org
Subject:   Re: Unusual CAM Error w/FreeBSD 3.1 (tosha)
Message-ID:  <199902190152.SAA05557@panzer.plutotech.com>
In-Reply-To: <19990218173245.C7822@cdrom.com> from "Christopher G. Mann" at "Feb 18, 1999  5:32:45 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Christopher G. Mann wrote...
> Arg!
> 
> %ls -l tosha
> -rwsr-xr-x  1 bin  bin  21304 Feb 18 03:07 tosha
> 
> %chmod 755 tosha
> 
> %ls -l tosha
> -rwxr-xr-x  1 bin  bin  21304 Feb 18 03:07 tosha
> 
> %./tosha -i
> Device: /dev/cd0c -- "PIONEER" "CD-ROM DR-U16S" "1.01"
> 
>  track   playing  start    end     raw size  mp3 size   # of   track
>  number   time    sector  sector   in bytes  128 kbps  frames  type
> ---------------------------------------------------------------------
>     1    1:08'50       0    5149   12112800   1099501    2629  audio
>     2    4:30'71    5150   25470   47794992   4335981   10373  audio
>     3    6:23'47   25471   54242   67671744   6138861   14686  audio
>     4    6:16'68   54243   82510   66486336   6031341   14429  audio
>     5    5:20'68   82511  106578   56607936   5135341   12285  audio
>     6    6:04'34  106579  133912   64289568   5832088   13952  audio
>     7    4:39'41  133913  154878   49312032   4473581   10702  audio
>     8    7:45'59  154879  189812   82164768   7453421   17831  audio
>     9    7:32'22  189813  223734   79784544   7237528   17315  audio
>    10   10:10'59  223735  269543  107742768   9773421   23382  audio
> ---------------------------------------------------------------------
>  total  59:53'69  269544 sectors  633967488  57586311  137580
> 
> %chmod 4755 tosha
> 
> %./tosha -i
> tosha: cam_lookup_pass: couldn't open /dev/xpt0
> cam_lookup_pass: Permission denied
> 
> [beacon : r3cgm] ~ - tosha -i
> tosha: cam_lookup_pass: couldn't open /dev/xpt0
> cam_lookup_pass: Permission denied
> 
> What the heck?  Well, my problem appears to be partially solved, but I'm
> not so certain the answer helps the "cause" much.  I can't seem to run
> "tosha -i" as a normal user without getting the CAM error, and I can't
> seem to suid the utility as root to get around it.
> 
> Thoughts?

Do you have any mount options on the filesystem that contains /usr/local?

Can you send the output of 'mount'?

Another alternative is putting the xpt and pass devices in a particular
group that you're also in, and then chmod them 660.  That's what I
generally do.  I'm in the operator group, so this works for me:

{panzer:/usr/home/ken:4:0} ls -la /dev/xpt* /dev/pass*
crw-rw----  1 root  operator   31,   0 Sep 20 00:15 /dev/pass0
crw-rw----  1 root  operator   31,   1 Sep 20 00:15 /dev/pass1
crw-rw----  1 root  operator   31,   2 Sep 20 00:15 /dev/pass2
crw-rw----  1 root  operator   31,   3 Sep 20 00:15 /dev/pass3
crw-rw----  1 root  operator   31,   4 Sep 20 00:15 /dev/pass4
crw-rw----  1 root  operator   31,   5 Sep 20 00:15 /dev/pass5
crw-rw----  1 root  operator   31,   6 Sep 20 00:15 /dev/pass6
crw-rw----  1 root  operator   31,   7 Sep 20 00:15 /dev/pass7
crw-rw----  1 root  operator  104,   0 Sep 20 00:15 /dev/xpt0
crw-rw----  1 root  operator  104,   1 Sep 20 00:15 /dev/xpt1


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?199902190152.SAA05557>