This widget could not be displayed.
Operating System - HP-UX
1845515 Members
2799 Online
110244 Solutions
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
New Discussion
This widget could not be displayed.
This widget could not be displayed.

Re: permision denied in login

 
SOLVED
Go to solution
Jairo Campana
Trusted Contributor

permision denied in login

hello , I have a problem to login the user operator

nms1 # ssh -l operator bck1
operator@bck1's password:
Could not chdir to home directory /home/operator: Permission denied
/usr/bin/sh: Permission denied
Connection to bck1 closed.

in /home
drwxr-xr-x 2 operator users 96 Apr 30 12:56 operator


ls -ld /home
drwxr-xr-x 32 root sys 1024 Jul 17 15:00 /home

my passwd
CampanaJ:*:114:20:,,,:/home/CampanaJ:/usr/bin/sh

WHEN make to ssh disconnect .

legionx
13 REPLIES 13
Caesar_3
Esteemed Contributor

Re: permision denied in login

Hello!

You show the /etc/passwd but this is not
user operator it's CampanaJ
so it's could pbe problem or you write wrong
line?

Caesar
Jairo Campana
Trusted Contributor

Re: permision denied in login

sorry, write wrong
my passwd
operator:*:114:20:,,,:/home/operator:/usr/bin/sh
legionx
Paul Murray_4
Frequent Advisor

Re: permision denied in login

Hi Jairo,

Are the directory permissions shown above resident locally on your bck1 server, or do you mount the home directories via NFS ?

Also, on your bck1 server, what is the passwd entry for the operator user ?


Rgds,
Paul.
Hey, nobody knows EVERYthing !!!
Paul Sperry
Honored Contributor

Re: permision denied in login

the star * indicates that either the account is disabled or that this is a trusted system.

If this is a trusted system could you post

/tcb/bin/edauth -g operator
Jairo Campana
Trusted Contributor

Re: permision denied in login

yes, my server this in mode sytem trusted

the directory /tcb/bin/edauth no exist
legionx
Jairo Campana
Trusted Contributor

Re: permision denied in login

I, probe:
#su - operator
su: No Shell
Memory Fault

Paul :
yes, the directory resident locally on my bck1 server.

Also, on your bck1 server, what is the passwd entry for the operator user ?
the entry is:

operator:*:114:20:,,,:/home/operator:/usr/bin/sh





legionx
Paul Murray_4
Frequent Advisor

Re: permision denied in login

Hi Jairo,

On bck1, what are the permissions of the shell - on my server, the permissions are as follows:-

$ ll /usr/bin/sh

-r-xr-xr-x 2 bin bin 196608 Nov 7 1997 /usr/bin/sh


Rgds,
Paul.
Hey, nobody knows EVERYthing !!!
Massimo Bianchi
Honored Contributor

Re: permision denied in login

Hi,
the error "No shell" it's very interesting.

What is the content of
/etc/shells
and what are its permissions ?

HTH,
Massimo


Jairo Campana
Trusted Contributor

Re: permision denied in login

Hi, Paul
the permision in /usr/bin/sh:
-r-xr-xr-x 2 bin bin 221184 Jan 20 2000 /usr/bin/sh

Hi,Massimo
the file /etc/shells no exist:

bck1 # ll /etc/shells
/etc/shells not found

legionx
Jairo Campana
Trusted Contributor

Re: permision denied in login

this happens to all the users :
example
bck1#su - Peter
su: No Shell
Memory Fault

nms1#ssh -l Peter bck1
Peter@bck1's password:
Last login: Thu Jul 17 17:38:42 2003 from Peter.noctic.tunner.com
===============================================
Welcome the system Tunner Racing
===============================================Could not chdir to home directory /home/Peter: Permission denied
/usr/bin/sh: Permission denied
Connection to bck1 closed.
nms1 #

legionx
Massimo Bianchi
Honored Contributor

Re: permision denied in login

Hi,
have a look at the man page for /etc/shells

"man shells"


create the file, permission 444, and there the full pathname of ksh, csh, sh .


SYNOPSIS
/etc/shells

DESCRIPTION
/etc/shells is an ASCII file containing a list of legal shells on the
system. Each shell is listed in the file by its absolute path name.

Lines or portions of lines beginning with # are assumed to be comments
and are ignored. Blank lines are also ignored.


HTH,
Massimo
Enrico P.
Honored Contributor
Solution

Re: permision denied in login

Jairo Campana
Trusted Contributor

Re: permision denied in login


in the Link it was the solution
Thanks to all, the problem was permission in /
chmod 755 /
legionx