Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 03-19-2006, 12:12 AM   #1 (permalink)
 
Banned

Join Date: Sep 2005

Posts: 5,191

The General

Default cdrecord problem

i believe i have a problem with cdrecord

i can burn DVDs as normal user, and i can as root, (im using k3b) but i can only burn CDs as root.

at one point k3b said i was using an unpatched version of cdrecord, but most of the time it says "probably a buffer underrun occured"

clearly its working, i just have something messed up to where i cant burn as normal user. i'm in the cdrom group if that matters

i did dpkg-reconfigure cdrecord and told it no when asking if i wanted to make cdrecord suid root, btw, what does that mean?

any suggestions?
The General is offline  
Old 03-20-2006, 09:32 PM   #2 (permalink)
 
Master Techie

Join Date: Apr 2004

Posts: 2,534

horndude is on a distinguished road

Default

suid root means an app runs as though it was invoked by root

look up the chmod and chown commands
horndude is offline  
Old 03-21-2006, 01:07 AM   #3 (permalink)
 
Banned

Join Date: Sep 2005

Posts: 5,191

The General

Default

ah okay i think i understand suid root, but i got the cdrecord thing figured out. but theres one thing i dont understand and thats if apps are installed suid root, why dont i need the root password to run them?
The General is offline  
Old 03-21-2006, 04:38 AM   #4 (permalink)
 
Master Techie

Join Date: Apr 2004

Posts: 2,534

horndude is on a distinguished road

Default

because linux attaches a set of "description" bits to each and every file, and because linux treats everything as a file including devices it applies to everything in the system

these description bits alter who can run an app, who owns the app, plus read,write permissions

some apps do better if they run with root priveledges because some system calls and other system level apps are needed to make them work properly, cdrecord is one of them---the userland space is seperated from system space, but sometimes a userland app needs to be treated like a kernel level system app---cdrecord is like this

the suid bit allows you to do this without invoking the normal root login or sudo, BUT, suppose you do this as a user but the app crashes in the middle, it will usually leave the user in a root shell---it is a security risk
horndude is offline  
Old 03-21-2006, 10:50 AM   #5 (permalink)
 
Banned

Join Date: Sep 2005

Posts: 5,191

The General

Default

that seems like a simple thing to fix, doesnt it?
The General is offline  
Old 03-21-2006, 09:39 PM   #6 (permalink)
 
Master Techie

Join Date: Apr 2004

Posts: 2,534

horndude is on a distinguished road

Default

ya, its more like a hack though, but its one of those ones thats pretty safe really
horndude is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On