Create another root account


 
Thread Tools Search this Thread
Operating Systems AIX Create another root account
# 8  
Old 11-06-2014
Thank igalvarez for your suggestion

Finally, I have created an account ~ root, using RBAC SmilieSmilieSmilie

Thanks all guys, too SmilieSmilieSmilie
# 9  
Old 11-09-2014
I have got a problem.
I have added all default roles to my user ( root2 )
Code:
lsuser -a roles root2
root2 roles=AccountAdmin,so,FSAdmin,sa,BackupRestore,DomainAdmin,SecPolicy,SysBoot,SysConfig,isso

but this user can't execute this command
Code:
bootlist -m normal -o

Then I maked "testrole" and added that command to it.
The problem is : when I "swrole" to testrole ( only one role ), I could execute that command. But when I "swrole" to testrole and these default role ( 11 roles in total ) , I couldn't execute that command anymore SmilieSmilieSmilie.

Somebody knows how to fix this ???
# 10  
Old 11-10-2014
bootlist is a privilege command as shows:

lssecattr -c -F ALL

Code:
/usr/bin/bootlist:
        accessauths=aix.system.boot
        innateprivs=PV_DAC_R,PV_DAC_X,PV_KER_VARS
        inheritprivs=PV_AU_ADD,PV_AU_PROC,PV_DAC_R,PV_DAC_W,PV_DAC_X,PV_DEV_CONFIG,PV_KER_VARS
        secflags=FSF_EPS

In red you can see it belongs to authorizations 'aix.system.boot'
So, if you go to AIX roles

lsrole -f ALL

this authorization is part of role 'SysBoot'

I think you need to add the role 'SysBoot' to your root2 user

Hope this helps.
# 11  
Old 11-10-2014
Quote:
Originally Posted by bobochacha29
I have got a problem.
I have added all default roles to my user ( root2 )
You got already advice about how to deal with your imminent problem. I would like to add some general remarks about RBAC: my professional experience is to better stay away from RBAC (as well as ACLs, for that matter, and for similar reasons) and restrict yourself to the classical user rights management UNIX offers.

The UNIX privilege model is very simple and - at first sight - not very flexible. On the other hand, as long as you stay within its boundaries it can be managed with an absolute minimum of effort. Any query or change, regardless of addressing a single user or many, a single file or many, can be done in a minimum of steps and in most cases only one command is needed.

RBAC (and ACLs as well) offer the ability to use a much more fine-grained model. Allow userA to execute cmdB but not cmdC and userB the other way round, etc.. This is an alluring prospect but if you really start to put all these offered capabilities into practice and quite soon you have system which is way too complex to be handled effectively. Instead of a simple "ls -l" you need to cross-corelate long lists of "userA is able to execute cmdB only when ... and then only at ... but not in the presence of ... except if ...". Once you got through all the ifs, whens, and excepts you probably have forgotten what you originally wanted to do in first place.

In short: UNIX privilege management is very simplistic, but it is so for a reason: stick with it and you always have a manageable system. Use all the fancy additional possibilities (RBAC, ACLs, even both) and very likely you will be able to solve a singular problem more easily but in the long run end up with a system which is hard (if not impossible) to manage and a privilege structure which is neither easily nor quickly adapted to changing demands.

I hope this helps.

bakunin
# 12  
Old 11-10-2014
RBAC, as bakunin said, it's not easy to manage. But it's not impossible either to create your own roles and enable it on your system.
In our case, we have more than 6 system admins and if all of them use root account, it's dificult to audit your system. Here's where RBAC is useful, because you can enable it for all system administrator and everyone do the work ( as root), but using with their users.

Also, it's very possitive and welcomed by auditors.

To teel you the true, we are happy with RBAC. Smilie

Cheers
# 13  
Old 11-10-2014
But why waste time when it takes you less than 5 minutes to configure sudo to do the same? Even better - e.g. without having to enter a passwd when root...
All the best

Last edited by vbe; 11-10-2014 at 11:58 AM..
# 14  
Old 11-10-2014
Hi vbe,

First, I'm not saying RBAC is better than others solutions you have said above. I just told bobochacha29 what we use in our enviroment.

My waste of time is simple:
There're a lot of users logged on on production enviroment. All these users are from differents groups, execute differents commands, etc etc. Some of them SU to another common account to make their tasks. Others system admins used only root account. So, after a an audit we deciced to use RBAC, so everyone use its personal account.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Recover root account

Hi everyone! I've got a problem caused by another who did: - He create an user and grant the group (1) to this - The problem appears as "Permission deined when reboot the Server Dec 21 09:13:09 payment dtlogin: open_pam_conf: Owner of /etc/pam.conf is not root Dec 21... (4 Replies)
Discussion started by: trantuananh24hg
4 Replies

2. Solaris

how to su - from non root acount to non root account

HI i am trying to give su access to some users say X Y and Z to a account AB . I am able to give them su access to root with the help of sudoers file but i want to give them password less access to AB account which i am not able to do . I want to this when user X fires "su - AB" he is not... (9 Replies)
Discussion started by: rishiraaz
9 Replies

3. UNIX for Dummies Questions & Answers

Root account!

Is it possible to create more than one root account? Thanks, Jorge (4 Replies)
Discussion started by: jofonseca99
4 Replies

4. Solaris

Root account - disable expiry

I couldnt find this in any other post - so hoping someone can help out. I want to set password expiry (or rather I have to) for a number of users on my solaris 9 system. I know i can set the following options in the /etc/default/passwd file to do it and then just type a passwd -f <username> to... (6 Replies)
Discussion started by: frustrated1
6 Replies

5. AIX

Can't login root account due to can't find root shell

Hi, yesterday, I changed root's shell in /etc/passwd, cause a mistake then I can not log in root account (can't find correct shell). I attempted to log in single-mode, however, it prompted for single-mode's password then I type root's password but still can not log in. I'm using AIX 5L version 5.2... (2 Replies)
Discussion started by: neikel
2 Replies

6. UNIX for Advanced & Expert Users

Root account is expired

Hi all, I am using redhat linux version 9 .I am unable to login to the system and i am getting a warninig sorry root account is expired . How can i activate the account. (2 Replies)
Discussion started by: mallesh
2 Replies

7. Solaris

Renaming of root account

Hi, I have solaris 7. Just for implementing security on my system, I would like to know can I rename the root account to something else. After renaming will my os still function properly. Regards, (2 Replies)
Discussion started by: RajaRC
2 Replies

8. AIX

root account has been locked

I'am set the root account locked ON, using smitty, so I can't login or su with root user in my AIX system, some one can help me to unlock root account login ???, sample : :~>su root's Password: 3004-301 Your account has been locked; please see the system administrator. 3004-501 Cannot su to... (1 Reply)
Discussion started by: Maker
1 Replies

9. UNIX for Dummies Questions & Answers

create or modify user account to have same access as root

Is there a way to create or better yet modify a user account so it has the same privs as root? (6 Replies)
Discussion started by: xadamz23
6 Replies
Login or Register to Ask a Question