Group Password in Unix

1) Why Group password is hardly used in Unix?
2) In /etc/group all my groups do not have password i.e
<groupname>: :<users> -> the password's field is blank, in this case I believe that the password is not set, but why if users would like to change group i.e newgrp <group> they asked for a password? I checked on /etc/gshadow the following group does not have encrypted password in the file.
3) Suppose that I add a new group by runnning command like
groupadd <newgroup>, How to add a new group without having set a new password for them?
kecoakAsked:
Who is Participating?
 
biraConnect With a Mentor Commented:
to understand group password:

Usually, you'll want to change into only these groups in which you're already a member; that is, groups that have your username mentioned on their line in the /etc/group file. However, the newgrp command also allows you to change into a group of which you're not normally a member. For this purpose, UNIX uses the group password field of the /etc/group file. If you try to change into a group of which you're not a member, the newgrp command will prompt you for that group's password. If the password you type agrees with the password for the group stored in the /etc/group file, the newgrp command temporarily puts you into the group by spawning a subshell with that group:

$ newgrp fiction
password: rates34
$
You're now free to exercise all of the rights and privileges of the fiction group.


0
 
gheistCommented:
1) Because it serves almost no purpose, and complexizes process management.
2) Please post output of "uname -a" for more exlanation. Behavior is system-specific.
3) read (2), and who are "them" ???
0
 
gheistCommented:
Depending on system type it may or may not work.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
kecoakAuthor Commented:
Slackware 10.2
0
 
gheistCommented:
as bira described then.
0
 
ahoffmannCommented:
unix/linux do not have something like "group passwords", use ACLs for that
0
 
psv123456Commented:
1) It's a security risk!

2) see above

3) see above
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.