Re: [oi-dev] cdrecord issue (Was: sound-juicer removal?)

2017-04-06 Thread Joerg Schilling
Alexander Pyhalov  wrote:

> I've tried to update cdrtools... To find out that they are not fully 
> functional.
>
> $ cat /etc/security/exec_attr.d/cdrtools
> Basic Solaris 
> User:solaris:cmd:RO::/usr/bin/cdrecord:privs=file_dac_read,sys_devices,proc_lock_memory,proc_priocntl,net_privaddr
> Basic Solaris 
> User:solaris:cmd:RO::/usr/bin/readcd:privs=file_dac_read,sys_devices,net_privaddr
> Basic Solaris 
> User:solaris:cmd:RO::/usr/bin/cdda2wav:privs=file_dac_read,sys_devices,proc_priocntl,net_privaddr
>
> When I try to blank cd-rw device, I get with new cdrtools :
>
> $ cdrecord blank=all
> Cdrecord-ProDVD-ProBD-Clone 3.02a07 (i386-pc-solaris2.11) Copyright (C) 
> 1995-2016 Joerg Schilling
> Warning: Using USCSI interface.
> Using libscg version 'schily-0.9'.
> No target specified, trying to find one...
> Using dev=3,2,0.
> Device type: Removable CD-ROM
> Version: 0
> Response Format: 2
> Capabilities   :
> Vendor_info: 'Optiarc '
> Identifikation : 'DVD RW AD-7170S '
> Revision   : '1.82'
> Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
> Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
> Driver flags   : MMC-3 SWABAUDIO BURNFREE
> Supported modes: TAO PACKET SAO SAO/R96R RAW/R96R
> cdrecord: Warning: Cannot read drive buffer.
> cdrecord: Warning: The DMA speed test has been skipped.
> Starting to write CD/DVD/BD at speed 4 in real BLANK mode for single 
> session.
> Last chance to quit, starting real write0 seconds. Operation starts.
> cdrecord: I/O error. blank unit: scsi sendcmd: no error
> CDB:  A1 00 00 00 00 00 00 00 00 00 00 00
> status: 0x2 (CHECK CONDITION)
> Sense Bytes: F0 00 03 00 01 C0 6D 0A 00 00 00 00 0C 00 00 00 00 00
> Sense Key: 0x3 Medium Error, Segment 0
> Sense Code: 0x0C Qual 0x00 (write error) Fru 0x0
> Sense flags: Blk 114797 (valid)
> cmd finished after 425.306s timeout 9600s

This may be a problem in the medium or a incompatibility between drive and 
medium, or just a temporary problem.

> But this works with sudo

Is this reproducable multiple times?

> real 7:27.3
> user0.0
> sys 0.0
>
> 'cdrecord -v blank=fast' doesn't give this error.

blank=fast overwrites 11200 sectors in the TOC and 150 sectors at the begining 
of the medium. blank=all rewrites the whole disk.

> Do I miss some privileges?

If you miss all privileges, this (or less) is printed:

OBJ/i386-sunos5-cc/cdrecord -scanbus
Cdrecord-ProDVD-ProBD-Clone 3.02a08 (i386-pc-solaris2.11) Copyright (C) 
1995-2016 Joerg Schilling
cdrecord: Insufficient 'file read' privileges. You will not be able to open all 
needed devices.
cdrecord: Insufficient 'device' privileges. You may not be able to send all 
needed SCSI commands, this my cause various unexplainable problems.
cdrecord: Insufficient 'memlock' privileges. You may get buffer underruns.
cdrecord: Insufficient 'priocntl' privileges. You may get buffer underruns.
cdrecord: Insufficient 'network' privileges. You will not be able to do remote 
SCSI.
Warning: Using USCSI interface.
cdrecord: Permission denied. Cannot open '/dev/rdsk/c0t4d0s2'. Cannot open or 
use SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.

Jörg

-- 
 EMail:jo...@schily.net(home) Jörg Schilling D-13353 Berlin
joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
 URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'

___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] cdrecord issue (Was: sound-juicer removal?)

2017-04-06 Thread Andreas Wacknitz



Am 06.04.17 um 20:55 schrieb Alexander Pyhalov:

On 04/ 6/17 09:31 PM, Andreas Wacknitz wrote:


Do I miss some privileges?


What says 'ppriv -eD cdrecord blank=all'?


