[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 488
  • Last Modified:

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?
0
kecoak
Asked:
kecoak
1 Solution
 
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
 
biraCommented:
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:
Depending on system type it may or may not work.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now