SlackwareThis 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.
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.
Distribution: RHEL,Fedora, CentOS, Slackware 12 & wrestling with LFS
Posts: 86
Rep:
/dev/cdrom permission issue.
I'm running Slackware 12 and found this issue which happens after every reboot. /dev/cdrom is a soft link to /dev/hdc. By default the permission on this device file is 660. Now, when i run mplayer and access a DVD/VCD I get a error which says "/dev/cdrom not such file or directory" even though the file is present. When i use XINE and access the DVD/VCD, XINE says permission denied on /dev/cdrom. So I changed the permission on /dev/hdc as 666. This solved the problem with mplayer as well. However, when there is a reboot, the permission becomes 660 again. Is there a permanent solution for this?
I think of the right way is to add user at group cdrom, not to change permissions of devices. For to add kutty user at cdrom group, type this command under root:
# usermod -G cdrom kutty
and relogin after
edit: if cdrom group do not exist, create it before by this command (under root):
# groupadd cdrom
Run "id" as the user. Most of the groups you need are automatically set for you when the user logs in.
Cheers.
I've always wondered how the groups are automatically set for users. As far as I can see, I don't have any entry for my username in '/etc/group' (except for my primary GID in '/etc/passwd'), yet 'id' shows me as members of other groups.
I've always wondered how the groups are automatically set for users. As far as I can see, I don't have any entry for my username in '/etc/group' (except for my primary GID in '/etc/passwd'), yet 'id' shows me as members of other groups.
Can anyone briefly explain this?
You should look at the '/etc/login.defs' file;
Code:
excerpt from;
~# cat /etc/login.defs |less
# 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...
#
# Most of these groups are self-explanatory, with the possible
# exception of "plugdev", which allows the use of plugable devices
# such as USB storage (flash memory sticks, most digital cameras,
# some media players, and other devices), many IEEE1394 (sometimes
# called "FireWire") devices, and more. For plugdev devices, the
# use of HAL is required. HAL also helps users interact with
# hardware in the other groups below (and other hardware) more
# easily as well, so it's a good idea to turn HAL on for any
# machine that will be used from the console.
#
# Note that users are added to these default groups only when
# logging into a shell with /bin/login, not when using a login
# manager such as kdm. In that case, users who should have
# hardware access must be added to the appropriate groups
# when the user is added with adduser or useradd, or by editing
# /etc/group directly.
#
CONSOLE_GROUPS floppy:audio:cdrom:video:plugdev
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.