LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-01-2005, 10:50 PM   #1
LQer928
LQ Newbie
 
Registered: Apr 2005
Location: Australia
Distribution: Slackware 10.1
Posts: 17

Rep: Reputation: 0
Question Unable to play DVD as normal user .


Hello ,everybody .
My problem is that I'm able to mount the DVD-ROM as a normal user , but when it comes to DVD play-back , root privilege is required . I've already edit /etc/fstab , so is there any other file that I need to edit to have the permission to play DVD as a normal user ?
Thank you for your time !
 
Old 07-01-2005, 11:07 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
To play dvds, you'd need read access to your dvd drive. Please do 'ls -l /dev/DVD_DRIVE' where DVD_DRIVE is your drive, obviously.
 
Old 07-01-2005, 11:10 PM   #3
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
What groups is your user a member of? Need to have "cdrom" in there for it to work properly.
 
Old 07-05-2005, 02:29 AM   #4
LQer928
LQ Newbie
 
Registered: Apr 2005
Location: Australia
Distribution: Slackware 10.1
Posts: 17

Original Poster
Rep: Reputation: 0
Hi !
Thanks for the advise! I did ' ls -l /dev/cdrom ' which showed that I have all the permission and there is already a group called " cdrom" , should I add the normal user to this group or make another group called " dvdrom" ? And if the latter is the case , will the following commands do the trick :
#groupadd dvdrom
#chgrp dvdrom /dev/hdc
#chmod g+r /dev/hdc
#usermod -G dvdrom 'username'
You might ask why I don't just type them in and see what happens , well the truth is I did and it didn't work . So , any suggestions ?
Thank you for your time .
 
Old 07-05-2005, 04:16 AM   #5
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
First, you have to relogin to apply changes in user groups.
Second, if you are running Slackware 10.1 I expect udev is used for dynamic handling of device files in /dev subtree so manual changing of ownership and permissions has no sense.
You'll either follow recommendations and join user to cdrom group or if you *need* to be handled by another group, you have to edit /etc/udev/rules.d/udev.rules to change entry(ies) for cdrom devices. Then udevd daemon has to be restarted to apply changes.
 
Old 07-05-2005, 06:41 AM   #6
priller
Member
 
Registered: Jan 2004
Distribution: Debian etch
Posts: 202

Rep: Reputation: 30
What permisions did ls -l /dev/cdrom show? I put

Code:
chmod 666 /dev/hdc
in rc.local to allow users to watch dvds.
 
Old 07-05-2005, 07:27 AM   #7
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,827

Rep: Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961
priller, the /dev/cdrom permission do not matter
as it is a symlink, only the permissions of the file
it points to are important (you surelly know that
as you chmod /dev/hdc not /dev/cdrom)

The proper way is not chmod the /dev files but
instead add your user to the group the files
belong to (as it was posted above)

It is your personal choice though, but be warned
that with a 2.6 kernel running udev, you will have
to create your own rule to accomplish the chmod
solution
 
Old 07-05-2005, 08:00 AM   #8
priller
Member
 
Registered: Jan 2004
Distribution: Debian etch
Posts: 202

Rep: Reputation: 30
Quote:
Originally posted by keefaz
priller, the /dev/cdrom permission do not matter
as it is a symlink, only the permissions of the file
it points to are important (you surelly know that
as you chmod /dev/hdc not /dev/cdrom)

It is your personal choice though, but be warned
that with a 2.6 kernel running udev, you will have
to create your own rule to accomplish the chmod
solution
Just realised what I typed, it is /dev/hdc. I am running 2.6.11.12 kernel and I can change the permisions using chmod. I've used it since 9.0, I know the proper way is to use groups but I've done it this way since I started using linux and its stuck. But having the chmod in rc.local does work for me.
 
Old 07-05-2005, 08:26 AM   #9
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
Quote:
But having the chmod in rc.local does work for me.
Yeah, but it's a hack - not a solution.
 
Old 07-05-2005, 08:27 AM   #10
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,827

Rep: Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961
Sure, as the rc.local is executed after udev rules, your
rc.local solution works I just wanted to point out some
other way to make a device file usable by simple users
 
Old 07-05-2005, 08:37 AM   #11
priller
Member
 
Registered: Jan 2004
Distribution: Debian etch
Posts: 202

Rep: Reputation: 30
Quote:
Originally posted by dunric
Yeah, but it's a hack - not a solution.
I know.
 
  


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
Fedora 3: Unable to mount floppy disc as a normal user peter1608 Linux - Newbie 3 08-12-2005 04:44 PM
k3b: cannot burn DVD as normal user acidjuice Linux - Software 7 04-12-2005 10:57 PM
Grr, stupid cd player won't play audio cds for normal user tdking19 Slackware 5 03-18-2005 06:08 PM
How to play dvd s in regular user account? DVD-RAM How-To? Outabux Debian 1 07-08-2004 07:51 PM
play audio cd's as a normal user Terrible1 Slackware 2 07-25-2003 05:33 AM

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

All times are GMT -5. The time now is 03:06 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