login as oracle user but prompt show [root@ablnx oracle] how come?
Friends,
RHEL AS 3 when ever i log in as oracle user. the prompt is showing [root@ablnx oracle] how the oracle user is changing in to root? how can i make the prompt to display [oracle@ablnx oracle]? thanks |
First the silly question: are you sure you logged as oracle user? Try
Code:
who am i |
thanks for your reply.
when i type [root@ablnx oracle]# who am i oracle tty1 Aug 21 10:39 when i type [root@ablnx oracle]# whoami root how/where to see the environment variable ps1? |
ok....here .... the ps1 values
echo $PS1 [\u@\h \W]\$ |
Quote:
Code:
echo $PS1 Code:
[\u@\h \W]\$ Regarding the different output of the "who am i" commands, take in mind that whoami is the same as id -un, whereas who am i is the command who with two special arguments. The different output can be related to the way you logged in as user oracle. What is it? For example, by using the su command you retain the id of the original user and whoami acts accordingly. |
Quote:
|
i have set id:3:initdefault for full multiuser mode.
ablnx login: oracle password: password thats it....am i right? |
It looks right. Sincerely I am almost lost, here. Just a last question: what is the output of
Code:
id |
[root@ablnx oracle]# id
uid=0(root) gid=0(root) groups=0(root) "how the user oracle has been created?" Actually i didnt create this user.....the admin who was here before.....created this oracle user. now i am using this one. |
This tells you that oracle is actually root. Like an alias for the username. I don't know how it is possible, but you have to investigate the user accounts and try to understand what's going on. And expecially if there is a reason for that.
|
Quote:
IMHO it should be changed to something reasonable |
yes.....i think....by seeing this output you can help me...
below is the output of my production server [root@ablnx oracle]# cat /etc/passwd oracle:x:501:501::/home/oracle:/bin/bash here is the output of my test server (this is my problem) [root@ablnx oracle]# cat /etc/passwd oracle:x:0:0::/home/oracle:/bin/bash what to do now? |
First be sure you have a valid root account. Then you can try the command usermod to modify the UID and the GID of the user oracle. Or eventually you can delete it and create it again with the proper UID and GID. Be careful to not delete its home directory. After that, most likely you have to change the ownership of some files and directories, using chown as root.
|
All times are GMT -5. The time now is 06:36 PM. |