1832270 Members
4790 Online
110041 Solutions
New Discussion

Re: problem in login

 
SOLVED
Go to solution
Jairo Campana
Trusted Contributor

problem in login

I have an problem when login a user

Could not chdir to home directory /home/CampanaJ: Permission denied
/usr/bin/sh: Permission denied
Connection to bck1 closed.
$
whit root no have problems
legionx
10 REPLIES 10
Uday_S_Ankolekar
Honored Contributor

Re: problem in login

Hi,

If you have root access check if the user home directory is owned by some one else and also look if directory has different group where in user is not belongs to that group

To access the hoem directory user should be the owner of that directory.

-USA..
Good Luck..
Sanjay_6
Honored Contributor

Re: problem in login

Hi Jairo,

Check the owner and directory permission for the home directory of the user you are trying to login as. also check the permission for /usr/bin/sh. The world should have execute permission.

-r-xr-xr-x bin/bin /usr/bin/sh

Hope this helps.

Regds


Michael Tully
Honored Contributor

Re: problem in login

Hi,

When the login process starts, it look to see if you have the appropriate permissions to the home directory that is designated in the /etc/passwd file. If the permissions and owner are incorrect during the login process, you may get logged out. For example if you are not the owner of the directory.

drwxr-x--- 14 username users 1024 Dec 13 15:04 /home/username

-Michael
Anyone for a Mutiny ?
Helen French
Honored Contributor

Re: problem in login

hey,

Check the permissions of the home driectory. Check owner and group permissions.

Is this happens to only one user?

Shiju
Life is a promise, fulfill it!
Jairo Campana
Trusted Contributor

Re: problem in login

the permissions its ok.
found the following message when reboot:
start CDE login server
ouput from "/sbin/rc3.d/S990dtlogin.rc start":
-----------------------------------------------
crt0: ERRO couldn't open /usr/lib/dld.sl errno:000000013
legionx
Jairo Campana
Trusted Contributor

Re: problem in login

when :
su - users( example:)

su - root
ok
#su - david
su:no shell
Memory fault


# ll -d home
drwxr-xr-x 17 root users 1024 Dec 17 18:22 home

cd /home
#ll /home
drwx------ 2 BasilioH users 96 Sep 20 14:38 BasilioH
drwx------ 2 BriascoI users 96 Sep 20 10:37 BriascoI
drwx------ 2 CampanaJ users 96 Dec 17 16:00 CampanaJ
drwx------ 2 CaraS users 96 Sep 20 16:38 CaraS
drwx------ 2 ChavezP users 96 Sep 20 13:54 ChavezP
drwx------ 2 FrancoG users 96 Sep 20 13:59 FrancoG
drwx------ 3 HurtadoJ users 1024 Nov 13 15:16 HurtadoJ

/etc/profile
Leave defaults in user environment.

umask 077
trap 1 2 3
TMOUT=120
export TMOUT
readonly TMOUT
mesg -n

# ll /usr/bin/sh
-r-xr-xr-x 2 bin bin 221184 Jan 20 2000 /usr/bin/sh




legionx
Sanjay_6
Honored Contributor
Solution

Re: problem in login

Joseph C. Denman
Honored Contributor

Re: problem in login

Check perms on /etc/passwd. (444)

check entry for david in /etc/passwd. #Make sure the shell is correct.

...jcd...
If I had only read the instructions first??
Sanjay_6
Honored Contributor

Re: problem in login

Hi Jairo,

Looks like filesystem / directory permission problem with "/" check that the directory permission for / is 755.

cd /
ll -d .
chmod 755 /

Hope this helps.

Regds

Jairo Campana
Trusted Contributor

Re: problem in login

thanks, Sanjay fo the url
legionx