Hi there everyone everywhere,

I created a few groups on my RedHat 6.2 system with password for them.
Here is what I did, as root :

[root@acolyte01 /root]# groupadd tstgrp
[root@acolyte01 /root]# gpasswd tstgrp
Changing the password for group tstgrp
New Password:
Re-enter new password:
[root@acolyte01 /root]#

Since I have shadow passwords installed, the encrypted password went in
/etc/gshadow while the plain text information went to /etc/group (as
expected).

[root@acolyte01 /root]# cat /etc/gshadow
...
tstgrp:/QJRLn.MYst7k::

[root@acolyte01 /root]# cat /etc/group
...
tstgrp:x:506:

Now my problem : when I try to 'newgrp tstgrp' (on another non-root
user), it asks for password but it ALWAYS responds with Permission
denied.

[root@acolyte01 /root]# su - kexkey
[kexkey@acolyte01 kexkey]$ id
uid=501(kexkey) gid=501(kexkey) groups=501(kexkey)
[kexkey@acolyte01 kexkey]$ newgrp tstgrp
Password:
newgrp: Permission denied
[kexkey@acolyte01 kexkey]$

After investigation, I noticed that newgrp, which calls getgrnam(),
seems to look in /etc/group only, not in /etc/gshadow.  To verify this,
I took the encrypted password in /etc/gshadow and put it in /etc/group.
And then what?  It worked!

Now, I don't want to manually take each group's encrypted password in
/etc/gshadow and put it in the world-readable /etc/group file.

I tried everything above on my other Linux distribution, and it worked
perfectly.  Anyone has an idea for my problem?

Thank you very much!
Etienne Larrivee
Acolyte-IT




_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to