Says nothing
As ppriv -eD should show missing privileges this is an indication that 
the problem is not missing privileges.


___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] cdrecord issue (Was: sound-juicer removal?)

2017-04-06 Thread Alexander Pyhalov

On 04/ 6/17 09:31 PM, Andreas Wacknitz wrote:


Do I miss some privileges?


What says 'ppriv -eD cdrecord blank=all'?


Says nothing
--
Best regards,
Alexander Pyhalov,
system administrator of Southern Federal University IT department

___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] cdrecord issue (Was: sound-juicer removal?)

2017-04-06 Thread Andreas Wacknitz



Am 06.04.17 um 20:25 schrieb Alexander Pyhalov:

On 04/ 5/17 01:32 PM, Joerg Schilling wrote:

As for cdrtools update, yes, this is likely a good idea.
Is there any reason why latest releases are marked as alpha? Should we
use that (3.02a7) or better 3.01?


This is how I do it since 26 years ;-) It is at least as stable as Linux
releases.

Better use the most recent version as there have been several 
enhancements. I

am curently working on making this a 3.02-final within a few months.

Note that I created shell script wrappers for Sun in January 2006 
that contain:


pfexec "`dirname $0`/`basename $0`.bin" "$@"

and there are /usr/bin/cdrecord.bin, /usr/bin/cdda2wav.bin 
/usr/bin/readcd.bin.


These files are no longer needed since there is in-kernel pfexec. You 
may
install the binaries under their original names. Do you need the 
related data

for /etc/security/exec_attr?


Hello.

I've tried to update cdrtools... To find out that they are not fully 
functional.


$ cat /etc/security/exec_attr.d/cdrtools
Basic Solaris 
User:solaris:cmd:RO::/usr/bin/cdrecord:privs=file_dac_read,sys_devices,proc_lock_memory,proc_priocntl,net_privaddr
Basic Solaris 
User:solaris:cmd:RO::/usr/bin/readcd:privs=file_dac_read,sys_devices,net_privaddr
Basic Solaris 
User:solaris:cmd:RO::/usr/bin/cdda2wav:privs=file_dac_read,sys_devices,proc_priocntl,net_privaddr


When I try to blank cd-rw device, I get with new cdrtools :

$ cdrecord blank=all
Cdrecord-ProDVD-ProBD-Clone 3.02a07 (i386-pc-solaris2.11) Copyright 
(C) 1995-2016 Joerg Schilling

Warning: Using USCSI interface.
Using libscg version 'schily-0.9'.
No target specified, trying to find one...
Using dev=3,2,0.
Device type: Removable CD-ROM
Version: 0
Response Format: 2
Capabilities   :
Vendor_info: 'Optiarc '
Identifikation : 'DVD RW AD-7170S '
Revision   : '1.82'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96R RAW/R96R
cdrecord: Warning: Cannot read drive buffer.
cdrecord: Warning: The DMA speed test has been skipped.
Starting to write CD/DVD/BD at speed 4 in real BLANK mode for single 
session.

Last chance to quit, starting real write0 seconds. Operation starts.
cdrecord: I/O error. blank unit: scsi sendcmd: no error
CDB:  A1 00 00 00 00 00 00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: F0 00 03 00 01 C0 6D 0A 00 00 00 00 0C 00 00 00 00 00
Sense Key: 0x3 Medium Error, Segment 0
Sense Code: 0x0C Qual 0x00 (write error) Fru 0x0
Sense flags: Blk 114797 (valid)
cmd finished after 425.306s timeout 9600s

But this works with sudo

$ sudo truss -o /tmp/cdrecord.output -t ioctl time cdrecord blank=all
Cdrecord-ProDVD-ProBD-Clone 3.02a07 (i386-pc-solaris2.11) Copyright 
(C) 1995-2016 Joerg Schilling

Warning: Using USCSI interface.
Using libscg version 'schily-0.9'.
No target specified, trying to find one...
Using dev=3,2,0.
Device type: Removable CD-ROM
Version: 0
Response Format: 2
Capabilities   :
Vendor_info: 'Optiarc '
Identifikation : 'DVD RW AD-7170S '
Revision   : '1.82'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96R RAW/R96R
cdrecord: Warning: Cannot read drive buffer.
cdrecord: Warning: The DMA speed test has been skipped.
Starting to write CD/DVD/BD at speed 4 in real BLANK mode for single 
session.

Last chance to quit, starting real write0 seconds. Operation starts.

