LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 04-15-2004, 11:51 PM   #1
sy-co
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake
Posts: 28

Rep: Reputation: 15
changing permissions


I'm using eroaster to burn CD's but have to log into root every time i want to use it. When I try to detect the cd in the preferances im given the error

Couldn't detect your reader / recorder !
Please make sure that you are root or that you're allowed to read /dev/sg* !

Ho w do I give myself permission to read /dev/sg*?

Tip of the day number 2 suggested that to allow a non root user to use eroaster to,

"set the suid bit to cdrecord and cdda2wav"

if that's a better solution then how would I do that?
 
Old 04-16-2004, 12:14 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Quote:
Ho w do I give myself permission to read /dev/sg*?
Depends on which group owns the device(s), and what
permissions the group has.

if there was a group cdburning, with rwx permissions,
you could just make your normal user member of that
group.

Quote:
"set the suid bit to cdrecord and cdda2wav"
chmod +s `which cdrecord`


Quote:
if that's a better solution
That's a matter of taste. Personally I like the
group approach better...


Cheers,
Tink
 
Old 04-16-2004, 12:16 AM   #3
profjohn
Member
 
Registered: Mar 2004
Location: Jinhua, People's Republic of China
Distribution: MDK, RH, KNPX
Posts: 161

Rep: Reputation: 30
I like making a group called "burning," then change ownership of the burner to group burning. Add the users you want to be able to burn to the group. should work fine.
 
Old 04-16-2004, 12:17 AM   #4
profjohn
Member
 
Registered: Mar 2004
Location: Jinhua, People's Republic of China
Distribution: MDK, RH, KNPX
Posts: 161

Rep: Reputation: 30
(sorry Tinkster, you beat me to the draw...)
 
Old 04-16-2004, 01:16 AM   #5
sy-co
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks for you replies guys but when it comes to groups, users and permissions i have a huge hole in my learning. One I'm trying to fill!

Depends on which group owns the device(s)
how would I find this out?

change ownership of the burner
how would I do this?

I've logged into the MCC and gone to services>users clicked the Group tab double clicked the groups CDrom and CDwriter and checked my username in both groups. But I still cant use eroaster.

Please type slowly in big fonts.
 
Old 04-16-2004, 10:13 AM   #6
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Did you log out and back in before you tried using eroaster again? If not, you're still logged in as not part of these groups (which are probably the groups that Mandrake has set as being permitted to use these functions, as they are not "default" Linux groups).

So try that first, as it's likely that Mandrake has taken care of all the "ugly" stuff, like setting the uid bit on cdrdao and all that.

Alternatively, you could always just run eroaster as root while logged in as a user (if using KDE, then a shortcut to 'kdesu eroaster' would bring up a password prompt and then run eroaster, gksu or gnomesu are similar frontends for GNOME, or simply opening a terminal, using the su command to get a root terminal, and typing 'eroaster &' (without the quotes) would work as well).

You could also change burning programs-- KDE has a nice one available called K3b, which will offer to set up the permissions for you when you run it the first time as a user. I use GNOME, and don't even have KDE installed, but I've instaledl K3b separately from KDE and it works fine.

Or you could do it manually, if you really wanted to, but there are a lot of programs that would have to be changed (all of the ones for which eroaster is a front-end: cdrecord, cdrdao, cdda2wav, etc). What you would have to do is basically open a file manager as root (in a terminal, su to root and open your preferred file manager, or use the KDE shortcut to File Manager (Super User) if you use KDE), browse to the /usr/bin directory, and choose one of the programs (for this example, let's take cdrdao, as it's the first one I came up with). If you select it, right-click, and choose "Properties", then go to the "Permissions" tab in the resulting window, you will see the owner and the group owner. If this is root/root, you'd want to give "others" execute permission and also check the "set user ID" box to make this program executable with the owner's (root's) permissions by persons who are not root or members of the root group. You would have to do this for all the programs connected to eroaster (all the command line CD-burning utilities installed on the system, which I'm sure a Google search would provide a list of the possiblilities, while the Mandrake Control Center=>Software Management=>RPMDrake (remove software) would tell you which programs were actually installed).

If the properties indicate that the owner/group are root/cdwriter (which they probably are), then all you have to do is add yourself to the cdwriter group, then log out and log back in to make eroaster available to you as a user.

Hope this helps.
 
  


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
Changing Permissions jong357 Linux - General 5 01-25-2005 02:39 PM
Changing Many Permissions at Once food188 Linux - General 3 11-02-2003 08:17 AM
Changing permissions Mladek Linux - Software 7 07-09-2003 08:57 AM
Changing Permissions linuxfond Linux - Newbie 11 07-01-2003 02:48 PM
Permissions Changing ew2003 Linux - Newbie 1 04-29-2003 04:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 07:02 PM.

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
Open Source Consulting | Domain Registration