A
A
Azazel72014-10-16 15:55:43
linux
Azazel7, 2014-10-16 15:55:43

Why aren't passwords encrypted in the group shadow password file (/etc/gshadow)?

Why are passwords not encrypted in the shadow password file for groups ( /etc/gshadow ), but for users ( /etc/shadow ) everything is normally stored in encrypted form.
Through groupadd -p qwerty123 test the password is not encrypted why??
By default, is it necessary to configure something for groups? and how to make them encrypted there?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rrooom, 2014-10-16
@Rrooom

Because we read the documentation, and do not poke a finger into the sky. It became interesting, the first link in Google - www.computerhope.com/unix/groupadd.htm
We read. And we find out that the -p option does not ask for the password itself, but for a string already encrypted by crypt.

G
Glueon, 2014-10-16
@Glueon

The encryption type is specified in /etc/login.defs and applies to both /etc/shadow and /etc/gshadow.
And I don't think it can be turned off. ENCRYPT_METHOD does not accept a method of type PLAIN

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question