users list in /etc/group
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) Now look at the /etc/group file: 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: 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::90:pop scanner::93: nobody::98:nobody nogroup::99: users::100: console::101: 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? Txs. |
what's in /etc/fstab for your floppy drive? probably only the owner can mount it.
|
/dev/fd0 /mnt/floppy auto noauto 0 0
|
Quote:
Code:
/dev/fd0 /mnt/floppy auto noauto,user,rw 0 0 Code:
useradd username -m -G floppy,cdrom,audio -s /bin/bash BTW, here is my /etc/group file, edited to just show the groups I'm in: Code:
sys::3:root,bin,adm,mmyoung,test MMYoung |
As a follow on question:
Quote:
Cheers, Eddie |
Look at /etc/login.defs :
Code:
# |
Thanks. Always wondered where they came from. :D :D :D
Cheers, Eddie |
All times are GMT -5. The time now is 05:32 PM. |