Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-01-2005, 10:50 PM
|
#1
|
LQ Newbie
Registered: Apr 2005
Location: Australia
Distribution: Slackware 10.1
Posts: 17
Rep:
|
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 !
|
|
|
07-01-2005, 11:07 PM
|
#2
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep: 
|
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.
|
|
|
07-01-2005, 11:10 PM
|
#3
|
Member
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662
Rep:
|
What groups is your user a member of? Need to have "cdrom" in there for it to work properly.
|
|
|
07-05-2005, 02:29 AM
|
#4
|
LQ Newbie
Registered: Apr 2005
Location: Australia
Distribution: Slackware 10.1
Posts: 17
Original Poster
Rep:
|
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 .
|
|
|
07-05-2005, 04:16 AM
|
#5
|
Member
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498
Rep: 
|
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.
|
|
|
07-05-2005, 06:41 AM
|
#6
|
Member
Registered: Jan 2004
Distribution: Debian etch
Posts: 202
Rep:
|
What permisions did ls -l /dev/cdrom show? I put
in rc.local to allow users to watch dvds.
|
|
|
07-05-2005, 07:27 AM
|
#7
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,827
|
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
|
|
|
07-05-2005, 08:00 AM
|
#8
|
Member
Registered: Jan 2004
Distribution: Debian etch
Posts: 202
Rep:
|
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.
|
|
|
07-05-2005, 08:26 AM
|
#9
|
Member
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498
Rep: 
|
Quote:
But having the chmod in rc.local does work for me.
|
Yeah, but it's a hack - not a solution.
|
|
|
07-05-2005, 08:27 AM
|
#10
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,827
|
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
|
|
|
07-05-2005, 08:37 AM
|
#11
|
Member
Registered: Jan 2004
Distribution: Debian etch
Posts: 202
Rep:
|
Quote:
Originally posted by dunric
Yeah, but it's a hack - not a solution.
|
I know.
|
|
|
All times are GMT -5. The time now is 03:06 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|