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

Re: incomplete update(?) trashed my system



Quoting Charles Blair (c-blair@illinois.edu):
> > > Take a look at ls -l /usr/lib/dbus-1.0/
> > > The permissions should be
> > > -rwsr-xr-- 1 root messagebus [...] dbus-daemon-launch-helper
> > > Have they changed, and to what?
> 
>    After logging in, becoming superuser, and a little trial-
> and-error with chmod, ls -l now gives
> 
> -rwSr-xr-- 1 root root 298544 Dec 3 15:03 dbus-daemon-launch-helper
> 
> I hope the upper-case S doesn't indicate a further problem.

S is not well documented by man chmod, but it means the x bit is
missing (they are displayed together). You need u+sx together to
set s and keep x.

But you don't seem to have changed the group ownership to messagebus.

> > Unless you have a typescript of the changes you made
> 
>    Is there some log file (or excerpts thereof)
> that I should post?

No. I was referring to script; see man script.

>    Would running find in some way, perhaps followed by ls -l
> and grep, be useful in identifying other potential disasters?

That's what I put in a previous response:

>>> On the permissions side, a command like
>>>
>>> find / -mount ! -group 0 -exec ls -ld {} \; | less
>>>
>>> can be useful to check all the file ownerships.

Here's some edited output from my laptop, ~60 lines. They're
most of the files where the permissions mean that ownership
is important. Please snip it in any followup.

-rwsr-sr-x 1 daemon daemon /usr/bin/at
drwxrwx--T 2 daemon daemon /var/spool/cron/atspool
drwxrwx--T 2 daemon daemon /var/spool/cron/atjobs
-rw------- 1 daemon daemon /var/spool/cron/atjobs/.SEQ
drwxr-x--- 5 Debian-exim Debian-exim /var/spool/exim4
drwxr-x--- 2 Debian-exim Debian-exim /var/spool/exim4/db
-rw-r----- 1 Debian-exim Debian-exim /var/spool/exim4/db/retry.lockfile
drwxr-x--- 2 Debian-exim Debian-exim /var/spool/exim4/input
drwxr-x--- 2 Debian-exim Debian-exim /var/spool/exim4/msglog
drwxr-xr-x 2 ntp ntp /var/lib/ntp
-rw-r--r-- 1 ntp ntp /var/lib/ntp/ntp.drift
drwxr-xr-x 3 colord colord /var/lib/colord
-rw-r--r-- 1 colord colord /var/lib/colord/storage.db
-rw-r--r-- 1 colord colord /var/lib/colord/mapping.db
drwxr-xr-x 2 colord colord /var/lib/colord/icc
drwxr-xr-x 2 geoclue geoclue /var/lib/geoclue
drwxr-xr-x 5 statd nogroup /var/lib/nfs
drwxr-xr-x 2 statd nogroup /var/lib/nfs/sm.bak
drwxr-xr-x 2 statd nogroup /var/lib/nfs/sm
drwxr-xr-x 2 statd nogroup /var/lib/nfs/rpc_pipefs
drwxr-xr-x 2 avahi-autoipd avahi-autoipd /var/lib/avahi-autoipd
-rw-r--r-- 1 avahi-autoipd avahi-autoipd /var/lib/avahi-autoipd/...

drwxrwsr-x 10 root staff /usr/local
-rwxr-sr-x 1 root utmp /usr/lib/utempter/utempter
-rwxr-sr-x 1 root tty /usr/lib/mc/cons.saver
-rwxr-sr-x 1 root utmp /usr/lib/libvte9/gnome-pty-helper
-rwxr-sr-x 1 root mail /usr/lib/emacs/24.4/i586-linux-gnu/movemail
-rwsr-xr-- 1 root messagebus /usr/lib/dbus-1.0/dbus-daemon-launch-helper
-rwxr-x--- 1 root vlock /usr/lib/vlock/modules/nosysrq.so
drwxrwsr-t 2 root lpadmin /usr/share/ppd/custom
-rwxr-sr-x 1 root shadow /usr/bin/expiry
-rwxr-sr-x 3 root mail /usr/bin/mail-lock
-rwxr-sr-x 1 root shadow /usr/bin/chage
-rwxr-sr-x 1 root mail /usr/bin/dotlockfile
-rwxr-sr-x 1 root crontab /usr/bin/crontab
-rwxr-sr-x 3 root mail /usr/bin/mail-unlock
-rwxr-sr-x 1 root mail /usr/bin/lockfile
-rwxr-sr-x 1 root tty /usr/bin/bsd-write
-rwxr-sr-x 1 root ssh /usr/bin/ssh-agent
-rwxr-sr-x 3 root mail /usr/bin/mail-touchlock
-rwxr-sr-x 1 root mlocate /usr/bin/mlocate
-rwsr-sr-x 1 root mail /usr/bin/procmail
-rwxr-sr-x 1 root utmp /usr/bin/screen
-rwxr-sr-x 1 root tty /usr/bin/wall
-rwxr-sr-x 1 root mail /usr/bin/mutt_dotlock
-rw-r----- 1 root Debian-exim /etc/exim4/passwd.client
-rw-r----- 1 root shadow /etc/gshadow
drwxr-xr-x 5 root lp /etc/cups
drwxr-xr-x 2 root lp /etc/cups/ppd
-rw-r----- 1 root daemon /etc/at.deny
-rw-r----- 1 root shadow /etc/shadow
drwx--x--- 2 root ssl-cert /etc/ssl/private
-rw-r----- 1 root ssl-cert /etc/ssl/private/ssl-cert-snakeoil.key
-rw-r----- 1 root shadow /etc/shadow.org
-rw-r----- 1 root fuse /etc/fuse.conf
-rwxr-sr-x 1 root shadow /sbin/unix_chkpwd
drwx-wx--T 2 root crontab /var/spool/cron/crontabs
drwx--x--- 3 root lp /var/spool/cups
drwxrwxrwt 2 root lpadmin /var/spool/cups-pdf/ANONYMOUS
drwxrwsr-x 3 root staff /var/local
-rw-r----- 1 root mlocate /var/lib/mlocate/mlocate.db
drwxrwsr-x 2 root mail /var/mail

Cheers,
David.


Reply to: