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

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



On 2008-07-03 11:42 +0200, Jonas Meurer wrote:

>> > When I try to su to a normal user from root, I get: "Cannot execute
>> > /bin/bash: Permission denied." The permissions for /bin/bash are ok:
>> > -rwxr-xr-x 1 root root 797784 2008-05-12 19:00 /bin/bash

Can you run su under strace and see where it fails?

> # ls -al /etc/pam.d
> total 108
> drwxr-xr-x   2 root root  4096 2008-07-02 12:21 .
> drwxr-xr-x 137 root root 12288 2008-07-03 09:15 ..
> -rw-r--r--   1 root root   182 2008-01-27 06:34 atd
> -rw-r--r--   1 root root   384 2008-01-13 22:37 chfn
> -rw-r--r--   1 root root   581 2008-01-13 22:37 chsh
> -rw-r--r--   1 root root   392 2008-03-25 18:08 common-account
> -rw-r--r--   1 root root   436 2008-03-25 18:08 common-auth
> -rw-r--r--   1 root root  1212 2008-03-25 18:08 common-password
> -rw-r--r--   1 root root   372 2008-03-25 18:08 common-session
> -rw-r--r--   1 root root   289 2008-03-14 01:52 cron
> -rw-r--r--   1 root root    69 2008-04-02 02:46 cups
> -rw-r--r--   1 root root   400 2008-05-21 12:39 gdm
> -rw-r--r--   1 root root   316 2008-05-21 12:39 gdm-autologin
> -rw-r--r--   1 root root    56 2008-03-19 11:31 gnome-screensaver
> -rw-r--r--   1 root root  2843 2008-01-13 22:37 login
> -rw-r--r--   1 root root    38 2008-04-03 06:38 newrole
> -rw-r--r--   1 root root   520 2007-08-27 04:16 other
> -rw-r--r--   1 root root    92 2008-01-13 22:37 passwd
> -rw-r--r--   1 root root   168 2007-04-14 03:22 ppp
> -rw-r--r--   1 root root    38 2008-04-03 06:38 run_init
> -rw-r--r--   1 root root    69 2008-03-15 16:34 samba
> -rw-r--r--   1 root root  1199 2008-01-21 11:16 schroot
> -rw-r--r--   1 root root  1272 2008-03-22 14:09 sshd
> -rw-r--r--   1 root root  2305 2008-01-13 22:37 su
> -rw-r--r--   1 root root   119 2008-02-19 03:40 sudo

There are a few files missing that I have, but these do not seem to be
crucial.  At least login and su should work.

Sven


Reply to: