Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-01-2007, 08:13 AM   #1
Registered: Aug 2003
Location: Belgium
Distribution: -- Slackware for servers -- Debian for desktops --
Posts: 124

Rep: Reputation: 16
permission denied on home dir debian sarge2

Hi all,

Got this weird problem with my home dir, except for root not a single user can access the home dir...

when I ssh as user xxx for example I get :
Could not chdir to home directory /home/xxx: Permission denied
-bash: /home/xxx/.bash_profile: Permission denied

doing ls -la as root in /home/xxx gives :
-rw-r--r-- 1 ben ben 567 2007-02-01 13:39 .bash_profile
-rw-r--r-- 1 ben ben 1.8K 2007-02-01 13:39 .bashrc

it's a seperate partition, I allready did a efsc.ext3 -v -f and it came out OK :
/dev/hda9 /home ext3 defaults 0 2

I was thinking of permissions but I think they're ok :
drwxrw-rw- 8 root staff 4.0K 2007-02-01 13:41 home

ls -la in home as root :

drwxrw-rw- 8 root staff 4.0K 2007-02-01 13:41 .
drwxr-xr-x 23 root root 1.0K 2007-01-29 13:23 ..
drwxr-xr-x 2 xxx xxx 4.0K 2007-02-01 13:39 xxx
drwxrwxr-x 2 ftp nogroup 4.0K 2007-01-15 18:15 ftp
drwxrwxr-x 2 aaaa aaaa 4.0K 2007-01-31 21:59 aaaa
drwxr-xr-x 2 bbbbb bbbbb 4.0K 2007-02-01 13:41 bbbbb
drwxrwxr-x 2 root root 48K 2007-01-07 21:34 lost+found
drwxr-xr-x 2 test test 4.0K 2007-02-01 13:35 test

then I thought maybe the /bin/bash permissions are nok ? :
-rwxr-xr-x 1 root root 611K 2004-12-19 17:53 bash

Hope you can help me out, probably something silly i've overlooked...
Old 02-01-2007, 08:39 AM   #2
Registered: Nov 2003
Location: Bristol, UK
Distribution: Debian Lenny, Gentoo (at work)
Posts: 388

Rep: Reputation: 32
drwxrw-rw- 8 root staff 4.0K 2007-02-01 13:41 home
You need execute permission on a directory to be able to "enter" it. Giving all users execute permission on /home should solve this.
Old 02-01-2007, 08:47 AM   #3
Registered: Aug 2003
Location: Belgium
Distribution: -- Slackware for servers -- Debian for desktops --
Posts: 124

Original Poster
Rep: Reputation: 16
how could I not see that ... thx it works again


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission denied to execute anything under /home ErrorBound Linux - Software 8 07-26-2006 10:21 AM
permission denied to home directory ekdya Debian 3 11-08-2005 05:24 PM
permission denied mounting /export/home and /opt/csw xushi Solaris / OpenSolaris 6 07-28-2005 04:45 AM
useradd problems - permission denied on /home/* for new users lowpro2k3 Red Hat 1 02-10-2004 12:18 AM
moved home: permission denied mtb Linux - Software 4 12-17-2003 07:09 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:53 PM.

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