Page 1 of 1

simple problem with gradm -P admin?

PostPosted: Wed Jan 04, 2006 9:46 pm
by Raf256
root@lore:/etc/grsec# gradm -a admin
Password: <the password>
Invalid password.
root@lore:/etc/grsec# gradm -P admin
Setting up password for role admin
Password: <I type: 123123>
Re-enter Password: <I type: 123123>
Password written to /etc/grsec/pw.
root@lore:/etc/grsec# gradm -S
Checking The RBAC system status...
The RBAC system is currently enabled.
root@lore:/etc/grsec# gradm -u
You are not in a special role.
root@lore:/etc/grsec# gradm -a admin
Password: <I type: 123123>
Invalid password.

Hm... huh? What can be wrong?
2.6.14.5-grsec-b+gb+kernexec1-k8reg-pg4
Using newest ~spender/ grsecurity

PostPosted: Wed Jan 04, 2006 9:57 pm
by Raf256
Deleting old passwords file and freshly settings password did helped.

658 mv pw pw.2
659 gradm -P
660 gradm -E
662 gradm -P admin
663 gradm -E
664 gradm -a admin

I was able to log into the admin role, but when I tried to change the password after logging out of it - it failed:
Code: Select all
root@lore:/etc/grsec# gradm -u
root@lore:/etc/grsec# gradm -P admin
Setting up password for role admin
Password:
Re-enter Password:
Password written to /etc/grsec/pw.
root@lore:/etc/grsec# gradm -a admin
Password:
Invalid password.
root@lore:/etc/grsec#



It seems one can not change once choosen password for special role?
Although there is no problem with changing the main RBAC system password (gradm -P)

Sorry for lame question