LinuxQuestions.org
Visit Jeremy's Blog.
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 10-25-2004, 12:48 PM   #1
Blackhawkckc
Member
 
Registered: Oct 2004
Location: Grand Rapids, Mi
Distribution: Mandriva 2009 beta
Posts: 88

Rep: Reputation: 15
Unhappy cdrom permissions


HI, im relatively new to linux, so im going to give you pro's all the info i can, which still wont be enough. heh. Anyway. I'm having trouble installing games with cedega. As a user, i can read cd's, but if i try to cedega install a game, i get a "please insert disk" error. Doesn't matter what game. If i su to root, the install goes fine, but a new transgaming drive is made in my root forlder and i have to su to play the game. I installed a game as root (edited root transgaming config to point to my user home), then went back to user to play the game (when the game installed, it made the folder owned by root, so i changed owner to user). Ran cedega game.exe and it says insert disk. su to root and cedega game.exe it runs fine.

From the cedega howto i did this:

If you do not know what devices and mount points are being used by your
system, you can read the /etc/fstab file for more information using the
following command:

$ less /etc/fstab

To change the permissions on your CD-ROM device and mount points, execute the
following commands as 'root':

# chmod a+r [CD-ROM Device]
# chmod a+rx [CD-ROM mount point]

Many distributions of Linux use symbolically linked devices. You will also
need to change permissions on the linked devices as well. To see if a device
is linked run the following command:

$ ls -la [CD-ROM Device]

This command will return information that may resemble the following:

lr-xr-xr-x 1 root root 13 Aug 21 14:45 /dev/cdrom -> cdroms/cdrom0

If the output displays a -> then this device is linked. In the above output the
device /dev/cdrom is symbolically linked to the device /dev/cdrom/cdroms/cdrom0.
Be sure to change the permissions on all linked devices.

Still, as a user, i apperently cant run programs.

fstab says this:
/dev/hdc /mnt/cdrom auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec 0 0
/dev/hdd /mnt/cdrom2 auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec 0 0

Im beating my head against the wall here, because as much a noob i am, i do know i shouldnt be running anything, including games, as root. Any help please?
 
Old 10-25-2004, 03:37 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Well ... what are the actual permissions on the
cdrom-raw-device?

ls -l <device>



Cheers,
Tink
 
Old 10-26-2004, 12:37 AM   #3
Blackhawkckc
Member
 
Registered: Oct 2004
Location: Grand Rapids, Mi
Distribution: Mandriva 2009 beta
Posts: 88

Original Poster
Rep: Reputation: 15
Thank you for your reply Tink. I appreciate your help. here is what the device says:

lr-xr-xr-x 1 root root 30 Oct 25 07:47 /dev/hdd
lr-xr-xr-x 1 root root 30 Oct 25 07:47 /dev/hdc
 
Old 10-26-2004, 12:46 AM   #4
XsuX
Member
 
Registered: Oct 2004
Location: US
Distribution: Fedora Core 1
Posts: 43

Rep: Reputation: 15
It looks like you just need to change your permissions and/or ownership.

If your the only user on your box, then I would try:
chown yourUserName /dev/hdd
chgrp yourGroupName /dev/hdd
and similarly:
chown yourUserName /dev/hdc
chgrp yourGroupName /dev/hdc

which should work
 
Old 10-26-2004, 02:48 AM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally posted by Blackhawkckc
Thank you for your reply Tink. I appreciate your help. here is what the device says:

lr-xr-xr-x 1 root root 30 Oct 25 07:47 /dev/hdd
lr-xr-xr-x 1 root root 30 Oct 25 07:47 /dev/hdc
Actually those perms are rather odd ...

If these devices are links (which the l at the
start of the line suggests) they would normally
be w, too ...

what does ls -lL on the same device(s) give?

The ownerships would have been OK btw,
XsuX suggestion is overkill ...



Cheers,
Tink
 
Old 10-26-2004, 06:26 AM   #6
Blackhawkckc
Member
 
Registered: Oct 2004
Location: Grand Rapids, Mi
Distribution: Mandriva 2009 beta
Posts: 88

Original Poster
Rep: Reputation: 15
*sigh*. I dont get it. when i open konqueror i right click on cdrom. under owner it says blackhawk (my username). when i insert a cd, i wait for it to finish loading, right click on it, and now it says owner root. what the heck is going on? I change nothing. just insert the cd and it automatically changes the owner to root, and i cant run anyhing from cd.

lr-xr-xr-x 1 root root 30 Oct 26 06:01 /dev/hdc -> ide/host0/bus1/target0/lun0/cd
lr-xr-xr-x 1 root root 30 Oct 26 06:01 /dev/hdd -> ide/host0/bus1/target1/lun0/cd
brwxr----- 1 root cdrom 22, 0 Dec 31 1969 /dev/ide/host0/bus1/target0/lun0/cd
brwxr--r-- 1 root cdrom 22, 64 Dec 31 1969 /dev/ide/host0/bus1/target1/lun0/cd

This is probably all pretty screwy by now....
 
Old 10-26-2004, 06:56 AM   #7
Blackhawkckc
Member
 
Registered: Oct 2004
Location: Grand Rapids, Mi
Distribution: Mandriva 2009 beta
Posts: 88

Original Poster
Rep: Reputation: 15
Freaking FINALLY. I went to harddrake and told it to supermount. seemed to do the trick. Thanks for the help TInk
 
Old 10-26-2004, 06:31 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Wish I could have been of more assistance ... :)

And this case once again proves my suspicions
against MDK and their wizards and supermount
right ;) ...

Stuff like that just wouldn't happen with Slack
or Debian.



Cheers,
Tink
 
  


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
cdrom permissions foodhater Debian 7 11-16-2005 02:14 PM
cdrom viewing permissions une Linux - Hardware 8 06-29-2005 06:31 PM
CDROM mounting and permissions kapalka Linux - Newbie 2 04-11-2005 05:04 PM
cdrom permissions nikki Mandriva 2 02-18-2005 07:44 PM
cdrom permissions zoings Linux - Software 11 11-05-2004 02:42 AM


All times are GMT -5. The time now is 12:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration