- Code: Select all
role corman sPG
role_transitions admin
...
role default G
role_transitions corman
...
The default role can't transition to the admin role... BUT it can disable gradm altogether!
- Code: Select all
[root@c1inf047 ~]# gradm -a admin
Password:
Invalid password.
[root@c1inf047 ~]# gradm -D
Password:
[root@c1inf047 ~]#
It says "Invalid password." but I did type it correctly. Not sure if that's the intended error message; the docs seem to indicate it would instead give a "Permissions denied" error. So that's another problem I see here.
The role transition from default to corman to admin works:
- Code: Select all
[root@c1inf047 ~]# gradm -p corman
Password:
[root@c1inf047 ~]# gradm -a admin
Password:
[root@c1inf047 ~]# gradm -D
Password:
[root@c1inf047 ~]#
Is it just me, or should the admin role (or a role with the A flag) be the only role able to disable gradm?
If having any role that can run gradm being able to disable gradm is the intended behavior... I guess I can see why. Wondering if there is a way to restrict the disabling of gradm to a role with the A flag only.