real 7:27.3
user0.0
sys 0.0

'cdrecord -v blank=fast' doesn't give this error.

Do I miss some privileges?


What says 'ppriv -eD cdrecord blank=all'?

___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev


Re: [oi-dev] cdrecord issue (Was: sound-juicer removal?)

2017-04-06 Thread Alexander Pyhalov

On 04/ 5/17 01:32 PM, Joerg Schilling wrote:

As for cdrtools update, yes, this is likely a good idea.
Is there any reason why latest releases are marked as alpha? Should we
use that (3.02a7) or better 3.01?


This is how I do it since 26 years ;-) It is at least as stable as Linux
releases.

Better use the most recent version as there have been several enhancements. I
am curently working on making this a 3.02-final within a few months.

Note that I created shell script wrappers for Sun in January 2006 that contain:

pfexec "`dirname $0`/`basename $0`.bin" "$@"

and there are /usr/bin/cdrecord.bin, /usr/bin/cdda2wav.bin /usr/bin/readcd.bin.

These files are no longer needed since there is in-kernel pfexec. You may
install the binaries under their original names. Do you need the related data
for /etc/security/exec_attr?


Hello.

I've tried to update cdrtools... To find out that they are not fully 
functional.


$ cat /etc/security/exec_attr.d/cdrtools
Basic Solaris 
User:solaris:cmd:RO::/usr/bin/cdrecord:privs=file_dac_read,sys_devices,proc_lock_memory,proc_priocntl,net_privaddr
Basic Solaris 
User:solaris:cmd:RO::/usr/bin/readcd:privs=file_dac_read,sys_devices,net_privaddr
Basic Solaris 
User:solaris:cmd:RO::/usr/bin/cdda2wav:privs=file_dac_read,sys_devices,proc_priocntl,net_privaddr


When I try to blank cd-rw device, I get with new cdrtools :

$ cdrecord blank=all
Cdrecord-ProDVD-ProBD-Clone 3.02a07 (i386-pc-solaris2.11) Copyright (C) 
1995-2016 Joerg Schilling

Warning: Using USCSI interface.
Using libscg version 'schily-0.9'.
No target specified, trying to find one...
Using dev=3,2,0.
Device type: Removable CD-ROM
Version: 0
Response Format: 2
Capabilities   :
Vendor_info: 'Optiarc '
Identifikation : 'DVD RW AD-7170S '
Revision   : '1.82'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96R RAW/R96R
cdrecord: Warning: Cannot read drive buffer.
cdrecord: Warning: The DMA speed test has been skipped.
Starting to write CD/DVD/BD at speed 4 in real BLANK mode for single 
session.

Last chance to quit, starting real write0 seconds. Operation starts.
cdrecord: I/O error. blank unit: scsi sendcmd: no error
CDB:  A1 00 00 00 00 00 00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: F0 00 03 00 01 C0 6D 0A 00 00 00 00 0C 00 00 00 00 00
Sense Key: 0x3 Medium Error, Segment 0
Sense Code: 0x0C Qual 0x00 (write error) Fru 0x0
Sense flags: Blk 114797 (valid)
cmd finished after 425.306s timeout 9600s

But this works with sudo

$ sudo truss -o /tmp/cdrecord.output -t ioctl time cdrecord blank=all
Cdrecord-ProDVD-ProBD-Clone 3.02a07 (i386-pc-solaris2.11) Copyright (C) 
1995-2016 Joerg Schilling

Warning: Using USCSI interface.
Using libscg version 'schily-0.9'.
No target specified, trying to find one...
Using dev=3,2,0.
Device type: Removable CD-ROM
Version: 0
Response Format: 2
Capabilities   :
Vendor_info: 'Optiarc '
Identifikation : 'DVD RW AD-7170S '
Revision   : '1.82'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96R RAW/R96R
cdrecord: Warning: Cannot read drive buffer.
cdrecord: Warning: The DMA speed test has been skipped.
Starting to write CD/DVD/BD at speed 4 in real BLANK mode for single 
session.

Last chance to quit, starting real write0 seconds. Operation starts.

real 7:27.3
user0.0
sys 0.0

'cdrecord -v blank=fast' doesn't give this error.

Do I miss some privileges?

--
Best regards,
Alexander Pyhalov,
system administrator of Southern Federal University IT department

___
oi-dev mailing list
oi-dev@openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev