LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-27-2006, 09:31 PM   #1
stevesk
Member
 
Registered: Dec 2004
Distribution: Slackware-current
Posts: 207

Rep: Reputation: 30
I shouldn't play cdrom, but I can play


Hey people! I am logging as a normal user, called matrix. It hasn't any other system privilege, as you can see in /etc/group:

root::0:root
bin::1:root,bin,daemon
daemon::2:root,bin,daemon
sys::3:root,bin,adm
adm::4:root,adm,daemon
tty::5:
disk::6:root,adm
lp::7:lp
mem::8:
kmem::9:
wheel::10:root
floppy::11:root
mail::12:mail
news::13:news
uucp::14:uucp
man::15:
audio::17:
video::18:
cdrom::19:
games::20:
slocate::21:
utmp::22:
smmsp::25:smmsp
mysql::27:
rpc::32:
sshd::33:sshd
gdm::42:
shadow::43:
ftp::50:
pop::90op
scanner::93:
nobody::98:nobody
nogroup::99:
users::100:matrix
console::101:


Here is 'matrix' line in /etc/passwd:

matrix:x:1000:100:Matrix Systems,,,:/home/matrix:/bin/bash

And here is the permission of my cdrom drive (/dev/hdd):

brwxr-x--- 1 root cdrom 22, 64 2002-06-09 16:27 /dev/hdd

The problem is: Matrix is still able to listen to music CDs, when it shouldn't be, because I did chmod 750 in /dev/hdd and matrix is NOT on cdrom group. Why? Any help would be appreciated. I already tried to reboot, no results.
 
Old 07-27-2006, 09:52 PM   #2
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Rep: Reputation: 34
You are using current, sometimes things get messed up, you can't really complain about it, because it's like Slackware 11.0 BETA
so, go back to Slackware 10.2 or wait for Pat to fix the problem.
 
Old 07-27-2006, 10:02 PM   #3
stevesk
Member
 
Registered: Dec 2004
Distribution: Slackware-current
Posts: 207

Original Poster
Rep: Reputation: 30
Was that a joke or are you serious, my friend?
 
Old 07-27-2006, 10:18 PM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Don't forget the default groups you get assigned by /etc/login.defs: CONSOLE_GROUPS floppy:audio:video:cdrom

 
Old 07-28-2006, 01:41 AM   #5
synapse
Member
 
Registered: Jan 2004
Location: On Planet Earth.
Distribution: Slackware 12
Posts: 244

Rep: Reputation: 30
Hi

can you post your fstab file ?
 
Old 07-28-2006, 04:07 AM   #6
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
When you're logged in as matrix, run the `id` command. It will always tell you what your uid and group memberships are. They are probably not what you think they are. You do have write access to the optical drive or somethings been made suid that probably didn't need to be.
 
Old 07-28-2006, 04:12 AM   #7
stevesk
Member
 
Registered: Dec 2004
Distribution: Slackware-current
Posts: 207

Original Poster
Rep: Reputation: 30
Hey people! Problem solved! I had to edit my /etc/login.defs and change a line from:

CONSOLE_GROUPS floppy:audio:video:cdrom

To:

CONSOLE_GROUPS floppy:audio:video

I didn't know about it, but this line is a config for:

# List of groups to add to the user's supplementary group set
# when logging in on the console (as determined by the CONSOLE
# setting). Default is none.
#
# Use with caution - it is possible for users to gain permanent
# access to these groups, even when not logged in on the console.
# How to do it is left as an exercise for the reader...


Thanks to gbonvehi and everyone who helped me! (exception: ProtoformX)

Last edited by stevesk; 07-28-2006 at 04:14 AM.
 
  


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
no CDROM play for SL 4 on a Dell LatitudeD610 stupendus Linux - Laptop and Netbook 3 04-25-2006 08:25 AM
Kaffeine, won't play a DVD but will play individual VOB files? GameGuru Linux - Newbie 12 07-08-2005 01:33 AM
cdrom audio play as user lestoil Slackware 9 06-22-2005 11:08 AM
Err..Can not play cd from cdrom lunajlt Linux - Hardware 5 10-15-2004 04:44 PM
How to play files from cdrom (Xbox/Debian)? Alfastation Linux - Newbie 3 10-18-2003 09:44 AM

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

All times are GMT -5. The time now is 02:31 AM.

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