Root user


 
Thread Tools Search this Thread
Operating Systems AIX Root user
# 1  
Old 12-04-2008
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  
Old 12-04-2008
its usually best practice to not allow root login directly.

man sudo
# 3  
Old 12-05-2008
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  
Old 12-05-2008
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  
Old 12-05-2008
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  
Old 12-12-2008
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to Switch from Local user to root user from a shell script?

Hi, I need to switch from local user to root user in a shell script. I need to make it automated so that it doesn't prompt for the root password. I heard the su command will do that work but it prompt for the password. and also can someone tell me whether su command spawns a new shell or... (1 Reply)
Discussion started by: Little
1 Replies

2. UNIX for Dummies Questions & Answers

Switching from root to normal user takes me to user's home dir

Whenever i switch from root to another user, by doing su - user, it takes me to home directory of user. This is very annoying as i want to be in same dir to run different commands as root sometimes and sometimes as normal user. How to fix this? (1 Reply)
Discussion started by: syncmaster
1 Replies

3. Shell Programming and Scripting

How to give root access to non root user?

Currently in my system Red Hat is installed. And Many user connect to my machine via SSH Techia Terminal. I want to give some users a root level access. Can anyone please help me how to make it possible. I too searched on the Google but didn't find the correct way Regards ADI (4 Replies)
Discussion started by: adisky123
4 Replies

4. UNIX for Advanced & Expert Users

Root and non-root user not able to delete the file

Hi!! one strange problem occurred with my RHEL 5 box. i'm having logs folder with ownership of non-root user. Created some files with root user under logs folder. here is the scene: -rw-r----- 1 root root 1048227 Feb 28 12:34 SystemOut_13.02.28_12.34.10.log -rw-r----- 1 root root ... (6 Replies)
Discussion started by: sukhdip
6 Replies

5. Shell Programming and Scripting

How to Login as another user through Shell script from current user[Not Root]

Hi Every body, I would need a shell script program to login as different user and perform some copy commands in the script. example: Supppose ora_toms is the active user ora_toms should be able to run a script where user: ftptomsp pass: XXX should login through and run the commands ... (9 Replies)
Discussion started by: ujjwal27
9 Replies

6. UNIX for Dummies Questions & Answers

Sudo to delegate permission from non-root user to another non-root user

I've been through many threads before i decide to create a separate thread. I can't really find the solution to my (simple) problem. Here's what I'm trying to achieve: As "canar" user I want to run a command, let's say "/opt/ocaml/bin/ocaml" as "duck" user. The only to achieve this is to... (1 Reply)
Discussion started by: canar
1 Replies

7. Solaris

java version mismatch for normal user and root user

:confused: I installed latest version of java ( jre 1.6) on Solaris Machine ......when I run java -version as root, shows the latest version but when I run java -version as normal user, shows the old / previous version What should I do to fix this ...should show the latest version... (3 Replies)
Discussion started by: frintocf
3 Replies

8. UNIX for Dummies Questions & Answers

How to allow access to some commands having root privleges to be run bu non root user

hi i am new to unix and i have abig task. i have to \run particular commands having root privileges from a non root user. i know sudo is one of the way but i need sum other approach kindly help Thanks (5 Replies)
Discussion started by: suryashikha
5 Replies

9. Shell Programming and Scripting

root user command in shell script execute as normal user

Hi All I have written one shell script for GPRS route add is given below named GPRSRouteSet.sh URL="www.google.com" VBURL="10.5.2.211" echo "Setting route for $URL for GPRS" URL_Address=`nslookup $URL|grep Address:|grep -v "#"|awk -F " " '{print $2}'|head -1` echo "Executing ... (3 Replies)
Discussion started by: mnmonu
3 Replies

10. UNIX for Advanced & Expert Users

Other than root user .Normal user is unable to create files

Hi all, I am using Sun Solaris 9 .In this system normal users unable to create files from the command line.I added these users in bin,adm and even root group i found them unable to create a file. (1 Reply)
Discussion started by: mallesh
1 Replies
Login or Register to Ask a Question