Re: broken system after srm -r -d /tmp/.* (user login and several services not working)



On 03/07/2008 Sven Joachim wrote:
But I discovered something really strange. If I compare the output of
'ls -al /' on my system and in the chroot, several directory sizes seem
to be different. I thought that directorys always have a size of
4069 bytes, but apparently this is not the case:

The size of directories is a multiple of the inode size, at least in
ext2/3 filesystems (might be different in reiserfs, I'm no expert). If
a directory has many entries, its size grows and will not shrink back if
you delete these entries. Since your system has been in use for several
years, the differences are not so strange.

Ah, that explains the differences. thanks for the information.

(on system) # ls -al /
total 113
drwx------ 24 root root 4096 2008-07-03 18:51 .
drwx------ 24 root root 4096 2008-07-03 18:51 ..
[...]

Now to the failing su (and login) for non-root users: Have a close look
at the first lines of your directory listing and tell me if you see
anything strange. ;-)

I bet that after "chmod 755 /" you will be able to log in as a normal
user again and your services will start to function. :-)

Yay, that's it! Everything works as expected again. Thanks a lot!!!

I don't know why I didn't find it earlier myself.

thanks for all your help, you rock!

greetings,
jonas


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: What happened with 5.1-RELEASE?
    ... I was only saying that I found it strange that it appeared, ... within the timespace that it took me to download the first cd. ... > A release is not a release until the Release Engineering team sends the ... >>> To unsubscribe, send any mail to ...
    (freebsd-stable)
  • Re: 2.6.20 and IP_CONNTRACK_FTP
    ... I ran into this compiling 2.6.20 with the .config of 2.6.19 and FireHol ... there are also entries for CONFIG_IP_NF_CONNTRACK!! ... And I'm still ignorant. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • RE: Adding entries to the main menu.
    ... Red Hat's system menus use the vfolder spec - so the menus are "virtual ... Adding entries to the main menu. ... Do you Yahoo!? ... unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
    (RedHat)
  • Re: What happened with 5.1-RELEASE?
    ... Something very strange going on methinks. ... > install ISO yesterday morning, ... > To unsubscribe, ...
    (freebsd-stable)
  • Re: iceweasel
    ... I already use AdBlock plus and without disabling half of the sourceforge javascript, I wouldn't be able to visit that site at all unless I had time to kill. ... As for the Independent website, very strange mix of excellent HTML and CSS design, destroyed by overuse of flash and javascript. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)