/usr/sbin gelöscht

FreeBSD, Gentoo, openSUSE, CentOS, Ubuntu, Debian
Post Reply
theomega
Userprojekt
Userprojekt
Posts: 696
Joined: 2003-01-27 14:36
Contact:
 

/usr/sbin gelöscht

Post by theomega »

Hallo Leute
ich bräuchte mal drigend eure Hilfe:
ich habe ausversehen mein /usr/sbin inkl sämtlichen Inhalten gelöscht. Was soll ich jetzt tun? Ich kann noch auf meinen Server zugreifen und das meiste scheint zu funktionieren.
Bitte keine Kommentare zu der Aktion, helft mir lieber, wie ich es wieder rückgängig machen kann.

Was gerade nicht geht, sind:
- FTP-Server (xinetd geht nicht)
- Apache Controll (Apache selber geht)

FS ist ext3
Suse 8.1

Grüße

TO
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
Contact:
 

Re: /usr/sbin gelöscht

Post by captaincrunch »

Mit ganz viel Glück helfen dir diese beiden Links weiter :
http://www.tldp.org/HOWTO/mini/Ext2fs-Undeletion.html und http://www.tldp.org/HOWTO/mini/Ext2fs-U ... index.html

Sollte im Normalfall auch für ext3 gelten, da das ja ext2-kompatibel ist. Gemacht habe ich das aber auch noch nicht (oder musste es zum Glück noch nie machen :wink: ) ...
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
theomega
Userprojekt
Userprojekt
Posts: 696
Joined: 2003-01-27 14:36
Contact:
 

Re: /usr/sbin gelöscht

Post by theomega »

Nein, darüber habe ich mich schon informiert. ext3 ist ja ein Journaling Filesystem und kann deshalb nicht undeleten.

Mir würde es schon viel helfen, wenn jemand mit einen Suse 8.1 System mal "ls -l /usr/sbin" macht.
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
Contact:
 

Re: /usr/sbin gelöscht

Post by captaincrunch »

Nein, darüber habe ich mich schon informiert. ext3 ist ja ein Journaling Filesystem und kann deshalb nicht undeleten.
Hast du da Links zu ?

[EDIT] Ansonsten hast du schließlich auch noch die Möglichkeit, das FS in ext2 zu konvertieren ... wobei ich auch wieder nicht weiß, ob das was bringt. Weiterführende Infos würden mich aber sehr freuen.
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
theomega
Userprojekt
Userprojekt
Posts: 696
Joined: 2003-01-27 14:36
Contact:
 

Re: /usr/sbin gelöscht

Post by theomega »

ich such dir die Links raus, ich hatte schonmal einen ähnlichen Fall, daher weiß ich dass.
Könnte mir trotzdem noch jemand mal den Inhalt von /usr/sbin posten?
Ich bin gerade dabei, alle Configdateien nach hinweise auf Dateien aus dem Verz. zu druchsuchen und dann die Packages nachzuinstallieren. Kann man nicht den rpm installer davon überzeugen, alle fehlenden Dateien nochmal nachzuinstallieren?
mogway
Posts: 11
Joined: 2003-02-26 17:16
 

Re: /usr/sbin gelöscht

Post by mogway »

drwxr-xr-x 2 root root 4096 Mar 18 07:51 .
drwxr-xr-x 12 root root 4096 Oct 14 19:50 ..
-rwxr-xr-x 1 root root 2714 May 21 2002 Check
-rwxr-xr-x 1 root root 43356 Jan 16 15:26 ab
-rwxr-xr-x 1 root root 6744 Oct 15 04:55 accessdb
-rwxr-xr-x 1 root root 37829 Oct 8 22:52 adjtimex
-rwxr-xr-x 1 root root 7386 Jan 16 15:26 apachectl
-rwxr-xr-x 1 root root 23224 Oct 14 23:23 arpd
-rwxr-xr-x 1 root root 14544 Sep 9 2002 atd
-rwxr-xr-x 1 root root 82 Sep 9 2002 atrun
-rwxr-xr-x 1 root root 23000 Oct 14 22:40 chpasswd
-rwxr-xr-x 1 root root 9992 Oct 15 06:01 clockdiff
-rwxr-xr-x 1 root root 514 Oct 8 18:46 create-cracklib-dict
---x--x--x 1 root root 22904 Oct 8 21:02 cron
-rwxr-xr-x 1 root root 66048 Oct 8 22:39 edquota
-rwxr-xr-x 1 root root 43 Oct 8 22:52 flushb
-rwsr-xr-x 1 root root 22307 Oct 14 23:11 fpexec
-rwxr-xr-x 1 root root 5014 Oct 8 22:52 freeramdisk
-rwxr-xr-x 1 root root 103361 Oct 8 21:11 gpm
-rwxr-xr-x 1 root root 29416 Oct 14 22:40 groupadd
-rwxr-xr-x 1 root root 21096 Oct 14 22:40 groupdel
-rwxr-xr-x 1 root root 24712 Oct 14 22:40 groupmod
-rwxr-xr-x 1 root root 24664 Oct 14 22:40 grpck
-rwxr-xr-x 1 root root 20504 Oct 14 22:40 grpconv
-rwxr-xr-x 1 root root 20504 Oct 14 22:40 grpunconv
-rwxr-xr-x 1 root root 146009 Oct 14 22:01 grub
-rwxr-xr-x 1 root root 11857 Oct 14 22:01 grub-install
-rwxr-xr-x 1 root root 2423 Oct 14 22:01 grub-md5-crypt
-rwxr-xr-x 1 root root 269276 Jan 16 15:26 httpd
-rwxr-xr-x 1 root root 534 Oct 16 12:59 hwbootscan
-rwxr-xr-x 1 root root 29096 Oct 16 12:59 hwinfo
-rwxr-xr-x 1 root root 9420 Oct 16 12:59 hwscan
-rwxr-xr-x 1 root root 29268 Oct 8 18:31 iconvconfig
-rwxr-xr-x 1 root root 18424 Oct 14 23:23 ifstat
-rwxr-xr-x 1 root root 18440 Oct 15 06:01 in.rdisc
-rwxr-xr-x 1 root root 55159 Oct 8 22:39 ip6tables
-rwxr-xr-x 1 root root 59959 Oct 8 22:39 ip6tables-restore
-rwxr-xr-x 1 root root 56519 Oct 8 22:39 ip6tables-save
-rwxr-xr-x 1 root root 52113 Oct 8 22:39 iptables
-rwxr-xr-x 1 root root 56107 Oct 8 22:39 iptables-restore
-rwxr-xr-x 1 root root 55665 Oct 8 22:39 iptables-save
-rwxr-xr-x 1 root root 23074 Oct 8 22:42 itox
-rwxr-xr-x 1 root root 2056 Oct 14 23:44 keytab-lilo.pl
-rwx------ 1 root root 3796 Oct 8 22:52 klogconsole
lrwxrwxrwx 1 root root 16 Feb 25 20:54 logcheck -> /etc/logcheck.sh
-rwxr-xr-x 1 root root 7080 Jan 16 15:26 logresolve
-rwxr-xr-x 1 root root 34696 Oct 8 22:31 logrotate
-rwxr-xr-x 1 root root 585 Oct 8 18:46 mkdict
-rwxr-xr-x 1 root root 3860 Oct 8 21:10 mklost+found
-rwxr-xr-x 1 root root 2086767 Dec 20 15:41 mysqld
-rwxr-xr-x 1 root root 28024 Oct 14 22:40 newusers
-rwxr-xr-x 1 root root 35352 Oct 8 18:31 nscd
-rwxr-xr-x 1 root root 4292 Oct 8 18:31 nscd_nischeck
-rwxr-xr-x 1 root root 12488 Oct 14 23:23 nstat
-rwxr-xr-x 1 root root 44093 Oct 8 22:52 ntp-genkeys
-rwxr-xr-x 1 root root 1019 Oct 8 22:52 ntp-wait
-rwxr-xr-x 1 root root 318777 Feb 4 17:40 ntpd
-rwxr-xr-x 1 root root 45974 Feb 4 17:40 ntpdate
-rwxr-xr-x 1 root root 75842 Feb 4 17:40 ntpdc
-rwxr-xr-x 1 root root 71234 Feb 4 17:40 ntpq
-rwxr-xr-x 1 root root 15192 Oct 8 22:52 ntptime
-rwxr-xr-x 1 root root 43099 Feb 4 17:40 ntptimeset
-rwxr-xr-x 1 root root 23777 Feb 4 17:40 ntptrace
-rwxr-xr-x 1 root root 9595 Oct 8 21:41 nwmsg
-rwxr-xr-x 1 root root 5340 Oct 8 18:46 packer
-rwxr-xr-x 1 root root 60262 Oct 8 21:31 parted
-rwxr-xr-x 1 root root 7931 Oct 8 21:31 partprobe
-rwsr-xr-x 1 pop root 37320 Oct 8 22:30 popauth
-rwxr-xr-x 1 root root 167640 Oct 8 22:30 popper
-rwxr-xr-x 1 root root 106866 Oct 14 22:57 postalias
-rwxr-xr-x 1 root root 26132 Oct 14 22:57 postcat
-rwxr-xr-x 1 root root 120317 Oct 14 22:57 postconf
-rwxr-sr-x 1 root maildrop 84614 Oct 14 22:57 postdrop
-rwxr-xr-x 1 root root 60406 Oct 14 22:57 postfix
-rwxr-xr-x 1 root root 65151 Oct 14 22:57 postkick
-rwxr-xr-x 1 root root 65068 Oct 14 22:57 postlock
-rwxr-xr-x 1 root root 60037 Oct 14 22:57 postlog
-rwxr-xr-x 1 root root 100286 Oct 14 22:57 postmap
-rwxr-sr-x 1 root maildrop 75239 Oct 14 22:57 postqueue
-rwxr-xr-x 1 root root 74887 Oct 14 22:57 postsuper
-rwxr-xr-x 1 root root 24600 Oct 14 22:40 pwck
-rwxr-xr-x 1 root root 21032 Oct 14 22:40 pwconv
-rwxr-xr-x 1 root root 20440 Oct 14 22:40 pwunconv
-rwxr-xr-x 1 root root 39583 Oct 14 22:57 qmqp-source
-rwxr-xr-x 1 root root 61315 Oct 8 22:39 quot
-rwxr-xr-x 1 root root 9580 Oct 8 22:39 quotastats
lrwxrwxrwx 1 root root 4 Jun 22 2006 ramsize -> rdev
-rwxr-xr-x 1 root root 4984 Oct 8 22:52 raw
lrwxrwxrwx 1 root root 23 Jun 22 2006 rcapache -> ../../etc/init.d/apache
lrwxrwxrwx 1 root root 20 Jun 22 2006 rcatd -> ../../etc/init.d/atd
lrwxrwxrwx 1 root root 21 Jun 22 2006 rccron -> ../../etc/init.d/cron
lrwxrwxrwx 1 root root 20 Jun 22 2006 rcgpm -> ../../etc/init.d/gpm
lrwxrwxrwx 1 root root 20 Jun 22 2006 rcipxmount -> /etc/init.d/ipxmount
lrwxrwxrwx 1 root root 22 Jun 22 2006 rcmysql -> ../../etc/init.d/mysql
lrwxrwxrwx 1 root root 20 Jun 22 2006 rcnfs -> ../../etc/init.d/nfs
lrwxrwxrwx 1 root root 21 Jun 22 2006 rcnscd -> ../../etc/init.d/nscd
lrwxrwxrwx 1 root root 26 Jun 22 2006 rcpowerfail -> ../../etc/init.d/powerfail
lrwxrwxrwx 1 root root 22 Jun 22 2006 rcquota -> ../../etc/init.d/quota
lrwxrwxrwx 1 root root 23 Jun 22 2006 rcquotad -> ../../etc/init.d/quotad
lrwxrwxrwx 1 root root 23 Jun 22 2006 rcrandom -> ../../etc/init.d/random
lrwxrwxrwx 1 root root 20 Jun 22 2006 rcraw -> ../../etc/init.d/raw
lrwxrwxrwx 1 root root 25 Jun 22 2006 rcrpasswdd -> ../../etc/init.d/rpasswdd
lrwxrwxrwx 1 root root 31 Jun 22 2006 rcrpmconfigcheck -> ../../etc/init.d/rpmconfigcheck
lrwxrwxrwx 1 root root 23 Jun 22 2006 rcrsyncd -> ../../etc/init.d/rsyncd
lrwxrwxrwx 1 root root 23 Jun 22 2006 rcsingle -> ../../etc/init.d/single
lrwxrwxrwx 1 root root 22 Jun 22 2006 rcsnmpd -> ../../etc/init.d/snmpd
lrwxrwxrwx 1 root root 23 Jun 22 2006 rcsplash -> ../../etc/init.d/splash
lrwxrwxrwx 1 root root 21 Jun 22 2006 rcsshd -> ../../etc/init.d/sshd
lrwxrwxrwx 1 root root 20 Jun 22 2006 rcxdm -> ../../etc/init.d/xdm
lrwxrwxrwx 1 root root 23 Jun 22 2006 rcxinetd -> ../../etc/init.d/xinetd
lrwxrwxrwx 1 root root 22 Jun 22 2006 rcxntpd -> ../../etc/init.d/xntpd
-rwxr-xr-x 1 root root 7176 Oct 8 22:52 rdev
-rwxr-xr-x 1 root root 8040 Oct 8 22:52 readprofile
-rwxr-xr-x 1 root root 58238 Oct 8 22:39 repquota
lrwxrwxrwx 1 root root 4 Jun 22 2006 rootflags -> rdev
-rwxr-xr-x 1 root root 5780 Jan 16 15:26 rotatelogs
-rwxr-xr-x 1 root root 60 Oct 14 23:23 routef
-rwxr-xr-x 1 root root 1262 Oct 14 23:23 routel
-r-xr-xr-x 1 root root 20712 Jan 14 11:15 rpasswdd
-rwxr-xr-x 1 root root 71276 Oct 8 22:39 rpc.rquotad
-rwxr-xr-x 1 root root 10792 Oct 8 18:31 rpcinfo
-rwxr-xr-x 2 root root 196140 Jan 7 18:25 rsyncd
-rwxr-xr-x 1 root root 20280 Oct 14 23:23 rtacct
-rwxr-xr-x 1 root root 16280 Oct 14 23:23 rtmon
-rwxr-xr-x 1 root root 5708 Oct 14 23:23 rtstat
-rwxr-xr-x 1 root root 6442 Oct 14 21:48 sasldblistusers
-rwxr-xr-x 1 root root 8606 Oct 14 21:48 saslpasswd
-r-xr-xr-x 1 root root 96672 Oct 14 22:57 sendmail
-rwxr-xr-x 1 root root 611 Aug 1 2002 setDefaultJava
-rwxr-xr-x 1 root root 65917 Oct 8 22:39 setquota
-rwxr-xr-x 1 root root 37003 Oct 14 22:57 smtp-sink
-rwxr-xr-x 1 root root 41709 Oct 14 22:57 smtp-source
-rwxr-xr-x 1 root root 47471 Oct 8 22:26 snmpd
-rwxr-xr-x 1 root root 67272 Jan 15 16:25 snmptrapd
-rwxr-xr-x 1 root root 51800 Oct 14 23:23 ss
-rwxr-xr-x 1 root root 338616 Oct 14 21:47 sshd
-rwxr-xr-x 1 root root 39112 Oct 8 22:45 stunnel
-rwsr-xr-x 1 root root 20481 Jan 16 15:26 suexec
-rwxr-xr-x 1 root root 98648 Oct 14 23:23 tc
-rwxr-xr-x 1 root root 336824 Mar 5 21:43 tcpdump
-rwxr-xr-x 1 root root 4763 Oct 8 22:52 tickadj
-rwxr-xr-x 1 root root 7240 Oct 15 06:01 tracepath
-rwxr-xr-x 1 root root 7776 Oct 15 06:01 tracepath6
-rwxr-xr-x 1 root root 14040 Oct 8 22:33 traceroute
lrwxrwxrwx 1 root root 10 Jun 22 2006 traceroute6 -> traceroute
-rwxr-xr-x 1 root root 6060 Oct 8 22:52 tunelp
-rwxr-xr-x 1 root root 56552 Oct 14 22:40 useradd
-rwxr--r-- 1 root root 251 Nov 7 18:43 useradd.local
-rwxr-xr-x 1 root root 36952 Oct 14 22:40 userdel
-rwxr--r-- 1 root root 261 Nov 7 18:43 userdel.local
-rwxr-xr-x 1 root root 56472 Oct 14 22:40 usermod
-rwxr-sr-x 1 root tty 5888 Oct 8 21:06 utempter
-rwsr-xr-x 1 root root 13485 Oct 14 23:12 validate
lrwxrwxrwx 1 root root 4 Jun 22 2006 vidmode -> rdev
lrwxrwxrwx 1 root root 4 Jun 22 2006 vigr -> vipw
-rwxr-xr-x 1 root root 26888 Oct 14 22:40 vipw
-rwxr-xr-x 1 root root 72904 Oct 8 22:35 vsftpd
-rwxr-xr-x 1 root root 61287 Oct 8 22:39 warnquota
-rwxr-xr-x 1 root root 3185 Oct 8 22:42 xconv.pl
-rwxr-xr-x 1 root root 173585 Oct 8 22:42 xinetd
lrwxrwxrwx 1 root root 4 Jun 22 2006 xntpd -> ntpd
lrwxrwxrwx 1 root root 5 Jun 22 2006 xntpdc -> ntpdc
-rwxr-xr-x 1 root root 8967 Oct 8 22:39 xqmstats
-rwxr-xr-x 1 root root 6888 Oct 8 18:31 zdump
-rwxr-xr-x 1 root root 27848 Oct 8 18:31 zic
theomega
Userprojekt
Userprojekt
Posts: 696
Joined: 2003-01-27 14:36
Contact:
 

Re: /usr/sbin gelöscht

Post by theomega »

Wen es interessiert, so gehts:

1. rpm --rebuilddb
2. rpm -Va --root / > ~/rpmout.txt
3. cat ~/rpmout.txt | grep "Missing " > ~/missing.txt
4. Für jede Datei in der missing.txt:

5. rpm -qf [Dateinamen]
6. alle Ausgaben notieren
7. alle Packete mit yast updaten

Vielen Dank für eure Hilfe
rootmaster
Posts: 483
Joined: 2002-04-28 13:30
Location: Hannover
 

Re: /usr/sbin gelöscht

Post by rootmaster »

CaptainCrunch wrote:
Nein, darüber habe ich mich schon informiert. ext3 ist ja ein Journaling Filesystem und kann deshalb nicht undeleten.
Hast du da Links zu ?
im unterschied zu ext2 nullt ext3 den block pointer und markeiert ihn nicht nur ;)

siehe zb:

http://batleth.sapienti-sat.org/project ... 3-faq.html

"back to the roots"
Last edited by rootmaster on 2003-03-18 15:08, edited 1 time in total.
Cahn's Axiom:

When all else fails, read the instructions
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
Contact:
 

Re: /usr/sbin gelöscht

Post by captaincrunch »

Thx ... man lernt doch nie aus ... :wink:
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
Post Reply