D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] permissions and potential new user

 

On Tue, 2007-08-14 at 23:51 +0100, Rob Beard wrote:

> Well that depends, if the PC has a Serial ATA hard drive then it is 
> quite possible the CD/DVD drive is on /dev/hda
> 
> James, do you know what make the CD/DVD drive is?

PHILIPS CDRW/DVD SCB5625

---------------------------

Simon said
Your password is probably for "sudo" operations, not
for becoming root itself. Does root even have a password? (/etc/passwd,
and /etc/shadow should tell you that).
The wiki says root is disabled as standard in ubuntu. I am not allowed
to open shadow.

------------------------------------

Using K3b gives me the following: 

System
-----------------------
K3b Version: 0.12.14

KDE Version: 3.5.2
QT Version:  3.3.6
Kernel:      2.6.15-28-386
Devices
-----------------------
PHILIPS CDRW/DVD SCB5265 TD17 (/dev/scd0, /dev/sg1) at /media/cdrom0
[CD-R; CD-RW; CD-ROM; DVD-ROM] [DVD-ROM; CD-ROM; CD-R; CD-RW] [SAO; TAO;
RAW; SAO/R96P; SAO/R96R; RAW/R16; RAW/R96P; RAW/R96R]

K3b
-----------------------
Size of filesystem calculated: 221

Used versions
-----------------------
cdrecord: 2.1.1a01

cdrecord
-----------------------
/usr/bin/X11/cdrecord: Warning: Running on Linux-2.6.15-28-386
/usr/bin/X11/cdrecord: There are unsettled issues with Linux-2.5 and
newer.
/usr/bin/X11/cdrecord: If you have unexpected problems, please try
Linux-2.4 or Solaris.
scsidev: '1,0,0'
scsibus: 1 target: 0 lun: 0
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
Error trying to open /dev/sg0 exclusively (Permission denied)...
retrying in 1 second.
/usr/bin/X11/cdrecord: Permission denied. Cannot open '/dev/sg0'. Cannot
open SCSI driver.
/usr/bin/X11/cdrecord: For possible targets try 'cdrecord -scanbus'.
Make sure you are root.
/usr/bin/X11/cdrecord: For possible transport specifiers try 'cdrecord
dev=help'.
/usr/bin/X11/cdrecord: 
/usr/bin/X11/cdrecord: For more information, install the cdrtools-doc
/usr/bin/X11/cdrecord: package and
read /usr/share/doc/cdrecord/README.ATAPI.setup .
Cdrecord-Clone 2.01.01a01 (i686-pc-linux-gnu) Copyright (C) 1995-2004
Joerg Schilling
NOTE: this version of cdrecord is an inofficial (modified) release of
cdrecord
      and thus may have bugs that are not present in the original
version.
      Please send bug reports and support requests to
<cdrtools@xxxxxxxxxxxxxxxxxxx>.
      The original author should not be bothered with problems of this
version.
TOC Type: 3 = CD-ROM XA mode 2

cdrecord command:
-----------------------
/usr/bin/X11/cdrecord.mmap -v gracetime=2 dev=1,0,0 speed=24 -tao
driveropts=burnfree -eject -multi -xa -tsize=221s - 

mkisofs
-----------------------
221
INFO: UTF-8 character encoding detected by locale settings.
 Assuming UTF-8 encoded filenames on source filesystem,
 use -input-charset to override.

mkisofs command:
-----------------------
/usr/bin/X11/mkisofs -gui -graft-points -volid K3b data project -volset
-appid K3B THE CD KREATOR (C) 1998-2005 SEBASTIAN TRUEG AND THE K3B TEAM
-publisher  -preparer  -sysid LINUX -volset-size 1 -volset-seqno 1
-sort /tmp/kde-james/k3b9beyHb.tmp -rock
-hide-list /tmp/kde-james/k3bi2cDEb.tmp -joliet
-hide-joliet-list /tmp/kde-james/k3bYcgj5b.tmp -full-iso9660-filenames
-iso-level 2 -path-list /tmp/kde-james/k3b7D4XPa.tmp 

------------------------------------------------------------------------

Mark asked about fstab:

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda5       /               ext3    defaults,errors=remount-ro 0
1
/dev/sda6       none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0

> That does sound likely.  My NEC DVD writer takes a good 3 or 4 seconds 
> to recognise a blank disc.

K3b won't write first or second time or it I wait a while. 

Looking at K3bSetup via sudo and password, it checks the devices
(PHILIPS CDRW/DVD SCB5625 in /dev/scd0 and /dev/sg1) and gives ther old
permissions as 660 root.cdrom and the new permissions as 666 root.cdrom
with no obvious facility to change the permissions beyond that.

Mark said:
I still feel the comment I made before about the disk either needing
time to 
be detected once you choose burn or perhaps media incompatability is
most likely.

If that is so, why does it accept a file by drag and drop once only - at
least in GNOME? (dragging and dropping does not work in KDE) And
attempting to open it in KDE it says there is a malformed url.

I am tempted to reinstall with the later 7.04. If I do so, presumably I
should copy back /home - should I uninstall 6.06 first - if so, how?

Unless you can suggest a command line approach to changing the
permissions using sudo. Then perhaps I can upgrade via the standard
ubuntu method.

Many thanks to everyone who has responded

james kilty
http://www.kilty.demon.co.uk


-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html