LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-21-2004, 09:39 AM   #1
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,209

Rep: Reputation: 55
cdparanoia works as root but not as user


I am not able to use cdparanoia as user.

I have no problem reading cdroms, playing audio CDs, or using xcdroast

Running cdparanoia as root is fine with

cdparanoia -vd /dev/sr0

but as user I get


Checking /dev/sr0 for cdrom...
Testing /dev/sr0 for cooked ioctl() interface
/dev/sr0 is not a cooked ioctl CDROM.
Testing /dev/sr0 for SCSI interface
generic device: /dev/sg0
ioctl device: /dev/sr0
Could not open generic SCSI device /dev/sg0: Permission denied

/dev/sg0 is crw--r--- root disk and the user is a member of the rdisk group.

Can anyone help?


Thanks
 
Old 11-21-2004, 10:50 AM   #2
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
I think it's because your user account isn't in the right groups. To burn CDs you have to be in the cdrom group by default IIRC. The disk group is only for mounting CDs and the like I think.
 
Old 11-21-2004, 12:41 PM   #3
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,209

Original Poster
Rep: Reputation: 55
As I wrote my user can burn CDs but cannot access the CD with cdparanoia.

I do not have a cdrom group at all
 
Old 11-21-2004, 12:55 PM   #4
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
It's a permission problem anyway. Though I don't know if you can just adjust permissions on your /dev files without breaking or making things insecure
 
Old 11-21-2004, 01:03 PM   #5
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,209

Original Poster
Rep: Reputation: 55
I have found that it will work if I change /dev/sg0 to rw-rw--- but I am a little uneasy about that.
 
Old 11-21-2004, 01:05 PM   #6
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Yes that'll give your user read and write permissions on the device. It solves the problem but like I said I don't know if it's ok to do
 
Old 11-21-2004, 01:16 PM   #7
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Re: cdparanoia works as root but not as user

Quote:
Originally posted by arubin
I am not able to use cdparanoia as user.

I have no problem reading cdroms, playing audio CDs, or using xcdroast

Running cdparanoia as root is fine with

cdparanoia -vd /dev/sr0

but as user I get


Checking /dev/sr0 for cdrom...
Testing /dev/sr0 for cooked ioctl() interface
/dev/sr0 is not a cooked ioctl CDROM.
Testing /dev/sr0 for SCSI interface
generic device: /dev/sg0
ioctl device: /dev/sr0
Could not open generic SCSI device /dev/sg0: Permission denied

/dev/sg0 is crw--r--- root disk and the user is a member of the rdisk group.

Can anyone help?


Thanks
You do mean the user is a member of the disk group not the rdisk group right? Is this just a typo?
 
Old 11-21-2004, 02:36 PM   #8
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,209

Original Poster
Rep: Reputation: 55
disk
no typo
 
Old 11-21-2004, 02:37 PM   #9
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,209

Original Poster
Rep: Reputation: 55
Oh I just saw the error.
It should read

/dev/sg0 is crw--r--- root disk and the user is a member of the disk group.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FireFox works for root but not user... cbjhawks Linux - Software 3 12-28-2004 08:56 AM
XMMS Works for root, not for user JazzMastaJim Suse/Novell 6 11-20-2004 09:59 PM
Sound works as root but not as user? n0x Linux - Hardware 2 09-11-2004 07:27 AM
X only works with root user joe83 Slackware 14 09-06-2004 08:17 AM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 04:14 PM


All times are GMT -5. The time now is 12:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration