LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-17-2006, 01:35 AM   #1
opto
Member
 
Registered: Jun 2006
Location: Pennsylvania
Distribution: Slackware64 , OS X , OpenBSD
Posts: 56

Rep: Reputation: 15
Can only use cdrecord as root, not user (Kernal Version 2.4.31


I'm expermenting with cdrecorder and trying to figure out if there is an elegant way of using cdrecorder as a user (I rather not use a GUI like roast). The kernal version I am running is 2.4.31 with slackware 10.2.

I made the proper modifications to lilo.conf, and I created the proper alias (rm -f /dev/CD-ROM ln -s /dev/scd0 /dev/CD-ROM) and typee insmod ide-scsi at the prompt. When I'm root and type cdrecord -scanbus I get the following:

root@toroidal:/dev# cdrecord -scanbus
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
Linux sg driver version: 3.1.25
Using libscg version 'schily-0.8'.
scsibus0:
0,0,0 0) 'LG ' 'CD-RW CED-8080B ' '1.04' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *

But when I try it as user I get the following:

me@toroidal:/dev$ cdrecord -scanbus
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.


I modified sg0 permissions by me@toroidal:/dev$ chmod 644 sg0but got the smae error. I tried to go a step further and typed me@toroidal:/dev$ chmod 666 sg0 and got:

me@toroidal:/dev$ cdrecord -scanbus
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
Linux sg driver version: 3.1.25
cdrecord: Permission denied. Cannot open '/dev/sg1'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.

The only possible option I could do is to give myself read & write permissions on every sg* file, but I think that would be an unwise decision. Does anybody know a safe and clean way of using cdrecord as user?

BTW, I switched back the permissions that I changed
 
Old 09-17-2006, 01:56 AM   #2
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 61
Did you change the permissions on cdrecord, itself?

# chmod u+s /usr/bin/cdrecord
 
Old 09-17-2006, 02:03 AM   #3
opto
Member
 
Registered: Jun 2006
Location: Pennsylvania
Distribution: Slackware64 , OS X , OpenBSD
Posts: 56

Original Poster
Rep: Reputation: 15
Yes,

-rwxrwxrwx 1 root bin 317404 2004-09-09 19:41 cdrecord*
 
Old 09-17-2006, 02:05 AM   #4
opto
Member
 
Registered: Jun 2006
Location: Pennsylvania
Distribution: Slackware64 , OS X , OpenBSD
Posts: 56

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by rickh
Did you change the permissions on cdrecord, itself?

# chmod u+s /usr/bin/cdrecord

that worked thanks
 
  


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
cdrecord works for root, but not non-priviledged user mpdegroat Linux - Software 3 05-24-2004 12:15 PM
CDrecord rund for root, not other user(s) ewto Linux - General 3 01-12-2004 07:20 AM
How do you configure the kernal, overwriting the old version of the same kernal? sabaka Linux - Newbie 13 10-04-2003 11:00 AM
How to check kernal version? C1Plus Linux - Newbie 4 09-08-2003 02:34 PM
Kernal Version lackluster Linux - Newbie 9 05-14-2002 05:45 AM


All times are GMT -5. The time now is 10:57 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration