Solved

RBAC in AIX 5.2

Posted on 2004-03-22
8
1,421 Views
Last Modified: 2013-12-06
Hi,

How to configure role based access control in AIX 5.2?
eg. A nornal user can run "topas" cmd. without any administrative group.

I hv configured the same in Solaris 8.

Please suggest.

Thanks,
rishi
0
Comment
Question by:rishi_dongre
  • 3
  • 3
  • 2
8 Comments
 
LVL 20

Expert Comment

by:Gns
ID: 10649290
Look at "smitty roles" and "smitty chuser" ... You can set the RunDiagnostics role for a regular user, but the user still needs be of group "system" (decreed by the role) for the diagnostics to be available. To run "topas" the user needs system group membership (to be able to read /dev/mem), but no specific role... To run "diag" you need be part of "system" group _and_ have the role RunDiagnostics...;-)
Or am I missreading you?
Anyway, there is a http://www.experts-exchange.com/Operating_Systems/AIX_IBMs_UNIX_OS/ TA now that one can use for AIX questions. Perhaps wouldn't change the answer:-).

-- Glenn
0
 
LVL 61

Accepted Solution

by:
gheist earned 75 total points
ID: 10651964
You can avoid system group to setting specific groups for read access (chmod 00640) to /dev/mem /dev/kmem (maybe /dev/drum)
then limit access to respective programs to those groups or so.
this is ugly, aix chkpwd will suffer from this or so
look at www.bullfreeware.com for monitor package, it does almost this
0
 

Author Comment

by:rishi_dongre
ID: 10655243
Friends,
Thanks for ur comments. But i am looking for the option like RBAC(available in solaris) or sudo.

Thanks
rishi
0
 
LVL 61

Expert Comment

by:gheist
ID: 10655330
sudo is in same BULL freeware archive ....
roles based access control is available in AIX just like Gns explained
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:rishi_dongre
ID: 10655407
i searched for sudo and found in for AIX5.1.
I m running 5.2. Will it help?
0
 
LVL 20

Assisted Solution

by:Gns
Gns earned 50 total points
ID: 10656089
Most freeware stuff for 5.1 will "just work" for 5.2 (I've recently "been in the same shoes":-). Unfortunately, monitor doesn't seem to be one of them (probably due to massaging kernel structures etc, so that even slight changes makes it "bomb"). At least, didn't work for me:-(

You can of course define your own roles... You could edit the files in /etc/security directly, but there are nice commands... That smit "hides" behind a nice interface (well:-).
man roles
man mkrole
etc.
But you will be limited to the authorizations available (use either wsm or smitty to play with some tests...:-).
To run topas, I'd imagine you could very well just add a group acl to /dev/mem ... Now trying:-)
Yup, add a "read only" acl and you'll be able to run topas. The downside is of course security, but that might not be such a big deal.
man aclget aclput acledit
for more info on acls. BTW, the acl looks like this for me
# aclget /dev/mem
attributes:
base permissions
    owner(root):  r--
    group(system):  r--
    others:  ---
extended permissions
    enabled
    permit   r--     g:staff

sudo will be more generic in nature, and more flexible... So it might not be a bad idea to look at anyway.

-- Glenn
0
 

Author Comment

by:rishi_dongre
ID: 10656476
Thanks GNS, Ghiest for your valuable time.

I installed sudo from my cd and configure.
And my problem solved.
0
 
LVL 61

Expert Comment

by:gheist
ID: 10656658
Anyway - have a look here
http://www.sudo.ws/sudo/other.html
it mentions some AIX facilities too
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Best software for Unix commands in Windows cmd.exe? 18 102
Ubuntu install gnome-session-fallback is failing 4 101
unix in java example 9 53
Solaris 4.1.3 cloning and booting 13 72
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now