Operating System - HP-UX
1827064 Members
4475 Online
109713 Solutions
New Discussion

UNIX user login su:No shell (.profile & chmod problem)

 
민제식
Occasional Contributor

UNIX user login su:No shell (.profile & chmod problem)

[use server] HP-UX dk370 64bit
[os] HP

help me
root another login, No shell, memory fault error occurred
* /etc/passwd usr/bin/ksh, sh, csh directory confirm and authory '555'

.sh_history and precedence work

##################
# .sh_history #
###################

### 선행 작업 ###
# 기존 오라클 유저인 oracle을 사용하며, /oracle/app/oracle/product/9.2.0의 .profile에 명시된
# 홈디렉토리도 사용하려 함.
#
# 1) copy .profile root from /oracle/app/oracle/product/9.2.0
#
# 2) /oracle rm -r app del
# 3) /oracle/app/oracle/product/9.2.0 dirctory all recreate
#
# delete before, .profile in /oracle/app/oracle/product/9.2.0 -> /oracle로 mv
# ( .profile is not modified)

su - oracle
cd oracle/app/oracle/product/
ls

cd ../../..
chmod -R 777 .*
ls
# -> connect error!!
# ERROR: Check /etc/pam.conf file permissions and ownership
# -r--r--r-- 1 root sys /etc/pam.conf
# Boot in single-user mode for missing /etc/pam.conf
su -
su - oracle
su - oracle
cd ..
cd oracle
ls -al
cd ..
ls -al
cd oracle
ls
chmod 644 .*
ls -al
chmod 777 .profile
ls -al
su - oracle
vi /etc/group
clear
useradd -g dba -m -d /oracle/app/oracle/product/9.2.0 test920
useradd -g dba -m -d /oracle test920
user -g dba test920
useradd -g dba test920
passwd test920
clear
/etc/passwd
vi /etc/passwd
cd /etc
ls
ls -al
chmod
chmod 444 pam.conf
# root connect sucess, but oracle user connect fault
# su: No shell
# Memory fault
# new user create & connect
# su: No shell
# bus error
# connect error..
ls -al
ls
cd ..
useradd -g dba ora9
passwd ora9
su - ora9
vi /etc/passwd
su - ora9
#######################

why? fix??
5 REPLIES 5
RAC_1
Honored Contributor

Re: UNIX user login su:No shell (.profile & chmod problem)

Uou are not clear as to what exactly is the problem and what you want. What is the error that you get when you try to login?? check syslog.log file.

Also what does following say??
pwck
grpck
logins -d
There is no substitute to HARDWORK
Hanwant Verma_1
Regular Advisor

Re: UNIX user login su:No shell (.profile & chmod problem)

Clarify your problem please.

Hanwant
doug hosking
Esteemed Contributor

Re: UNIX user login su:No shell (.profile & chmod problem)

I do not understand your full question but think that patch PHCO_33568 or equivalent may help with at least part of the problem.

conrad heyns
Frequent Advisor

Re: UNIX user login su:No shell (.profile & chmod problem)

Hi

su:no shell normally indicates that therer is no entry in /etc/shells.(ksh/sh/csh??)

Regards
Conrad.
perseverance performs greater works than strength
AwadheshPandey
Honored Contributor

Re: UNIX user login su:No shell (.profile & chmod problem)

Hello,

First clear ur question, what is the exact problem and error u get ?

Awadhesh
It's kind of fun to do the impossible