LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   when i use right click and then choose eject button eject: unable to open `/dev/hda' (https://www.linuxquestions.org/questions/linux-newbie-8/when-i-use-right-click-and-then-choose-eject-button-eject-unable-to-open-%60-dev-hda-687439/)

sanatkrtiwari86 12-01-2008 06:46 AM

when i use right click and then choose eject button eject: unable to open `/dev/hda'
 
hi,
i am using frdora core3 as my pc is not compatible with some higher versions.
i have two problems.
1.when i use to mount a cd and at desktop going to cd icon use right click and press eject button,the icon use to remove fron desktop but cd not ejected.although it use to ejected when a cd is burnt.will anyone give the solution as i am quite new..just learning things.

2.hwen i use to write a cd from my user name i use to get an error:

K3b did not find a suitable writer. You will only be able to create an image.

but i use to do it through root then i got succeed .why i am unable to do so with my user name.

irishbitte 12-01-2008 08:24 AM

Your normal user does not have permissions on the cdrom or the mount command. I'm not sure about mount, but for the cd writing thing, look up what groups are on your machine:

Code:

getent passwd
and see is there a cdrom group, or something similar. Then add your normal user to this group, and you're sorted.

sanatkrtiwari86 12-01-2008 11:11 AM

how to add normal user to cd rom permission
 
Quote:

Originally Posted by irishbitte (Post 3360486)
Your normal user does not have permissions on the cdrom or the mount command. I'm not sure about mount, but for the cd writing thing, look up what groups are on your machine:

Code:

getent passwd
and see is there a cdrom group, or something similar. Then add your normal user to this group, and you're sorted.

thanks for last information ,but as i am quite new,will you please tell me how to add normal user to permission
the only related thing i got by using getent passwd command related to cd/dvd is as follows:

radvd:x:75:75:radvd user:/:/sbin/nologin

irishbitte 12-02-2008 05:10 AM

Ok, try this. As normal user (not root) type

Code:

groups
This will show you what groups your normal user is a part of.

Now, try this, again as a normal user:

Code:

nano /etc/groups
This file will show you the groups structure on your machine. There most likely is one called 'cdrom'

On an ubuntu machine, you do the following to add a user to a group:

Code:

sudo adduser <user> <group>
It's a long time since I worked with Fedora, can't remember exactly how to add user to group, but search on this forum.


All times are GMT -5. The time now is 09:25 PM.