Operating System - HP-UX
1855937 Members
9628 Online
104107 Solutions
New Discussion

Re: cannot su or logon with non-root user

 
tommy_28
Frequent Advisor

cannot su or logon with non-root user

I just simply made some common chmod operations to the oracle user, and edited it's profile.
After that, I cannot logon or su - , the OS said: SH not found.
I have no idea what happened.

It's hpux11.23.
I deleted this oracle user and added another one, no change. Rebooted, no change.

Somebody help!
Thx.
Tommy
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: cannot su or logon with non-root user

Tommy,

I would suggest restoring the Oracle user's profile (or undoing whatever changes you did). After that we can work on what's wrong with the profile changes.


Pete

Pete
Robert-Jan Goossens
Honored Contributor

Re: cannot su or logon with non-root user

Hi Tommy,

I think you have chown or chmod root directory or the usr directory.

dr-xr-xr-x 25 bin bin 1024 Sep 19 2000 usr
drwxr-xr-x 22 root root 1024 Dec 23 09:42 .

Robert-Jan
MANOJ SRIVASTAVA
Honored Contributor

Re: cannot su or logon with non-root user

Tommy

What is teh default shell defined in the /etc/passwd file .

Also you can login as root and check for the .profile in the $home of the user to see if the same is not running some typos.
There can be anamolies in the /etc/passwd file if you are manually creating the user.

Manoj Srivastava
Massimo Bianchi
Honored Contributor

Re: cannot su or logon with non-root user

Hi,
check also if you have accidentally deleted the /etc/shells and its content (should be a list of all shells usable in the system).

Massimo
Kent Ostby
Honored Contributor

Re: cannot su or logon with non-root user

Check directory permissions for the default oracle user's home, root, usr, tmp, and var.

Check ownership of root, usr, tmp, var and oracle user's home.

Also, did you change /etc/profile or just the user profile.

Copies of /etc/profile can be found in /usr/newconfig/etc/profile.

Please post output from:
cd /; ll | grep ^d

and

grep (oracle_user_name) /etc/passwd

and

cd /(oracle_user_home); ll .

Best regards,

Kent M. Ostby

"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
tommy_28
Frequent Advisor

Re: cannot su or logon with non-root user

Goossens's consideration is right. Somebody had changed /. modes. When I changed back it's ok.

Thanks a lot!