List users who have administrative access

Hi ,
Could you please give me the commands for the following.

1.list users who have direct access to solaris database at os-level
2.list users who have administrative access at os-level in solaris

Please also let me know how to figure out these specific users i need from a output which has many users that i dont need.

Thanks

james

Administrative rights are only accessible to root, however if you want to delegate rights in that case you have to create something which is called roles and user need to be assigned to those roles. To find what kind of role is assign to individuals user you can try roles <username > to find the roles which are granted to the given user . roles which is given to user can be view into the file /etc/user_attr.

thanks kumar,

actually i need to show a system generated output of users with administrative access & also users with access to the database.is there any commands.

I am not sure however you can try

The contents of the following files coupled with a working understanding of Unix will provide the needed information.
/etc/passwd
/etc/group
/etc/sudoers (or /usr/local/etc/sudoers)

Database access depends on how the database is configured and your DBA can help you with that.

you can check this:
# grep "userA" /etc/user_attr
or
after su - userA
#roles
This will provide the roles assigned to this user

Thankyou all