Solaris 10 login problem. need guru's help.

I posted the same question a few days ago. Mor than 150 persons reviewd it. But noone could answer my question. Is there real expert or guru out there to help me out? Here is the question again.

I isntalled solaris 10 on Sun sparc 64 bit machine. I can login as root user through GUI or console. After I created an Oracle user, I only can login as that user from console window. I tried to login from GUI (CED) window, it failed. Anyone know about this, please help me to figure out the reason and the method to fix it. Thanks for your help.

[554 byte] By [duke0001a] at [2007-11-26 12:44:52]
# 1
How did you create the Oracle user?
DoxBriana at 2007-7-7 16:23:04 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2

problem is, there are so many forums that each one

appears to have really low traffic, making them not

very effective tools to help with sysadmin.

IMO, they need to consolidate all of these forums

into one forum.

You might try comp.unix.questions or comp.unix.solaris

with better results.

etceteraa at 2007-7-7 16:23:04 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3

DoxBrian:

I created group and user like this:

1. /usr/sbin/groupadd oinstall

2. /usr/sbin/groupadd dba

3. /usr/sbin/useradd -c 'comment' -g oinstall -G dba -s /usr/bin/ksh oracle

Then I do usermod to set Oracle home directory

4. usermod -d /u01/app/oracle oracle

After this, I can login as oracle through console, the shell become $, not #. This is because I set shell as ksh. When I tried to log in through GUI, it failed without any information. Thanks for further advice.

duke0001a at 2007-7-7 16:23:04 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 4

> 3. /usr/sbin/useradd -c 'comment' -g oinstall -G dba

> -s /usr/bin/ksh oracle

>

> Then I do usermod to set Oracle home directory

>

> 4. usermod -d /u01/app/oracle oracle

> After this, I can login as oracle through console,

> the shell become $, not #. This is because I set

> shell as ksh.

$ is for users, # is for root.

ouput of:

ls -l /u01/app/oracle

ls -l /u01/app

ls - /u01

please

alan

alan.paea at 2007-7-7 16:23:04 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 5

> ls -l /u01/app/oracle

> ls -l /u01/app

> ls - /u01

>

> please

>

> alan

Alan:

Thanks for your help. Here is the information.

# ls -al /u01/app/oracle

total 8

drwxrwxr-x2 oracleoinstall512 Dec 14 15:35 .

drwxrwxr-x3 oracleoinstall512 Dec 14 15:00 ..

-rw-r--r--1 oracleoinstall511 Dec 14 16:21 .profile

-rw-1 oracleoinstall128 Dec 15 13:42 .sh_history

# ls -al /u01/app

total 6

drwxrwxr-x3 oracleoinstall512 Dec 14 15:00 .

drwxr-xr-x4 rootroot 512 Dec 14 15:02 ..

drwxrwxr-x2 oracleoinstall512 Dec 14 15:35 oracle

# ls -al /u01

total 8

drwxr-xr-x4 rootroot 512 Dec 14 15:02 .

drwxr-xr-x 34 rootroot1024 Dec 18 11:37 ..

drwxrwxr-x3 oracleoinstall512 Dec 14 15:00 app

drwxrwxr-x2 oracleoinstall512 Dec 14 15:02 oradata

# ls -al

total 510

drwxr-xr-x 34 rootroot1024 Dec 18 11:37 .

drwxr-xr-x 34 rootroot1024 Dec 18 11:37 ..

drwxr-xr-x 12 rootroot 512 Dec 18 11:37 .dt

-rwxr-xr-x1 rootroot5111 Dec 14 14:12 .dtprofile

drwx2 rootroot 512 Dec 15 16:02 .gconf

drwx2 rootroot 512 Dec 15 16:20 .gconfd

drwx3 rootroot 512 Dec 15 14:38 .gnome

drwx3 rootroot 512 Dec 14 14:34 .gnome2

drwx2 rootroot 512 Dec 14 14:34 .gnome2_private

drwx4 rootroot 512 Dec 14 14:34 .mozilla

drwxr-xr-x4 rootroot 512 Dec 14 15:25 .softwareupdate

drwx3 rootroot 512 Dec 14 12:00 .sunw

-rw-1 rootroot 75 Dec 18 11:37 .TTauthority

-rw-1 rootroot 161 Dec 18 11:37 .Xauthority

lrwxrwxrwx1 rootroot9 Dec 14 11:39 bin -> ./usr/bin

drwxr-xr-x2 rootroot 512 Dec 14 14:44 cdrom

drwxr-xr-x 20 rootsys 4096 Dec 18 11:36 dev

drwxr-xr-x2 rootsys 512 Dec 18 11:33 devices

drwxr-xr-x 81 rootsys 4608 Dec 18 11:34 etc

drwxr-xr-x3 rootsys 512 Dec 14 11:39 export

dr-xr-xr-x1 rootroot1 Dec 18 11:34 home

