[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: no shell, unable to cd to /home/*



Thanks for the advice about the appropriate permissions. I followed it and - beginning in pwd /root - now get the following outputs:

ls -ld /home
drwxr-sr-x    6 root     root         4096 Oct 10 19:03 /home

ls -las /home
total 100
  4 drwxr-sr-x    6 root     root         4096 Oct 10 19:03 .
 60 drw-rw----   24 root     root        57344 Oct 10 18:46 ..
 12 drwxr-sr-x   77 avh      avh         12288 Oct  7 03:05 avh
 16 drwxr-sr-x    2 root     root        16384 May  4 02:23 lost+found
  4 drwxr-sr-x    2 mcr      mcr          4096 Oct  6 23:52 mcr
  4 drwxr-sr-x    4 avh      users        4096 Sep  2 21:44 pool

su avh
No shell

su - avh
Unable to cd to "/home/avh"

Shall I send strace output again?

Andreas


Dave Sherohman wrote:

On Wed, Oct 10, 2001 at 06:58:06PM +0200, pirmin2 wrote:

ls -ld /home drwxrwxrwx 11 root users 4096 Oct 8 23:55 /home


That shouldn't be a problem, but /home is normally owned by
root.staff with permissions 2775 (rwxrwsr-x).  With your current
permissions, anyone could create new directories under /home, which
is generally not a good thing unless you're the system's only user.

ls -las /home
total 120   4 drwxrwxrwx   11 root     users        4096 Oct  8 23:55 .
 60 drw-rw----   24 root     root        57344 Oct 10 18:46 ..


The "total 120" includes the 60 from the parent directory.  Adding
that to the rest of the entries should give about the right number of
blocks used.

  4 drwxrwxrwx    2 root     root         4096 Jun  7 20:16 .xvpics
  4 drwxrwxrwx    4 root     users        4096 Aug  8 00:39 KDE


Again, unless this is a single-user box, all the mode 777 directories
are troubling.

 12 drw-rw----   77 avh      avh         12288 Oct  7 03:05 avh


User avh doesn't work because nobody has permission to enter his home
directory - including himself.  `chmod ug+x /home/avh` should fix this.

  4 drwxrwxrwx    2 1002     root         4096 Oct  6 23:52 mcr
  4 drwxr-xr-x    2 1004     test         4096 Oct  8 23:07 test
  4 drwxr-xr-x    2 1005     test2        4096 Oct  8 23:55 test2


The numbers listed for owner on these directories mean that the
owning user no longer exists.  I don't recall whether they were on
your 'users who can't log in' list, but you generally can't log in if
you don't exist...






Reply to: