Question: /etc/group


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Question: /etc/group
# 1  
Old 04-07-2009
Question: /etc/group

Hi Expert,

I am newbies here.

When I do cat /etc/group

it will list example:

cdrom:x:24
floppy:x:19
postfix:!:51
avahi:!:105

I can see the following:

My question are as below:

1. why there is x sign, what is the meaning of that?

2. why there is ! sign, what is the meaning of that?

Thank you in advance.
# 2  
Old 04-07-2009
Quote:
Originally Posted by regmaster
Hi Expert,

I am newbies here.

When I do cat /etc/group

it will list example:

cdrom:x:24
floppy:x:19
postfix:!:51
avahi:!:105

I can see the following:

My question are as below:

1. why there is x sign, what is the meaning of that?

2. why there is ! sign, what is the meaning of that?

Thank you in advance.
cdrom:x:24:vivek,student13,raj
_____ _ _ _____
| | | |
| | | |
1 2 3 4
1-->group name
2-->Generally password is not used, hence it is empty/blank.or 'x' if the password hash is stored in /etc/shadow
3-->User ID, uid - number for this user
4-->Group List: It is a list of user names of users who are members of the group. The user names, must be separated by commas.
# 3  
Old 04-07-2009
Thanks vidyadhar85.

But what about the ! sign?
# 4  
Old 04-07-2009
/etc/shadow is associated with /etc/passwd. Some systems support an /etc/gshadow but it is rarely used. Putting an x or a * in that field is common. Putting a ! is something I haven't seen before. The exact character chosen means nothing to the software. Maybe I will will use a P the next time I do one. That won't mean anything either. The important thing is to not leave the field blank. Leaving it blank allows anyone to set themselves to that group by using the old newgrp command.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

awk question in relation to finding "top 3" by group.

Hi, I have a file that contains 3 key element fields with the fourth being a total value, something along the lines of this "Site,Region,Town,Total" . What I need to be able to do is find out the top 3 totals by Site using an AWK program. In my efforts so far I have managed to create either a... (2 Replies)
Discussion started by: timberley
2 Replies

2. UNIX for Advanced & Expert Users

Group permissions question

I have a user who has had an id change. His old id was xl00 his new id b000999. Both id's are in group bauser. The user now cannot access his old files even though he is in the same group and permissions seem to be ok. See below, first 2 files he can't see, second two are no problem. ... (2 Replies)
Discussion started by: dw82199
2 Replies

3. Shell Programming and Scripting

need a one liner to grep a group info from /etc/group and use that result to search passwd file

/etc/group tiadm::345:mk789,po312,jo343,ju454,ko453,yx879,iy345,hn453 bin::2:root,daemon sys::3:root,bin,adm adm::4:root,daemon uucp::5:root /etc/passwd mk789:x:234:1::/export/home/dummy:/bin/sh po312:x:234:1::/export/home/dummy:/bin/sh ju454:x:234:1::/export/home/dummy:/bin/sh... (6 Replies)
Discussion started by: chidori
6 Replies

4. Shell Programming and Scripting

Merge group numbers and add a column containing group names

I have a file in the following format. Groups of data merge together and the group number is indicated above each group. 1 adrf dfgr dfg 2 dfgr dfgr 3 dfef dfr fd 4 fgrt fgr fgg 5 fgrt fgr (3 Replies)
Discussion started by: Lucky Ali
3 Replies

5. UNIX for Dummies Questions & Answers

user & group read/write access question

folks; I created a new users on my SUSE box and i need to give this user/group a read write access to one specific folder. here's the details: - I created new user "funny" under group "users". - I need to give this user "funny" a read/write access to another directory that is owned by "root".... (3 Replies)
Discussion started by: Katkota
3 Replies

6. UNIX for Dummies Questions & Answers

group & user permission question

Folks; I'd like to create a group on my Linux box & add a few users to it. Is there a way to do so and restrict this group/users to have access to only one or directory trees? Let's say i need this group to only have a read write access to only these two directories /opt/Virtu & /fsn/comers ... (10 Replies)
Discussion started by: Katkota
10 Replies

7. UNIX for Dummies Questions & Answers

home directory & group in UNIX question

folks; I'm going to use LDAP on Solaris 10 to authenticate users, i have 3 questions, i'm hoping it can be possible: 1. when users login for the first time, Is there a way to auto create a home directory like "/home/"user_name" so we don't have to a create a home directory for every single... (3 Replies)
Discussion started by: Katkota
3 Replies

8. Solaris

newbie question on server spamming exchange group list.

At work we just reinstalled a new system and started scheduled backups. It is spamming all users through exchange with 'Superuser' email stating: 'x server doing down for unscheduled maintance'. Can be literally 10-20 super user email. At the moment we do not want to completely stop the email.... (1 Reply)
Discussion started by: pmoores
1 Replies

9. Solaris

/etc/group question

is there a O/S command in solaris 9 that adds a user to a group? Or do you have to do it manually? (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies
Login or Register to Ask a Question