LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 09-08-2010, 07:23 PM   #1
zarzor_2010
LQ Newbie
 
Registered: Sep 2010
Posts: 12

Rep: Reputation: 0
chdir to home folder: permission denied when I use ssh


Dear all
I have a strange problem

I ssh to a remote server using the username "madel" and it gives me a strange error:

Last login: Wed Sep 8 18:17:51 2010 from greece.doe.carleton.ca
Could not chdir to home directory /home/madel: Permission denied
grep: /home/madel/.bashrc: Permission denied
Preparing your .bashrc for Linux
cat: /home/madel/.bashrc: Permission denied
mv: accessing `/home/madel/.bashrc.09.08.Sep.09': Permission denied
mv: accessing `/home/madel/.bashrc': Permission denied
chmod: cannot access `/home/madel/.bashrc': Permission denied
mkdir: cannot create directory `/home/madel/Desktop': Permission denied
cp: accessing `/home/madel/Desktop/.': Permission denied

I chcked the permissions using ls:
?--------- ? ? ? ? ? madel ls -l:

Now when I su to the root user the ls -l works fine and tell that "madel" is the owner of /home/madel

drwxr-xr-x 64 madel students 4096 Sep 7 21:26 madel


The strange thing is when I do sudo bash
and write cd ~/
it chdir to /home/madel


Can any one help me plzzzzzzzzzz

thanks in advance
Mina
 
Old 09-08-2010, 08:07 PM   #2
zarzor_2010
LQ Newbie
 
Registered: Sep 2010
Posts: 12

Original Poster
Rep: Reputation: 0
I just noticed something that can help

I am loging in to the server as domain user. means that my user name is not mentioned in the /etc/passwd file.

Can this help?


Thanx
 
Old 09-13-2010, 02:07 PM   #3
zarzor_2010
LQ Newbie
 
Registered: Sep 2010
Posts: 12

Original Poster
Rep: Reputation: 0
Any help please?

Thanks
Mina
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh could not chdir to home directory pccdrussell Linux - General 27 08-24-2012 11:30 AM
[SOLVED] 'Could not chdir to home directory /home/[user]: Permission denied' arashi256 Linux - Newbie 25 11-11-2011 10:29 AM
NFS problem: "Could not chdir to home directory /home/USER: Permission denied" sumanc Linux - Server 4 07-22-2010 05:12 PM
Dovecot permission denied error when performing chdir jlinkels Linux - Server 1 11-01-2008 06:29 PM
Wine: permission denied to chdir Micro420 Linux - Software 1 11-16-2003 01:06 AM


All times are GMT -5. The time now is 02:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration