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

Re: login problems after permission change: unable to cd to home



May be it's worth it to post here those permissions?

Btw, don't forget that to access a file you need an 'x' flag set on
all directories in the path to that file including the '/' directory.
You also need an 'x' permission on a directory to be able to do chdir
to those directory (and also an 'x' on all directories in the path).

Alexey

On Wed, Jan 20, 2010 at 3:42 PM,  <koen.news@koca.be> wrote:
> Problems started yesterday. I think when changing permission on root dir.
> Debian Etch
>
> Root login is no problem. I checked the permission of /etc / /root and set
> them right according to a debian with same version.
>
> Strace of login koenl says where all goes wrong:
>
> 3234  fchown32(0, 1008, 5)              = 0
> 3234  fchmod(0, 0600)                   = 0
> 3234  rt_sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}, 8) = 0
> 3234  clone(child_stack=0,
> flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
> child_tidptr=0xb7dd7708) = 3235
> 3234  wait4(-1,  <unfinished ...>
> 3235  getppid()                         = 3234
> 3235  setuid32(1008)                    = 0
> 3235  chdir("/data/home/koenl")         = -1 EACCES (Permission denied)
> 3235  chdir("/")                        = -1 EACCES (Permission denied)
> 3235  write(2, "Unable to cd to \'/data/home/koenl\'\n", 35) = 35
> 3235  time([1263977226])                = 1263977226
> 3235  stat64("/etc/localtime", 0xbf89dae8) = -1 EACCES (Permission denied)
> 3235  open("/etc/localtime", O_RDONLY)  = -1 EACCES (Permission denied)
> 3235  open("/etc/localtime", O_RDONLY)  = -1 EACCES (Permission denied)
> 3235  open("/etc/localtime", O_RDONLY)  = -1 EACCES (Permission denied)
> 3235  send(5, "<84>Jan 20 09:47:06 login[3235]: unable to cd to
> `/data/home/koenl\' for user `koenl\'\n", 85, MSG_NOSIGNAL) = 85
> 3235  close(5)                          = 0
> 3235  munmap(0xb7f4b000, 4096)          = 0
> 3235  exit_group(1)                     = ?
> 3234  <... wait4 resumed> NULL, 0, NULL) = 3235
> 3234  --- SIGCHLD (Child exited) @ 0 (0) ---
>
>
> Any idea what to correct? Because of this samba fileserver and bind9 also
> have problems. Any way to create rescue disk from other debian? i could
> access that system with rsync from this one.
>
> Koen
>
>
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>


Reply to: