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.
Hi, i'm having some problems to understand the role of the /etc/group file. According to the slackware book, it was supposed to have a list of groups... something like:
cvs::102:chris,logan,david,root // This is just an example
The fields are group name, group password, group ID, and group members, separated by commas. But take a look at the following lines.
milosevic@slackws:~$ id
uid=1000(milosevic) gid=100(users) groups=100(users),11(floppy),17(audio),18(video),19(cdrom)
As you can see, the id command tells me i'm in the group floppy, but i'm not. I wanna know why this is going on. Besides, if i change the floppy::11: to
floppy::11:milosevic , i am still not able to mount the floppy drive, why?
Originally posted by Milosevic /dev/fd0 /mnt/floppy auto noauto 0 0
Add user to the noauto section, i.e. noauto,user and if you want to open it as read/write add rw. Something like this:
Code:
/dev/fd0 /mnt/floppy auto noauto,user,rw 0 0
Also the /etc/group file should show you as members of whatever groups you added your username to when you created the user with the -G this,that,other,group. For instance:
This will create username the -m will create the home directory and the -G will add the user to the three groups, seperated by commas and no spaces, listed and will specify bash as the shell.
BTW, here is my /etc/group file, edited to just show the groups I'm in:
How are the extra groups, floppy, audio,video, and cdrom getting assigned to the usedid, becasue they 'aint in /etc/group. I ask because I'm seeing the same behaviour on my box, and I'm interested to know where they're being set.
#
# 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...
#
CONSOLE_GROUPS floppy:audio:video:cdrom
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.