Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't burn CD now? (Gentoo 2.6.9 r1)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
volospin
Apprentice
Apprentice


Joined: 06 Aug 2002
Posts: 156
Location: Hong Kong

PostPosted: Mon Nov 08, 2004 9:47 am    Post subject: Can't burn CD now? (Gentoo 2.6.9 r1) Reply with quote

I didn't try but I think I can burn before with 2.6.8 kernel...
now I reinstall the whole system from scratch and got the following.

Code:

root@nitrogen: ~
hist:520 cmnd:20 jobs:0 # cdrecord -scanbus
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: Warning: Running on Linux-2.6.9-gentoo-r1
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
cdrecord: Warning: Linux-2.6.8 introduced incompatible interface changes.
cdrecord: Warning: SCSI transport does no longer work for suid root programs.
cdrecord: Warning: if cdrecord fails, try to run it from a root account.
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.


I saw some place mentioning kernel preventing burning.

Any clue?
:wink:
_________________
PIII-S 1.4G / 512MB / TUSL2-M / 3C920 x 2 / Seagate Barracuda IV 40GB
Back to top
View user's profile Send private message
fourhead
l33t
l33t


Joined: 03 Sep 2003
Posts: 875
Location: Cologne, Germany

PostPosted: Mon Nov 08, 2004 11:25 am    Post subject: Reply with quote

Same error here and I've heart of other people with the same issue. There seems to be no fix yet, I reverted back tp gentoo-dev-surces-2.6.8-r9 and everything works fine again!

Tom
Back to top
View user's profile Send private message
Pepek
Guru
Guru


Joined: 25 Apr 2004
Posts: 313
Location: Tarnowskie Góry - Poland - Europe

PostPosted: Tue Nov 09, 2004 1:23 am    Post subject: Reply with quote

Try sth like this as root ofcourse :
Code:
# chmod -s /usr/bin/cdrecord
# chmod -s /usr/bin/cdrdao

This disable suid for that applications.

P.S. In future search forum before you ask. It doesn't hurt. ;)

Cheers. 8)
_________________
For Polish users :
$ man mas
Nie ma strony manuala dla mas
For Other users :
Sorry for my english, I know it's bad, but I think it's at least understandable ;)
Back to top
View user's profile Send private message
Cr0t
l33t
l33t


Joined: 27 Apr 2002
Posts: 945
Location: USA

PostPosted: Tue Nov 09, 2004 3:34 am    Post subject: Reply with quote

Pepek wrote:
Try sth like this as root ofcourse :
Code:
# chmod -s /usr/bin/cdrecord
# chmod -s /usr/bin/cdrdao

This disable suid for that applications.

P.S. In future search forum before you ask. It doesn't hurt. ;)

Cheers. 8)

cdrecord doesn't work as good anymore as it used to... even after unsetting, I get the same error. I have been fighting with that issue for some time now. Only the root user can burn now on my system... it's a pain, but we just have to wait for a fix!
_________________
cya
    ©®0t
Back to top
View user's profile Send private message
John5788
Advocate
Advocate


Joined: 06 Apr 2004
Posts: 2140
Location: 127.0.0.1

PostPosted: Tue Nov 09, 2004 3:46 am    Post subject: Reply with quote

its not really anything "broken". linus decided to make it so only root can burn cds in his kernel due to security issues
_________________
John5788
Back to top
View user's profile Send private message
Cr0t
l33t
l33t


Joined: 27 Apr 2002
Posts: 945
Location: USA

PostPosted: Tue Nov 09, 2004 3:58 am    Post subject: Reply with quote

John5788 wrote:
its not really anything "broken". linus decided to make it so only root can burn cds in his kernel due to security issues

Well, somebody should have given us a choice!
_________________
cya
    ©®0t
Back to top
View user's profile Send private message
Pepek
Guru
Guru


Joined: 25 Apr 2004
Posts: 313
Location: Tarnowskie Góry - Poland - Europe

PostPosted: Wed Nov 10, 2004 3:08 am    Post subject: Reply with quote

John5788 wrote:
its not really anything "broken". linus decided to make it so only root can burn cds in his kernel due to security issues

This is not true. Even on the vanilla kernel-2.6.9 (without any patch) I can burn cds as a normal user. To do that is only need cdrtools-2.1 and disable suid for cdrecord and cdrdao.