drwxr-xr-x 14 rootsys 512 Dec 14 11:48 kernel

drwxr-xr-x7 rootbin 5120 Dec 14 13:13 lib

drwx2 rootroot8192 Dec 14 11:38 lost+found

drwxr-xr-x2 rootsys 512 Dec 14 11:39 mnt

-rw-r--r--1 rootroot 846 Dec 15 11:00 mod_partition.txt

dr-xr-xr-x1 rootroot1 Dec 18 11:34 net

-rw-r--r--1 rootroot0 Dec 14 11:50 noautoshutdown

drwxr-xr-x9 rootsys 512 Dec 14 13:22 opt

drwxr-xr-x2 rootroot 512 Dec 15 15:08 Ora10DB

drwxr-xr-x 51 rootsys 2048 Dec 14 12:11 platform

dr-xr-xr-x 62 rootroot193216 Dec 18 11:53 proc

drwxr-xr-x2 rootsys 1024 Dec 14 12:11 sbin

drwxr-xr-x4 rootroot 512 Dec 14 11:39 system

drwxrwxrwt7 rootsys 843 Dec 18 11:37 tmp

drwxr-xr-x2 rootroot 512 Dec 14 14:12 TT_DB

drwxr-xr-x4 rootroot 512 Dec 14 15:02 u01

drwxr-xr-x 40 rootsys 1024 Dec 14 13:21 usr

drwxr-xr-x 44 rootsys 1024 Dec 14 14:12 var

dr-xr-xr-x6 rootroot 512 Dec 18 11:35 vol

I have found some different in /u01 part, but not sure. Please advise.

Also I set Oracle profile umask 022. Does this impact anything?

Thanks.

Message was edited by:

duke0001

duke0001a at 2007-7-7 16:23:04 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 6

> drwxrwxr-x2 oracleoinstall512 Dec 14 15:35

I don't like the looks of that for a home directory.

Here is what I would do.

Write down the uid of the oracle user.

userdel the oracle user.

Recreate the oracle user as a generic user account with the existing id number and place the home directory in the same location as the rest of your general user accounts. In other words, don't treat the oracle user as a special case.

alan

alan.paea at 2007-7-7 16:23:04 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 7
Hi .Is there any message when it is not allowing to login to GUI . Can u login through root to the GUI Session.Is your host connected on the network.Regards
solarisfana at 2007-7-7 16:23:04 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 8

alan :

Thanks for your input. But I am a little bit not understanding what is the problem for the looks of that for a home directory? Please give more tips. If I userdel and re-create oracle user, it will change the look of directory?

slarisfan:

When I tried to log in through GUI, no any error message came out. When I su - oracle, system just log me in without asking password. But the shell prompt will switch from # (root) to $(user). So I know that I have logged in as oracle user.

duke0001a at 2007-7-7 16:23:04 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 9
As the oracle user, please do a "set" and paste the contents here.
GregRyana at 2007-7-7 16:23:04 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 10

> that for a home directory? Please give more tips. If

> I userdel and re-create oracle user, it will change

> the look of directory?

do this:

useradd -c temp -d /export/home/temp -m temp

the - m will create the directory if it does not exist. Then compare the permissions to your oracle user.

try login for temp, try gui login for temp

alan

alan.paea at 2007-7-7 16:23:04 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 11

alan:

Thanks for your direction. I tried to create a temp user based on your command. It works. I can login as temp user from GUI and console. I went to temp directory to see a couple of files such as local.peofile, local.login. Then I userdel oracle. re-create oracle with useradd and these options:

# useradd -c 'Oracle software Owner' -d /u01/app/oracle -g oinstall -G dba -m -u 100 -s /usr/bin/ksh oracle.

Then I can log into as oracle user from GUI and console. But I looked at the directory permissions. It looks like before. I posted them for your comments.

$ pwd

/u01/app

$ ls -al

total 6

drwxrwxr-x3 oracleoinstall512 Dec 14 15:00 .

drwxr-xr-x4 rootroot 512 Dec 14 15:02 ..

drwxrwxr-x4 oracleoinstall512 Dec 20 10:44 oracle

$ cd ..

$ pwd

/u01

$ ls -al

total 8

drwxr-xr-x4 rootroot 512 Dec 14 15:02 .

drwxr-xr-x 34 rootroot1024 Dec 20 10:43 ..

drwxrwxr-x3 oracleoinstall512 Dec 14 15:00 app

drwxrwxr-x2 oracleoinstall512 Dec 14 15:02 oradata

And I went down to oracle directory to see files. I only saw .profile file there. I think it may be that when I useradd, I need to use -m option. This is the only option I didn't use in last time when I created oracle user. Anyway, thank you for your help. Best wishes for your holiday and new year ahead.

duke0001a at 2007-7-7 16:23:04 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 12
Anyway, it worked, :-)happy new yearalan
alan.paea at 2007-7-7 16:23:04 > top of Java-index,Solaris Operating System,Solaris 10 Features...