1753747 Members
5080 Online
108799 Solutions
New Discussion юеВ

Re: Permission denied

 
bhargavi
Advisor

Permission denied

Hello, One of the unix user found the below while logging to the server

lccdb019# su - c22adm
The copyright notice can be read by typing: cat /etc/copyright.text
[1] %
[1] % pwd
/
[2] % cd
cd: Can't change to home directory.
[3] %


Usually the user prompt will be '$'
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: Permission denied

Hi:

It looks like user 'c22adm' uses the 'csh' [C-shell] as his/her default shell since the prompt is a "%" character.

Regards!

...JRF...
Steven Schweda
Honored Contributor

Re: Permission denied

> Subject Permission denied

What does this Subject have to do with
anything here?

> cd: Can't change to home directory.

Look at the "/etc/passwd" (or whatever)
entry for this user, and see what is
specified as the home directory. Then see if
it exists, and who owns it.

ls -ld
Dennis Handly
Acclaimed Contributor

Re: Permission denied

>cd: Can't change to home directory.
>Usually the user prompt will be '$'

This can happen if the automounter can't mount your home directory. None of your ~/.profile is executed.
It seems strange your prompt is "%" because that indicates you may be using the scummy C shell and if so, why would you change the prompt to "$"?
Amitav
Frequent Advisor

Re: Permission denied

First of all check on which group the user is created and does the user have any limitation or limited commands which he can execute...

Secondly about the prompt, u can change this on .profile under user's home directory and keep the desired prompt...

Thirdly if nothing works u can delete and recreate the user once again, provided the user has not kept any important files on his home directory.