Solved

RBAC in AIX 5.2

Posted on 2004-03-22
8
1,430 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 62

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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 62

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
 

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 62

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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

831 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