Cheers. 8)
_________________
For Polish users :
$ man mas
Nie ma strony manuala dla mas
For Other users :
Sorry for my english, I know it's bad, but I think it's at least understandable ;)
Back to top
View user's profile Send private message
Cr0t
l33t
l33t


Joined: 27 Apr 2002
Posts: 945
Location: USA

PostPosted: Wed Nov 10, 2004 3:58 am    Post subject: Reply with quote

Pepek wrote:
John5788 wrote:
its not really anything "broken". linus decided to make it so only root can burn cds in his kernel due to security issues

This is not true. Even on the vanilla kernel-2.6.9 (without any patch) I can burn cds as a normal user. To do that is only need cdrtools-2.1 and disable suid for cdrecord and cdrdao.

Cheers. 8)

I gotta try that tomorrow at work.
_________________
cya
    ©®0t
Back to top
View user's profile Send private message
John5788
Advocate
Advocate


Joined: 06 Apr 2004
Posts: 2140
Location: 127.0.0.1

PostPosted: Wed Nov 10, 2004 6:54 am    Post subject: Reply with quote

Pepek wrote:
John5788 wrote:
its not really anything "broken". linus decided to make it so only root can burn cds in his kernel due to security issues

This is not true. Even on the vanilla kernel-2.6.9 (without any patch) I can burn cds as a normal user. To do that is only need cdrtools-2.1 and disable suid for cdrecord and cdrdao.

Cheers. 8)


http://lwn.net/Articles/98379/

here, it says linus added a patch to prevent this from happening
_________________
John5788
Back to top
View user's profile Send private message
spockpv
n00b
n00b


Joined: 26 May 2004
Posts: 22

PostPosted: Wed Nov 10, 2004 11:11 am    Post subject: Reply with quote

Cr0t wrote:
Pepek wrote:
Try sth like this as root ofcourse :
Code:
# chmod -s /usr/bin/cdrecord
# chmod -s /usr/bin/cdrdao

This disable suid for that applications.

P.S. In future search forum before you ask. It doesn't hurt. ;)

Cheers. 8)

cdrecord doesn't work as good anymore as it used to... even after unsetting, I get the same error. I have been fighting with that issue for some time now. Only the root user can burn now on my system... it's a pain, but we just have to wait for a fix!


Same problem here, but even as root:
Code:
LUCY bin # cdrecord -scanbus
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 J�rg Schilling
cdrecord: Warning: Running on Linux-2.6.9-gentoo-r1
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
cdrecord: Warning: Linux-2.6.8 introduced incompatible interface changes.
cdrecord: Warning: SCSI transport does no longer work for suid root programs.
cdrecord: Warning: if cdrecord fails, try to run it from a root account.
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Wed Nov 10, 2004 1:57 pm    Post subject: Reply with quote

John5788 wrote:
http://lwn.net/Articles/98379/

here, it says linus added a patch to prevent this from happening


it is true that linus added a patch. however, the effects of this patch are _not_ applied in any of the gentoo-dev-sources 2.6.8 releases or 2.6.9-r1 or 2.6.9-r2.
so that patch has nothing to do with whats going on here.

the problem here is that cdrecord defaults to looking for scsi cd writers. i'm guessing that everyone on this thread uses IDE (ATAPI) cd writers, so the correct command is:

Code:
cdrecord dev=ATAPI -scanbus


i am fairly sure that cdrecord with 2.6.8 would give the same behaviour.

going back to the patch mentioned here..as mentioned above it was effectively excluded into 2.6.9-r2. however i've done some investigation and it seems that in 2.6.9 its fixed, so 2.6.9-r3 exhibits similar cd writing command checking that the mainline 2.6.9 does (Linus' filter in place). hopefully cd writing still works, but i'm looking for feedback in this thread
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
nahpets
Veteran
Veteran


Joined: 05 Oct 2003
Posts: 1178
Location: Montreal, Canada

PostPosted: Thu Nov 11, 2004 5:51 am    Post subject: Reply with quote

I can get cdrecord to work using "dev=ATAPI" from CLI, but k3b refuses to detect my burner. Any ideas? I was able to burn with k3b a couple days ago, and all of a sudden, k3b stopped working. I didn't even reboot!!

EDIT

I just finished installing gentoo-dev-sources-2.6.9-r3 and k3b works again...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum