The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
create user like root pascalbout AIX 10 02-09-2009 05:30 PM
switching user from root to ordinary user sasia Shell Programming and Scripting 3 01-25-2008 10:25 PM
Su to user from root nitin Shell Programming and Scripting 3 10-25-2006 03:21 AM
Other than root user .Normal user is unable to create files mallesh UNIX for Advanced & Expert Users 1 06-22-2005 12:18 PM
root user hassan2 UNIX for Advanced & Expert Users 1 05-29-2002 02:15 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-04-2008
lo-lp-kl lo-lp-kl is offline
Registered User
  
 

Join Date: Jul 2004
Location: Mexico
Posts: 157
Root user

Hello everyone

I have a question ?

Its possible to create another user exactly as root?

If not its possible what options I have to create a user like root.

Thanks for your comments.


Greetings
  #2 (permalink)  
Old 12-04-2008
Ikon's Avatar
Ikon Ikon is offline Forum Advisor  
Registered User
  
 

Join Date: Jul 2008
Location: Phoenix, Arizona
Posts: 669
its usually best practice to not allow root login directly.

man sudo
  #3 (permalink)  
Old 12-05-2008
ravager's Avatar
ravager ravager is offline
Registered User
  
 

Join Date: Sep 2005
Posts: 127
Reply yes it is possible this is some times used to allow operations to do some tasks
But this is not good practice if you leave this user open. There are a few things you can do to make this save and workable. New in AIX is also role base access controls and this is a better way to control users access to some tasks.
have a look at

http://download.boulder.ibm.com/ibmd...ovies/RBAC.wmv
  #4 (permalink)  
Old 12-05-2008
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
  
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,628
Generally speaking (this is not limited to AIX) every user with a user-id of 0 (zero) becomes a de-facto root user with a different login name and a different $HOME.

Still, as ravager already said, this arises several problems and is NOT recommended practice. I suggest you explain what you really want to achieve and probably there are other - better - ways to do this.

One problem for example is that several tools get their information from /etc/passwd and implicitly rely on this database being unambigous. "ls", for instance, is one of these tools: if you issue an "chown myadmuser file" for some root-equivalent user "myadmuser" with UID 0 and then do an "ls -l" you will see that the owner si displayed as "root" - simply, because "root" si the first entry to match UID 0 in /etc/passwd.

I hope this helps.

bakunin
  #5 (permalink)  
Old 12-05-2008
pchangba1 pchangba1 is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 13
I have done this just today

Though this is not a good practice ...i had to do coz of my requirement

add a user (say "adm") assign the primary group of the user to "system"

#useradd -g <primary_group> <user_name>
#useradd -g system adm
set the password of user "adm"
#passwd adm
then
edit the file /etc/passwd using vi editor and change the UID of the user "adm" to 0(zero)
now login as user "adm" the user "adm" will be like root

THIS IS NOT A GOOD PRACTICE THOUGH IT WORKS
  #6 (permalink)  
Old 12-12-2008
lo-lp-kl lo-lp-kl is offline
Registered User
  
 

Join Date: Jul 2004
Location: Mexico
Posts: 157
root user

Thanks for your comments

One more question about sudo.

I find a link about it

Sudoers Manual

Do you have another to talk about it.

All this for security, weakness and strength,etc.


Thanks again for the comments
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:55 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0